BodyBags
BodyBags If you hate having higher server and client FPS STAY FAR AWAY FROM THIS MOD. A mod me and Dab worked on (mostly him dont worry) for the Rearmed Servers heavily inspired by Rust, to help maintain good server performance from less Suvivors and better client fps from all the cracked out unoptimzed models on dead bodies. Content Shortly after a player is killed, the body will turn into a bodybag. Bodybags… (more)
BodyBags If you hate having higher server and client FPS STAY FAR AWAY FROM THIS MOD. A mod me and Dab worked on (mostly him dont worry) for the Rearmed Servers heavily inspired by Rust, to help maintain good server performance from less Suvivors and better client fps from all the cracked out unoptimzed models on dead bodies. Content Shortly after a player is killed, the body will turn into a bodybag. Bodybags persist beyond restarts and the lifetime depends on the contents. So if a M200 is on the body, the bodybag will have the same lifetime as that M200. Serverdz.cfg Settings bodyBagPlayerCleanupTime = 180; // Time between player death and the body bag spawning (default: 180 seconds) bodyBagMaxLifetime = 86400; // Max lifetime of the bodybag (default: 24 hours) Small Sidenote If you use custom slots on players other than dogtags they won't appear on the body bag. It is very easy to override it so feel free to hit me up on discord if you want an explanation of how to do it. *it works with dogtags by default* No Repacking -You are not allowed to repack this mod, if I see it in your mod I will DMCA it. I will not be updating this mod frequently, so there is no reason why you need to worry about that. -You are allowed to use this on your monetized servers assuming you abide by Bohemia's simple rules. Lastly, feel free to dm me if you have suggestions or want to help improve the mod.
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
Every server-visible override preserves its chain.
less than 0.001% of each server frame at 100 players (0.000 ms/s). Counts hook dispatch and timers only, not what the hooks do inside. Methodology.
Structural load of the 328 scripted mods analyzed, lightest on the left. This mod's bar is lit; 23 others share it. Ranked list.
Lifecycle hooks carry 81% of this mod's structural load. 0.000 ms/s in all.
1 hook · 0.000002 ms/s
| Lifecycle hooksrun when an entity is created, loaded or deleted | 1 hook | 0.000002 ms/s | 81% | PlayerBase.EEKilled |
Counts how often each hook is dispatched and how many timers stay alive, not what the code inside does. Some rates are order-of-magnitude estimates; the methodology lists which.
Other findings
super() only on some paths · 1 · warning
- ItemBase.CanPutAsAttachment returns true without consulting super.CanPutAsAttachment() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
Scripts.pbo::4_World\Bodybag\Entities\ItemBase\ItemBase.c:4
- ItemBase.CanPutAsAttachment returns true without consulting super.CanPutAsAttachment() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
Which vanilla methods the mod hooks, which of them drop the chain, how often each hook fires, and which risky calls sit inside hot hooks.
How long hook bodies take, network cost, or engine-side load. Measured across live fleets, most server lag comes from the engine and world state, not mod script chains — a light footprint does not clear a mod of lag, and a heavy one does not convict it. Methodology.
Everything else
All 4 overrides
Surface is the dispatch tier the rubric can price (— = unpriced); server is whether the override exists on a dedicated server; super() shows whether the vanilla chain is preserved on a server.
| method | surface | server | super() | where |
|---|---|---|---|---|
ItemBase.CanPutAsAttachment |
— | yes | conditional | Scripts.pbo::4_World\Bodybag\Entities\ItemBase\ItemBase.c:4 |
MissionServer.OnEvent |
— | yes | ✓ | Scripts.pbo::5_Mission\BodyBags\Mission\MissionServer.c:3 |
ModItemRegisterCallbacks.RegisterHeavy |
— | yes | ✓ | Scripts.pbo::4_World\Bodybag\Entities\ManBase\DayZPlayerCfgBase.c:3 |
PlayerBase.EEKilled |
T3 | yes | ✓ | Scripts.pbo::4_World\Bodybag\Entities\ManBase\PlayerBase.c:13 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
PlayerBase.EEKilled | T3 | 0.1 | placeholder | 0.0000 |
Includes 0.000 ms/s from placeholder-rated surfaces.
census 1.1 · findings 1.1 · hash fe34bd46f5d71cd1