Un-zip and install to: /mods
v0.2 Download Link: http://www.mediafire.com/download/zl57dpd2d2jffe8/corpse_decay_v0.2.rar
Un-zip and install to: /mods
Questions / Answers
Q: What is the "corpse decay" mod?
A: This mod attempts to improve SIM speed by removing unit corpses that have been left un-reclaimed an excessive amount of time. The more mass a unit and later it's corpse has the longer it will take to decay. Example: The fatboy would take just over 3 hours to decay, while most T1 units are removed in about 6 minutes.
Q: Why is this important?
A: Units, props, projectiles, most special effects and yes unit corpses are all considered "entities" and thus are controlled via the game's SIM engine. If there are too many entities in play, it will have a noticeable impact of the speed the SIM will run. Hence your game quality will gradually diminish as well as increase the likelihood that a player will eventually desync.
Q: How does this work?
A: Magic
Kidding aside, this mod works by /hook'ing the unit.lua function that controls corpse creation. This /hook calls for my custom file Wreck_Utils.lua to run a specialized version of the corpse creation scripts.
Q: What changes can i expect to see in game?
A: See list...
- --> The unit corpses that are part of the map are not affected but corpses created 10 seconds after the game has started are.
--> Each corpse has a 3 minute (180 second) delay timer before it is allowed to decay.
--> Corpses will decay at a rate of 2 mass per second.
--> Corpses reaching ZERO mass will explode (no damage) and thus be removed from play.
Future plans / ideas
- --> Adding custom faction specific effects to corpses. (fire / smoke / oil puddles etc...)
--> Scripting a corpse decay rate that increases as SIM speed decreases. COMPLETED /w v0.2
--> Creating a mouse-over event so a player can see how much mass a given unit, rock or tree has.
--> Depending on demands this could be re-scripted as a lobby option
Your feedback is welcome, so long as it contains reproducible and factual details.
Enjoy!
Resin