This Rust plugin helps improve your server performance by preventing debris creation when entities decay, are killed by admins, demolished, or collapsed due to instability. Any of these debris suppressions can be enabled or disabled in the config according to your preference.
It works on all entities, including building blocks, deployables, and even entities placed on other entities. For example, if a building block with a turret on it is destroyed, the turret is also removed instantly without crumbling.
It works on all entities, including building blocks, deployables, and even entities placed on other entities. For example, if a building block with a turret on it is destroyed, the turret is also removed instantly without crumbling.
Recommended Plugins
- No Raid Debris - Disables debris that block building during raids.
Configuration
JSON:
{
"Version": "1.2.0",
"Disable Debris On Decay": true,
"Disable Debris On Admin Kill": true,
"Disable Debris On Demolish": true,
"Disable Debris On Stability Collapse": true,
"Disable Debris On Other": true,
"Excluded Prefabs": []
}
Disable Debris On Decay
- Prevents debris from spawning when entities die due to decay.Disable Debris On Admin Kill
- Stops debris from spawning when an admin uses theent kill
command to destroy entities.Disable Debris On Demolish
- Stops debris from spawning when structures are demolished by players using a hammer or other means.Disable Debris On Stability Collapse
- Prevents debris from spawning when entities collapse due to instability, which can happen if structures lose support.Disable Debris On Other
- Prevents debris from spawning for misc entities such as minicopters, hot air balloons, and the Bradley APC.Excluded Prefabs
- Lets you list specific entities that should still spawn debris even if the other debris options are enabled; add their short prefab name to allow them to break apart normally.
Harmony Hooks
The following hooks are implemented via Harmony patches:
C#:
object OnAdminKill(BaseNetworkable baseNetworkable)
- Called before an entity is killed by an admin using the
ent kill
command. - Returning a non-null value prevents the entity from being killed. Returning null allows it.
C#:
object OnDecayEntityKilled(DecayEntity decayEntity)
- Called before a decayed entity is killed.
- Returning a non-null value prevents the entity from being killed due to decay. Returning null allows it.