Garry's Mod

Garry's Mod

840 평점
NPC Cleanup.
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Content Type: Addon
Addon Type: NPC, Tool
Addon Tags: Build
태그: admin
파일 크기
게시일
2.447 KB
2013년 5월 11일 오전 4시 19분
업데이트 노트 1개 (보기)

다운로드 위해 구독하기
NPC Cleanup.

RGL GM_T님의 1 모음집
Subscribed Items.
아이템 467개
설명
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.)
댓글 173
Zsombor99 2025년 8월 2일 오후 12시 02분 
Well, thus addon works, but this is problematic! :steamfacepalm:

[NPC Cleanup.] lua/includes/extensions/entity.lua:191: bad argument #4 to 'SetColor4Part' (number expected, got nil)
1. SetColor4Part - [C]:-1
2. SetColor - lua/includes/extensions/entity.lua:191
3. FadeThink - lua/autorun/server/npcbc_server.lua:130
4. unknown - lua/autorun/server/npcbc_server.lua:53
5. unknown - lua/dlib/modules/hook.lua:904
destructive crab 2024년 6월 7일 오후 6시 06분 
i have an issue when i kill an npc it is still alive but a ragdoll is spawned. when i press cleanup the duplicate npc doesnt dissapear. hope this fixs it
HexStrain 2023년 7월 7일 오후 8시 03분 
mf sends error codes for a 10 year old addon
fally 2023년 5월 31일 오전 5시 28분 
Look For the Lower Case 'L' And You
Will Be Kissed Tomorrow:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLlLLLLLLLLLLLLLLLLLLLLL LLLLL
*Now Look For The Q And Your Wish
Will Come True:
... ... ... ... ... OOOOOOOOOOOOOOOOOOOQOOOOOOOOOOOOOOOOOOOOOOOOO O.. .OOOOOOOO
*This Is Really Hard, Now Find The 'N':
MMMMMMMMMMMMMMMMMMMMMMMMMNMM
*Now Find The Mistake:
ABCDEFGHIJKLNMOPQRSTUVWQYZ
*Something You Really Want, After the
countdown!!!!!
10 9 8 7 6 5 4 3 2 1 Now Close Your
Eyes And Make A Wish! ;*;*;*;*;*;* Now
Paste This On 9 pages And Your Wish
Will Come True! Hurry, You Have 20
minutes! Or What You Wished For Will
Be The Opposite



just wanted to see what'll happen
ChemicλlCherry.kz 2023년 4월 20일 오전 8시 31분 
Very useful
ogcapybara 2022년 8월 13일 오후 4시 35분 
[NPC Cleanup.] lua/includes/extensions/entity.lua:192: attempt to index local 'col' (a number value)
1. SetColor - lua/includes/extensions/entity.lua:192
2. FadeThink - lua/autorun/server/npcbc_server.lua:130
3. v - lua/autorun/server/npcbc_server.lua:53
4. unknown - lua/includes/modules/hook.lua:96
this pops up when it cleans up and it impedes on my screen
Zsombor99 2022년 5월 9일 오전 10시 10분 
Works good! 👍
Ragdoll_Cleanup_Enabled 1
Ragdoll_Cleanup_RemoveAll 1
woop woop (rafi0101) 2021년 12월 7일 오전 6시 49분 
occurs when cleaning up weapons
woop woop (rafi0101) 2021년 12월 7일 오전 6시 47분 
[DLib]
[ERROR] lua/includes/extensions/entity.lua:192: bad argument #5 to 'SetColorOriginal4' (number expected, got nil)
1. SetColorOriginal4 - [C]:-1
2. SetColor - lua/includes/extensions/entity.lua:192
3. FadeThink - lua/autorun/server/npcbc_server.lua:130
4. __event - lua/autorun/server/npcbc_server.lua:50
1. CallStatic - lua/dlib/modules/hook.lua:1114
2. unknown - lua/dlib/modules/hook.lua:1189
Ax0sTierIX_Deluxe 2021년 8월 27일 오후 12시 49분 
(sorry for late comment)
this means you cant fix this? :(