Garry's Mod

Garry's Mod

Not enough ratings
Ragdoll, Nextbot, and NPC Collision Fixer
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
12.271 KB
15 Nov @ 12:36pm
15 Nov @ 5:44pm
3 Change Notes ( view )

Subscribe to download
Ragdoll, Nextbot, and NPC Collision Fixer

Description
While messing around with Yongli's Civilian SNPCs in my saves, I noticed a bug where DrGBase would force the characters into the floor, breaking their animations and stopping them from moving. My issue persisted even with different NPC collision mods or NPC behaviour settings. Inspired by Dark_Renaissance's Stuck NPC Fixer, I wanted to make a single addon that entirely removes this (and other) collision issues with all non-player characters, including those from different NPC "bases". Overall, this addon includes:

  1. Improved-upon NPC checks the Stuck NPC Fixer mod, to more accurately determine NPCs are stuck to each other or objects, and subsequently teleport them away from that spot. The settings allow for toggling a cyclical check every few seconds to teleport stuck NPCs, alongside a forced or mandatory teleportation setting that randomly moves every NPC upon loading a save (this is great for NextBots). Both are on by default with slight delays for performance.
  2. Consideration for vertical (height) collision, for scenarios where NPCs are stuck inside or sinking into the ground. Essentially, the addon checks the NPC's distance to the floor with a slight offset, and then teleports the NPC upwards by a certain amount if the NPC is too close to the ground. There are customizable settings for vertical collision checks and vertical teleportation height so that you can optimize for different maps!
  3. Removable collision for corpses and ragdolls, albeit after a brief, customizable interval so you can still have cool multi-kills from corpse physics.
  4. Full compatibility with different "bases" and advanced SNPCs by checking for "NextBot" classes along with basic NPCs, tested with different DrG NPCs.
  5. More to come!

If none of that made sense, take a look at the video above.

Enjoy!

Links
Github[github.com]
Map in video

Tags Scene NPC sNPC NextBot DrGBase VJBase corpse ragdoll collision stuck movement fix
3 Comments
ez g 27 Nov @ 10:02am 
nicee
Maqsud101 24 Nov @ 11:23am 
Wait is that fix issue that when some npcs spawn they noclip to backrooms?
FleschkJ 23 Nov @ 3:36am 
bro thank you so much