NPC Cleanup. для Garry's Mod
NPC Cleanup mod.
You can make it clean up all ragdolls, dropped weapons and other stuff.
Only superadmins can change the convars/settings in the menu, and this does work in singleplayer.
CONVARS (default value included):
Ragdoll_Cleanup_Enabled 0 -- Enable or disable cleaning up ragdolls.
Ragdoll_Cleanup_RemoveAll 0 -- Removes ALL ragdolls (including the matress or user-created ragdolls).
Ragdoll_Cleanup_Interval 0.1 -- The interval it checks for each ragdoll on the map.
Ragdoll_Cleanup_NoFadeTime 5 -- The time it waits without fading.
Ragdoll_Cleanup_FadeTime 5 -- The time it takes to fully fade to invisible. (Possibly broken, keep at 0.)
Weapon_Cleanup_Enabled 0 -- Enable or disable cleaning up weapons.
Weapon_Cleanup_Filter 0 -- Enable/disable custom filter.
Weapon_Cleanup_Interval 0.1 -- The interval it checks for each weapon on the map.
Weapon_Cleanup_NoFadeTime 10 -- The time it waits without fading.
Weapon_Cleanup_FadeTime 5 -- The time it takes to fully fade to invisible. (Possibly broken, keep at 0.)
If you want the settings to stay, automatically execute those convars in the autoexec.cfg or server.cfg files.
Having trouble? You probably didn't configure something properly.
Slow server or lua performance while active? It may be the constant checkup intervals. Set both Ragdoll_Cleanup_Interval & Weapon_Cleanup_Interval to something higher.
Weapons disappearing on custom npcs? Complain to whoever made the npc addon as it has not been setup properly. Only weapons without an owner will be removed, why would anyone design npcs to be holding unowned weapons?
ToDo list:
Fix weapon fading. (Purple & Black textures instead of transparent?)
Save settings. (Currently only console variables, just use a config file to save them.)
You can make it clean up all ragdolls, dropped weapons and other stuff.
Only superadmins can change the convars/settings in the menu, and this does work in singleplayer.
CONVARS (default value included):
Ragdoll_Cleanup_Enabled 0 -- Enable or disable cleaning up ragdolls.
Ragdoll_Cleanup_RemoveAll 0 -- Removes ALL ragdolls (including the matress or user-created ragdolls).
Ragdoll_Cleanup_Interval 0.1 -- The interval it checks for each ragdoll on the map.
Ragdoll_Cleanup_NoFadeTime 5 -- The time it waits without fading.
Ragdoll_Cleanup_FadeTime 5 -- The time it takes to fully fade to invisible. (Possibly broken, keep at 0.)
Weapon_Cleanup_Enabled 0 -- Enable or disable cleaning up weapons.
Weapon_Cleanup_Filter 0 -- Enable/disable custom filter.
Weapon_Cleanup_Interval 0.1 -- The interval it checks for each weapon on the map.
Weapon_Cleanup_NoFadeTime 10 -- The time it waits without fading.
Weapon_Cleanup_FadeTime 5 -- The time it takes to fully fade to invisible. (Possibly broken, keep at 0.)
If you want the settings to stay, automatically execute those convars in the autoexec.cfg or server.cfg files.
Having trouble? You probably didn't configure something properly.
Slow server or lua performance while active? It may be the constant checkup intervals. Set both Ragdoll_Cleanup_Interval & Weapon_Cleanup_Interval to something higher.
Weapons disappearing on custom npcs? Complain to whoever made the npc addon as it has not been setup properly. Only weapons without an owner will be removed, why would anyone design npcs to be holding unowned weapons?
ToDo list:
Fix weapon fading. (Purple & Black textures instead of transparent?)
Save settings. (Currently only console variables, just use a config file to save them.)