Garry's Mod

Garry's Mod

713 ratings
Immersive Battle Cleanup
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Fun, Realism
File Size
Posted
Updated
30.561 KB
18 Nov, 2022 @ 10:00am
2 Apr @ 5:24pm
14 Change Notes ( view )

Subscribe to download
Immersive Battle Cleanup

Description
I have always been unsatisfied of NPC battle clean addons because most of them work in one way, where they either always leave the maps too clean when NPC battles stop, or they are missing some features.

In addition to that they eliminate the corpses in front of you, which reduces the realism of the game experience for me. So I decided to make my own.

This small but useful addon takes care of keep a limited number of corpses, debris, weapons and items on the server at a time, but without you noticing that it is working.

You must enable "Keep Corpses" for this addon to work properly. You no longer have to worry about ragdolls being solid and getting in the way, just like in HL2.



FEATURES:
* Can be configured to only remove entities when players are not looking at them

*Client-side (local) corpses are also registered and deleted, so it can be used in multiplayer games

* You can control the amount of corpses, debris, weapons and items separately.

*This addon does not remove corpses and other entities in a given time, it does so with a maximum amount (unless you set the maximum amount to 0). This allows you to always enjoy the disaster left by the battle after you stop it (dismembered corpses, burning debris, weapons, etc). When you start the battle again the process starts, releasing the essential resources for your game, using them for more NPCs.

* Entities are always removed in the order in which they are created, only if they meet the requirements to be removed (time, player view, etc.), if the entity cannot be removed even for some reason, the next oldest available entity will be removed (applies to all entities and debris)

* A minimum elimination time can be configured for each type of entity (corpses, weapons, etc), to prevent them from being deleted immediately after appearing, when there are battles with too many active NPCs

* Have you seen how in some games, dead enemies are eliminated but not bosses or monsters that are too big? now you can choose separately which corpses should be cleaned and which not, depending on their size or importance in the faction

* Can be set to clean dead ceiling NPCs like barnacles and combine turrets

* Can also delete player created ragdolls if configured.

* It is possible to configure the collisions of small and large corpses. This allow to walk between normal npc corpses like zombies or antlions, but you can't go through a destroyed tank or through an antlion guard corpse, which is very unrealistic.

* It is possible to configure the collisions between the corpses themselves (only between corpses). This will allow the corpses to build mountains of bodies on top of each other and with dismemberment add-ons it can be really fun, crushing each other (requires higher performance), it can also be deactivated to avoid any collision.

* Search, record and remove debris from Helicopters and Combine APCs (Gunships and Striders clear themselves on death) and human bones created by the dying barnacles

HL2 SKILL OVERHAUL
(highly recommended)
Do you want to have a similar or more difficulty in gmod as you had in HL2, but are you too lazy to configure everything yourself? Here is a small file (Highly Improved) with all likely the proper HL2 settings like NPC HP, Weapons Damage, Explosions Damage, NPC's Damage, etc... which will give your NPC's a higher difficulty to balance fights between them!

Extract rar archive into your garrysmod folder (NOT IN ADDONS FOLDER)
Remember that you can always edit it as you wish if any of the values ​​are not what you want.
HL2 SKILL OVERHAUL [drive.google.com]

I HAVE FOUND AN ERROR/BUG!
In order to help you, you must comment all the details, all actions and steps you followed to be able to reproduce the error and also if it is a lua error leave the error line. all this in the comments. If the information mentioned above is missing, you will be possibly ignored.

ONLY FOR OTHER DEVELOPERS
This addon, as mentioned above, was inspired by other addons that had deficiencies.
In addition, any attempt to offend me or my work, or discredit my work in this addon, in the comments will not be tolerated, which will lead to the elimination of your comment.
thank you.

this work (my source code) is my property and you are NOT allowed to use all or part of my source code for another one (much less upload it to a workshop or another website) without my explicit consent. Any attempt to use this for another addon will be considered property theft and I will initiate proceedings against that user's Steam account.

When I no longer work on this addon and no longer support it, it will be communicated in the description, and only then can you modify it yourself or use this addon in another addon. while I am supporting this addon you cannot do, be warned.

Credits
This addon was born mainly thanks to the idea of ​​Xalalau, with its "NPC Battle Cleanup" addon with MIT license.
Thanks to Xalalau for his original idea of ​​keeping our games clean, this new addon is born, Its code was studied and it was useful for the development of this addon, and although almost everything had to be discarded, fragments such as the construction of the menu and cvars names were exported to this addons that were kept for development convenience, so both addons are incompatible! you must choose only one... thanks to Xalalau for developing NBC... all the rest of this work belongs to me.

Enjoy!


See also:
Dismemberment Gore Reconstructed
Spawn Platforms Deluxe
HL2 Features
Universal Army Skins (7 hours war)
Advanced TRATools
NPC Variants
War Machines NPCs
Better Explosions Pack
134 Comments
TR@VIESO  [author] 26 May @ 7:19pm 
@Rezi™
I'm sorry I can't help you, since I don't even know the mod you mention.
Rezi™ 22 May @ 8:22pm 
Strangely enough, whenever I use this cleanup mod in conjunction with ReAgdoll, the mod seemingly refuses to clean the mess up. I am trying to figure out what is exactly the cause, but it's leaving me quite stumped.

I have disabled the Reagdol's version of the cleanup, and I've even used a different cleanup mod to ensure it was just some general incompatibility. This mod has consistently been refusing to work with ReAgdoll. What might be causing this general incompatibility, and is it an easy fix?
Jack's Bot 5000 14 May @ 7:31pm 
what are the convars?
hydra 15 Apr @ 2:08pm 
works good, thx bro :steamhappy:
TR@VIESO  [author] 13 Apr @ 10:34pm 
@Pip Cryt
I don't know, it depends on what corpse generation mode that base uses. If you use the normal ragdoll creation mode, yes
Pip Cryt 13 Apr @ 2:42pm 
Hi, will there be support for cleaning NPCs corpses on ZBase?
[WindVex] 2 Apr @ 8:40pm 
Thank you ^ ^
TR@VIESO  [author] 2 Apr @ 5:24pm 
@[WindVex]
Fixed
[WindVex] 2 Apr @ 1:20pm 
[Immersive Battle Cleanup] lua/autorun/client/ibc_client.lua:13: attempt to call global 'RBC_CheckPlayersView' (a nil value)
1. v - lua/autorun/client/ibc_client.lua:13
2. unknown - lua/includes/modules/hook.lua:96

This error is popping up all of a sudden idk what's causing it.
It has never appeared before and I've installed/enabled no addons recently.
TR@VIESO  [author] 1 Apr @ 3:29pm 
@Joe
I apologize, it was already fixed, I made a mistake in the code in the last update