Garry's Mod

Garry's Mod

591 ratings
Auto Remove Stuck NPCs
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Realism
File Size
Posted
Updated
1.311 KB
29 Feb @ 2:29pm
6 Mar @ 1:32am
3 Change Notes ( view )

Subscribe to download
Auto Remove Stuck NPCs

In 1 collection by Coffee Man
Coffee Man's Gameplay-Enhancing Addons
61 items
Description
NPC effect addon for Garry's Mod. Automatically removes specific NPCs if they spawn stuck.

Useful if you use random NPC spawners and the map you're playing on has f*cky AI Nodes.





Features:
  • a_cleanstucknpc 1 to enable auto removing NPCs.

  • When one of the allowed NPCs is created, after a 2 seconds timer, their position gets checked to see if they're stuck or not.

  • NPCs that spawn stuck in places such as doors, map geometry, other NPCs, the player, your mom, etc, will get removed.

  • Only the following NPCs can get removed:

    - npc_combine_s
    - npc_metropolice
    - monster_human_assassin
    - npc_zombie
    - npc_fastzombie
    - npc_poisonzombie
    - npc_zombine
    - npc_citizen

Limitations:
  • This addon has only been tested for Single Player. There may be unnoticed bugs during multiplayer matches.

  • Has potential to break scripted campaign maps which already have scripted NPCs, so don't use it when playing those.

  • If you want to add additional NPCs to the list, you'll need to download and alter the addon's code manually, as I'm a lazy prick when it comes to adding customization.




Credits:


105 Comments
Gorigo 14 Nov @ 6:28am 
theres should be option to check if entity cant move
我是小卡齐娜1903年 9 Aug @ 3:31am 
How this will works on a custom npc ???
Would be nice alternative option to teleport any friendly ally warp next to you, and add Resistance to the option pool
ZachNohKap 30 Mar @ 10:15pm 
@Winn thank you king!
Winn 30 Mar @ 10:26am 
Conflicts with Zippy's Active Ragdoll mod, they are detected as stuck when they ragdoll and are instantly deleted.
MrGermandeutsch 21 Mar @ 3:56pm 
Oh if only. But alas, it seems to just be a distant dream.
Coffee Man  [author] 21 Mar @ 3:54pm 
If only you'd have been specifically warned about that specific side effect in the description or something, am I right?
tactical dude 21 Mar @ 12:24pm 
Sadly it takes away some or even most of the npcs on the hl2 maps.
MrGermandeutsch 7 Mar @ 12:39am 
This is a blessing.
ZachNohKap 6 Mar @ 4:02pm 
Dude. You literally have a catgirl as your pfp.