Garry's Mod

Garry's Mod

648 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
Feb 29, 2024 @ 2:29pm
Mar 6, 2024 @ 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
67 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:


107 Comments
Peluceus Donmian Mar 19 @ 9:55pm 
Yeah it's a great mod for use with ZINW but it does conflict with Zippy's Active Ragdoll mod. It's a shame because with ZINW this is an incredibly important mod but I also like to be incentivized to double tap
Hatshepherd Dec 13, 2024 @ 5:44am 
I agree
Gorigo Nov 14, 2024 @ 6:28am 
theres should be option to check if entity cant move
小卡齐娜3095 Aug 9, 2024 @ 3:31am 
How this will works on a custom npc ???
Clefable_Recon ʕ º ᴥ ºʔ Jul 17, 2024 @ 1:05pm 
Would be nice alternative option to teleport any friendly ally warp next to you, and add Resistance to the option pool
ZachNohKap Mar 30, 2024 @ 10:15pm 
@Winn thank you king!
Winn Mar 30, 2024 @ 10:26am 
Conflicts with Zippy's Active Ragdoll mod, they are detected as stuck when they ragdoll and are instantly deleted.
MrGermandeutsch Mar 21, 2024 @ 3:56pm 
Oh if only. But alas, it seems to just be a distant dream.
Coffee Man  [author] Mar 21, 2024 @ 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 Mar 21, 2024 @ 12:24pm 
Sadly it takes away some or even most of the npcs on the hl2 maps.