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

CanC4

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: CanC4
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: yes
Applicable to: BuildingTypes


Determines whether or not this building can be destroyed by a unit with C4=yes.

Notes

This does not prevent it from being destroyed by the various "fake" C4 weapons in RA2/YR on the Chrono Commando, Navy Seal, and Tanya (against vehicles).

This flag will prevent the building from being targeted by Airstrike=yes.

  • Starting from Phobos Build#32, this can be individually configured via [BuildingType]AllowAirstrike=bool. In Build#47, this was extended to all TechnoTypes.

Bugs/Side-Effects/Unexpected Limitations

A building with CanC4=no will always take at least one hitpoint of damage except Damage=0.

  • This refers to non-zero Damage that, after being modified by Verses, PercentAtMax, etc., falls below 1 (possibly becoming 0 or negative) will still forcibly deal 1 point of damage.
    • Starting from Phobos Build#34, you can add CanC4.AllowZeroDamage=true to buildings with CanC4=no to disable this effect for damage values that become 0 after modification, while negative values will always bypass this behavior.

See Also