Garry's Mod

Garry's Mod

507 ratings
NPC Battle Cleanup
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
0.030 MB
Jun 5, 2020 @ 9:35pm
Nov 25, 2021 @ 6:27pm
37 Change Notes ( view )

Subscribe to download
NPC Battle Cleanup

In 2 collections by Xalalau
Xalaserver Base
54 items
Brasil - Supremacia
105 items
Remover - Advanced

BRASIL, Junte-se:
GMBR, criadores BR de addons e vídeos e tudo.


From 04/12/2021 onwards I'll only be providing fixes for this tool, so I can focus on other projects.

Thank you all for your support and dedication so far.

Hello, there!

NPC Battle Cleanup (NBC) is an elegant and very light addon inspired by this old mod. It's designed to react to game events by automatically cleaning up battle remains, which cause lag and chaos.

  • It works without any requirements;
  • Supports presets;
  • Supports singleplayer and multiplayer;
  • Lets you control the remotion delay;
  • Kills all live NPCs from disconnected players;
  • Removes decals from the map (blood, gunshots, explodion marks...);
  • Removes corpses, leftovers and debris from dead NPCs;
  • Removes weapons and items dropped by dead NPCs and/or dead/live players;
  • Respects GMod's Keep Corpses option (ai_serverragdolls 1).

Removal Support
  • All the default HL2 SENTs and SWEPs;
  • Addons with generic class names;
  • Compatible with TFA;
  • M9K;
  • CW2;
  • ArcCW;
  • VJ Base.

When you find an entity (weapon, item, gib...) that isn't being removed, usually it’s not a bug, but a custom class name that needs special treatment. That's why I list some important compatible addons, like VJ Base, right above. I studied them and did the correct/new checks.

So, if you want cleanup support for some entity or addon related to "battles against NPCs", ask in the comments and leave some information / links / videos - anything that helps me quickly identify what needs to be done.

Here is the code[].
I appreciate reports, ideas and help.

Thank you!
< >
Xalalau  [author] Nov 23 @ 6:57am 
I can test here later but the code is configured to save your changes.
Lunatyx Nov 22 @ 12:13pm 
it doesn't save my settings when i leave the game
wutwu Nov 13 @ 9:23pm 
uncheck weapona
LostRacon Oct 22 @ 1:36pm 
Is there an option to leave weapons dropped, so that they don’t de spawn?
Lady Dimitrescu Sep 26 @ 6:59am 
Oh well,im gonna re-install the Gmod and see if the problem still there.
Xalalau  [author] Sep 26 @ 6:31am 
You probably need to increase g_ragdoll_maxcount. Idk about the decals.
Lady Dimitrescu Sep 26 @ 4:14am 
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 ?
Xalalau  [author] Sep 19 @ 5:15am 
Ok. Gotta check it later.
Killing enemies near map entities (ammo crates, chargers, etc.) seems to be obliterating said map entities in addition to the NPC's corpse.
DRIV Sep 13 @ 2:34am 
What are the console commands for this addon?