Garry's Mod

Garry's Mod

860 个评价
NPC Battle Cleanup
2
3
5
2
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
31.205 KB
2020 年 6 月 5 日 下午 9:35
2023 年 1 月 31 日 下午 6:07
38 项改动说明 ( 查看 )

订阅以下载
NPC Battle Cleanup

在 Xalalau 的 3 个合集中
Xalaserver Base
54 件物品
Brasil - Supremacia
172 件物品
Bombermano
33 件物品
描述
-----------------------------------------------------------
BRASIL, Junte-se: https://discord.gg/ytkXGNU
GMBR, criadores BR de addons e vídeos e tudo.
-----------------------------------------------------------



Introduction
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.

Btw there's a new alternative called Realistic Battle Cleanup if you don't want the map too clean.

Features
  • 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;
  • ARC9;
  • 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[github.com].
I appreciate reports, ideas and help.

Removing custom entities

Unfortunately I didn't expose the entity lists in the menu, so you need to edit them directly in the Lua file like this:

1) Unsub from this addon;
2) Download it from GitHub[github.com] (Code -> Download zip);
3) Extract the folder inside your garrysmod/addons folder;
4) Edit the tables from lua/autorun/server/sv_nbc.lua as you wish.

Alternative Addon

Even though NPC Battle Cleanup works well I recommend another addon called "Immersive Battle Cleanup" as an alternative since its development is active.

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2890177857

As you all know I'm not providing feature updates here anymore.

Thank you!
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.