That's just wrong!Forboding Angel wrote: Configurable EMP decline
http://springrts.com/mantis/view.php?id=2684
A variable in modrules that controls the decay rate of EMP damage. Currently it is hardcoded to 100% -> 0% in 40 seconds.
Specifically for the version I looked at in https://github.com/spring/spring/blob/d ... s/Unit.cpp [^]
"float CUnit::empDecline = 2.0f * (float)UNIT_SLOWUPDATE_RATE / (float)GAME_SPEED / 40.0f;"
The magic number "40.0f" means 40 seconds. This would need replacing with a value from modrules.
Do you always see 40sec emp counters ingame? No!
The empDecline just defines how fast the empdamage counter decreases. IT HAS NOTHING TO DO WITH HOW LONG AN UNIT IS EMP'ED!
The empdamage counter is NOT in 0..100%, yes it's relative to the units health but can be 120% or even 300000%, too!
How long an units is max emp'ed depends only on the weapon which defines it in seconds (from 0.000001s upto 1e7 seconds!)
If you want to know more about these numbers check the healthbars widget that parse all those correctly.