Garry's Mod

Garry's Mod

NPC Battle Cleanup
243 条留言
Xalalau  [作者] 10 月 22 日 下午 7:48 
U'r welcome
Phasez 10 月 21 日 下午 3:52 
thanx for this 💥
Xalalau  [作者] 9 月 13 日 上午 10:34 
Ty. There's even an alternative in the description if you want to experiment. I'll update this addon here one day to better expose configurations and make corpses removal a bit different.
bob 9 月 12 日 下午 3:11 
So this is it... the mod i've been looking for in my addons for forever.
moor 8 月 1 日 下午 11:55 
okay
Xalalau  [作者] 8 月 1 日 下午 4:06 
Mostly
moor 8 月 1 日 上午 3:33 
does this remove npc gibs ?
♫MusicMen225♫ 6 月 18 日 下午 12:45 
No worry :) For example, there's DrGBase, it's one of the more popular for custom NPCs. That's honestly the only other one I use besides VJ Base so I don't really know of many other ones.
Xalalau  [作者] 6 月 18 日 上午 7:51 
Could you list these bases here? I don't play a lot of GMod anymore these days.
♫MusicMen225♫ 6 月 18 日 上午 6:52 
Damn. That's actually a pretty nice surprise, considering I thought this was no longer going to be developed per the description. Hope to see the rewrite whenever it's out then! Although, any plans for support of other NPC bases or is that not really planned? This works well for default and VJ Base NPCs but other bases not so much.
Xalalau  [作者] 6 月 17 日 下午 8:57 
Hey, thanks! I actually have a rewrite plan to improve this addon - mainly to remove corpses more effectively and expose configuration options so players can define what should be deleted themselves. Keeping everything locked inside the Lua file wasn’t the best design choice.
♫MusicMen225♫ 6 月 17 日 上午 3:00 
Honestly? I know there's an alternative addon and this isn't being kept up to date, but this is still the best addon for NPC cleanup out of all that I have seen so far. It's also nice that this doesn't remove player collisions with ragdolls, or at least as far as I'm aware anyway. Thanks for making this even if you don't work on it anymore, it's a great addon that I will definitely want to keep using for years into the future :3
Serial Designation N 3 月 31 日 下午 2:18 
does it support Drg Base NPCS?
Domawesome04 3 月 25 日 上午 10:59 
Finally, I can play campaign maps with good frame rate
Xalalau  [作者] 2024 年 12 月 16 日 下午 8:53 
It deletes every entity that starts with item_.

You can disable it by downloading the code, placing it in your addons folder, opening /lua/autorun/server/sv_nbc.lua, removing line 101 and unsubscribing from this addon.

Sorry for the burden, but the configs are hardcoded. Actually I'd like to do some good changes to this addon - like exposing these configurations, but I need free time. I have become a slave to capitalism.
Tiny Desk Engineer 2024 年 12 月 10 日 下午 4:11 
This addon seems to get rid of item_healthcharger and item_suitcharger entities even though they really shouldn't be.
car 2024 年 10 月 12 日 下午 2:27 
@user (spooky) only if you disable keep corpses which breaks the game
Xalalau  [作者] 2024 年 7 月 19 日 下午 8:01 
I'll likely revisit this addon to improve how bodies are removed, add support for more entities and expose the entities lists (so people will be able to add things without asking me for support).
KannedKielbasa 2024 年 7 月 16 日 下午 9:25 
Tacrp support? :')
Xalalau  [作者] 2024 年 7 月 1 日 上午 2:31 
Xalalau  [作者] 2024 年 6 月 26 日 上午 9:58 
GMod only provides functions to erase them all at once.
g0ldyosh 2024 年 6 月 26 日 上午 9:12 
Would be nice if decals faded out instead of disappearing instantly.
Xalalau  [作者] 2024 年 6 月 17 日 下午 4:26 
hey
s e a l 2024 年 6 月 17 日 上午 8:07 
I just realised who made this! Hey Construct Beta man!
Pentax_JN 2024 年 5 月 25 日 下午 9:29 
this is the exactly that i wanted Thx bro
Omarb10legends 2024 年 4 月 9 日 下午 4:09 
the one support swep we needed. MW is not here, unfortunate. but gread addon nontheless
Xalalau  [作者] 2024 年 3 月 7 日 上午 11:24 
There's support. The addon must have updated.
KlatZS | RUS 2024 年 3 月 7 日 上午 7:49 
no vj base support :steamthumbsdown:
LostSoul 2024 年 1 月 22 日 上午 8:47 
:steamthumbsup:
Xalalau  [作者] 2024 年 1 月 19 日 上午 5:20 
Wdym?
ryan 2024 年 1 月 19 日 上午 4:51 
its funny as hell that someone posted this in a different addon
rosen 2023 年 12 月 20 日 上午 9:41 
[NPC Battle Cleanup] lua/autorun/server/sv_nbc.lua:422: bad argument #1 to 'SetCreator' (Entity expected, got nil)
1. error - [C]:-1
2. ArgAssert - lua/gpm/utils.lua:152
3. SetCreator - packages/player-extensions/init.lua:15
4. NPCDeathEvent - lua/autorun/server/sv_nbc.lua:422
5. v - lua/autorun/server/sv_nbc.lua:541
6. unknown - lua/includes/modules/hook.lua:96
goose (spooky) 2023 年 10 月 3 日 下午 7:46 
isn't this in the base game only its 40X slower and it only cleans up the bodys not everything else
Vaelune 2023 年 9 月 20 日 下午 1:16 
does it clean up any ragdoll, even active ragdolls that are considered living and not actually a corpse?
Xalalau  [作者] 2023 年 6 月 27 日 下午 9:00 
Possibly. If It doesn't work you can ask for support.
Dave 2023 年 6 月 27 日 下午 12:52 
Does this work with gib mods, like gibsplat or zippys gore?
memeguy101 2023 年 3 月 4 日 下午 2:57 
when you die but your in hl1
Xalalau  [作者] 2023 年 1 月 11 日 上午 4:53 
Sure, I only need to add a single line to support it.
Reasonably Overworked 2023 年 1 月 6 日 下午 3:45 
Hi! I noticed TR@VIESO advertised this alternative too. Can we perhaps get an Arc9 weapon base support too like the other one did?
Xalalau  [作者] 2023 年 1 月 5 日 下午 5:27 
Unfortunately the entity lists aren't exposed in the menu, so you need to edit them directly in the Lua file. I added instructions in the description to achieve that.

Btw if you want a more well supported addon that does almost the same thing, try Immersive Battle Cleanup https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2890177857
XanE 2023 年 1 月 5 日 下午 12:56 
This doesn't seem to clean up APC bits, it may be because the APC I am creating is called something different, can you advise where to add this?
Xalalau  [作者] 2022 年 12 月 2 日 上午 8:27 
Ty. There's a new alternative called Realistic Battle Cleanup if you don't want the map too clean.
Syntality 2022 年 12 月 2 日 上午 5:27 
Just tried it out, Ill ping if any issues but OMG I frickin love you. I've been searching for something like this that actually works for a long time now!
Xalalau  [作者] 2022 年 11 月 23 日 上午 6:57 
I can test here later but the code is configured to save your changes.
Vaelune 2022 年 11 月 22 日 下午 12:13 
it doesn't save my settings when i leave the game
wut 2022 年 11 月 13 日 下午 9:23 
uncheck weapona
Xx_LostRacon_xX 2022 年 10 月 22 日 下午 1:36 
Is there an option to leave weapons dropped, so that they don’t de spawn?
Lady Alcina Dimitrescu 2022 年 9 月 26 日 上午 6:59 
Oh well,im gonna re-install the Gmod and see if the problem still there.
Xalalau  [作者] 2022 年 9 月 26 日 上午 6:31 
You probably need to increase g_ragdoll_maxcount. Idk about the decals.
Lady Alcina Dimitrescu 2022 年 9 月 26 日 上午 4:14 
I don't know if it's caused by this addon but.
NPC's no longer have decals when they got shot.
Their corpses get removed when they killed even tho this addon is disabled.

Do anyone have the same proble mhere ?