RocketMod Decay System:
I need this plugin to be as lag efficient as possible.
Will be deployed on 25+ servers.
Desc: Generator radius provides decay protection.
Usage: All structures not in a radius of a powered generator would be destroyed in a specified amount of time.
Config:
Decay should be enabled for players by default.
Permission to prevent decay for user. Ex. "decay.admin"
Configurable fuel time for both types of generators. Preferably in seconds.
Decay radius: use default generator radius.
Option for Instant damage or gradual damage (gradual should be percentage based and must be able to use decimal number. For example, 0.215% a second or every 5 seconds)
Instant dmg destroys the buildable at the time of decay.
This would be a specific time AFTER the generators run out of fuel.Gradual decay slowly reduces hp till zero (destruction).
Heals when in presence of a powered generator.
Config option for generators to heal structures (undo the gradual decay. See line above).
Configurable time for decay when in unpowered radius
- We need a global decay for both structures and barricades.
Ex. All structures & barricades should decay at their globally set time. - Additionally, we need to be able to blacklist certain buildables from global decay and give them their own decay settings.
- When in a powered generator range, instant decay should reset.
When the generator runs out of fuel, the timer should begin. (Global and custom timers).
- We need a global decay for both structures and barricades.
Reset decay timer for structures on login, plates still keep same decay timer unless in gen range. (configurable true/false).
Webhooks when structures decay including player name with steamid and amount of structures destroyed.
Commands:
/decayCheck - Checks the owner of the structures you are looking at and when their buildable decays.