ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
CanC4
Jump to navigation
Jump to search
| 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.