Garry's Mod

Garry's Mod

141 ratings
Stuck NPC Fixer
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Build, Fun, Realism
File Size
Posted
5.390 KB
14 Apr @ 12:20am
1 Change Note ( view )

Subscribe to download
Stuck NPC Fixer

Description
An addon that will deal with NPCs getting stuck. It uses a smart teleportation system to ensure that NPCs can be detected as "stuck", and then be teleported to a location that has been designated "safe" (This will ensure that NPCs aren't teleported into the collisions of another NPC or prop!)


COOL FEATURES!!!


It's customizable! You can blacklist certain NPCs that you may not want being teleported around; you can change the timer for how often it checks; you can change the teleportation radius; you can change the detection radius around the NPCs.

To change settings, open spawn menu and go to utilities tab -- User -- Stuck Npc Fixer


This script was entirely written by ChatGPT. I myself have no coding knowledge at all.
20 Comments
Gorigo 23 Jun @ 7:08am 
*enchanted combine soldiers* specifically dodge option where they endup being inside walls
Gorigo 23 Jun @ 7:07am 
good addon, helps with addons like super combines
does this also TP follow NPC? where it cannot reach the players position, like above and below
giorgibob152 14 May @ 12:10pm 
this makes some of the vehicles have their turrets move from side to side
PROMENADE 25 Apr @ 10:03pm 
thanks bro
DrVrej 25 Apr @ 9:17pm 
From the reports I got, people just wanted it disabled for tank NPCs in general, you could add a check to blacklist tanks by default, they are identified by "IsVJBaseSNPC_Tank"
Dark_Renaissance  [author] 25 Apr @ 4:12pm 
@PROMENADE, not yet, but i'll get to work on it this weekend since I got time off
Dark_Renaissance  [author] 25 Apr @ 4:10pm 
But about the issue @DrVrej, That shouldn't happen if they have blacklisted the tanks using the npc class (which should also be apart of the default blacklist. Is it still teleporting them anyway?
Dark_Renaissance  [author] 25 Apr @ 4:08pm 
Holy-...DrVrej commented on my addon
DrVrej 20 Apr @ 11:56pm 
Hello, there is an issue that some are reporting where VJ Base tank NPCs are getting teleported around and it's breaking their turrets