Garry's Mod

Garry's Mod

75 ratings
Remove Stuck NPCs // NPC Distance Remover // Auto AI Director
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
8.858 KB
20 Dec, 2024 @ 11:54am
21 Dec, 2024 @ 8:36pm
7 Change Notes ( view )

Subscribe to download
Remove Stuck NPCs // NPC Distance Remover // Auto AI Director

In 2 collections by MightyX3N
server
51 items
Addons by MightyX3N
32 items
Description
Join the official X3NAddons Discord Community for updates & support: https://discord.gg/USukDAH7Cu

Remove Stuck NPCs // NPC Distance Remover // Auto AI Director

This addon improves gameplay by automatically removing NPCs that spawn stuck, removing NPCs when the player is not close to them, and adding Auto AI Director functionality from the VJ Base Addon (disabled by default).




Features:
  • Automatic Cleanup: Detects and removes NPCs stuck in doors, props, geometry, or other objects.
  • NPC Distance Remover: Removes NPCs when the player is no longer close to them.
  • Auto AI Director: Automatically spawns the AI Director from the VJ Base Addon, which is off by default.
  • Toggleable: Use the console command `a_cleanstucknpc 1` to enable auto-removal.
  • Default NPC List: (For Stuck Remover)
    - npc_combine_s
    - npc_metropolice
    - monster_human_assassin
    - npc_zombie
    - npc_fastzombie
    - npc_poisonzombie
    - npc_zombine
    - npc_citizen
    - npc_vj_l4d_com_m_airport
    - npc_vj_l4d_com_female
    - npc_vj_l4d_com_m_hospital
    - npc_vj_l4d_com_male
    - npc_vj_l4d_com_f_nurse
    - npc_vj_l4d_com_m_police
    - npc_vj_l4d_com_m_soldier
    - sent_vj_l4d_cominf
    - sent_vj_l4d_cominf_sp
    - npc_vj_l4d_com_m_ceda
    - npc_vj_l4d_com_m_clown
    - npc_vj_l4d_com_m_fallsur
    - npc_vj_l4d_com_m_jimmy
    - npc_vj_l4d_com_m_mudmen
    - npc_vj_l4d_com_m_riot
    - npc_vj_l4d_com_m_worker

Can be recreated by deleting the NPC List .txt File or remove all npcs should do it
"\GarrysMod\garrysmod\data\monitored_npcs.txt"




Notes:

  • Single Player Only: Primarily tested for single-player gameplay; multiplayer use may encounter bugs.
  • Avoid Scripted Campaigns: Not recommended for maps with pre-scripted NPC spawns as it may interfere with map logic.
  • Customization: You can still modify the list of monitored Stuck NPCs using the console commands (add_stucknpc "npc_name", remove_stucknpc "npc_name", and stucknpclist (to see the npc stuck list)).
    For NPC Distance Remover: set_npc_removal_distance "distance" (npcdistance to see the distance amount)
    For Auto AI Director: auto_ai_director "on/off" (auto_ai_director to see the current setting)




Credits:




TAGS:

  • NPC Distance Removal
  • Auto AI Director
  • NPC Cleanup
  • GMod Addon
  • NPC Stuck
  • Stuck NPC Fix
  • NPC Removal
  • GMod Zombie Survival
  • Left 4 Dead
  • L4D1 Common Infected
  • AI Director Support
  • Zombie NPC Cleanup
  • GMod NPC Fix
  • Automatic NPC Cleanup
  • GMod Optimization
  • Zombie Apocalypse Addon
  • Garry's Mod Workshop
  • L4D Infected
  • Survival Horror Addon
  • NPC Management
  • VJ Base Addon
  • NPC Auto Removal
  • AI Improvement
  • GMod AI Addon
  • Distance-Based NPC Removal
  • L4D Zombie Spawner
  • Garry's Mod Survival
  • Zombie Gameplay Addon
  • Left 4 Dead GMod
  • NPC Cleanup Tool
  • Automatic NPC Removal
  • NPC Stuck Fix
  • GMod AI Fix




Join my Steam Group to request new addons, and to get updates
https://steamhost.cn/steamcommunity_com/groups/x3naddons

Want to download the Features Individually find it on my website:
https://x3n.fun/workshop/3388081583

or just check out my website here:
https://x3n.fun/
6 Comments
Zephos 13 Apr @ 6:31pm 
Yeah, I reckoned it'd probably have some similarity to that. Appreciate the clarity, thanks
MightyX3N  [author] 8 Apr @ 6:35pm 
Zephos

If you ever played Left 4 Dead, it basically the name for the way the zombies spawn in that game "AI Director" basically determines how zombies should spawn depending on factors of the current situation in the map, not sure if it 100% works like this in the VJBase Addon

But in simple terms
It spawns zombies around players
Zephos 21 Mar @ 6:02am 
Can you elaborate on the AI director? I can't seem to find a lot of info about it here or from VJBase's page but I'm interested in how it works.
Lamatern 26 Dec, 2024 @ 4:52am 
Peak tags
MightyX3N  [author] 22 Dec, 2024 @ 1:44pm 
@Am1no_ yes.
andrew 22 Dec, 2024 @ 11:50am 
lots of tags