Garry's Mod

Garry's Mod

659 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, 2024 @ 2:29pm
6 Mar, 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
71 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: