ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

SuppressionThreshold

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: SuppressionThreshold
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



Define after the host of this parasite receives more than (strictly greater than) how much damage, if the host is destroyed within 2 * the damage-received time - SuppressionThreshold, then this parasite dies along with it.

Notes

In this article, the damage compared with SuppressionThreshold is not the final damage value after complete calculation, but is Pre-hit damage.

The handling process is as follows:

  • The host is hit, the damage is higher than the parasite's SuppressionThreshold, and the damage source is not the parasite.
  • Overwrite the remaining time of the suppression timer as 2 × damage − SuppressionThreshold.
  • Apply damage to the host (that is, the preceding steps are handled before damage application).

When the unit is destroyed, if the timer has expired (current frame >= timer start frame + timer duration), the parasite will be spawned; otherwise, the parasite dies along with the host.

Based on the above process, the following inferences can be drawn:

  • As long as it is a weapon whose damage is higher than SuppressionThreshold, because the timer overwrite occurs earlier than the damage is applied, the kill is always within the timer's working time, and the parasite will inevitably die.
  • As long as it is a warhead with Sonic=true (include AmbientDamage, because the behavior of expelling the parasite occurs earlier than the damage is applied, the parasite will inevitably successfully leave the host when killed.
  • A weapon with SuppressionThreshold < damage < the host's current remaining health can only reduce or increase the waiting time by overwriting the timer; to keep the parasite alive, it still needs the parasite, or - after the timer has ended - a weapon with damage not greater than SuppressionThreshold to kill the host.

Note that the above "survival" actually means that the parasite will not be set to die along with the host, but whether the escape can ultimately be created on the map still needs to pass other additional checks such as Naval; see Parasite for details.

See Also