ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
ConditionYellow: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Info about hardcoded elements. |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Flag | ||
When an object is damaged to this percentage of its original Strength | |name={{PAGENAME}} | ||
|files={{Categ|ini=rules}} | |||
|values={{values|percentages}} | |||
|default=50% | |||
|types={{Categ|General}} (in RA), {{Categ|AudioVisual}} (in TS to YR) | |||
|ra=yes | |||
|cs=yes | |||
|am=yes | |||
|ts=yes | |||
|fs=yes | |||
|hp=yes | |||
|ra2=yes | |||
|yr=yes | |||
|ares=yes | |||
}} | |||
When an object is damaged to this percentage of its original {{f|Strength|link}} value, the color of its health bar turns yellow. | |||
Under condition yellow and red health, a building's damaged frames are shown and in RA2/YR, building on fire animation is also shown. For {{f|CanBeOccupied|yes}} structures, on fire animation is shown on condition red only. For civilian buildings ({{f|CanBeOccupied|yes}} and {{f|TechLevel|-1}}), both damaged frames and on fire animation is shown on condition red only. | |||
In addition, many other features depend on this setting, including, but not limited to: | |||
* [[BerzerkAllowed]] | |||
* [[ConditionYellowSparkingProbability]] | |||
* [[Culling]] | |||
* [[DamageDelay]] | |||
* [[BehavesLike#Spark|Spark-type]] [[DamageParticleSystems|particle effects]] | |||
* [[SelfHealing]] | |||
* Any of the damaged building animations, like [[ActiveAnimDamaged]] | |||
'''Note:''' [[BehavesLike#Smoke|Smoke-type]] [[DamageParticleSystems|particle effects]] and [[BlowupSound|building damage sound]] are hardcoded to play once the object's health drops below 50%. | |||
== See Also == | |||
* [[ConditionRed]] |
Latest revision as of 09:59, 8 February 2024
Flag: | ConditionYellow |
File(s): | rules(md).ini |
Values: | Percentages: Either a direct percentage (e.g. "50%"), or a floating point value (e.g. "0.5"). |
Default: | 50% |
Applicable to: | General (in RA), AudioVisual (in TS to YR) |
When an object is damaged to this percentage of its original Strength value, the color of its health bar turns yellow.
Under condition yellow and red health, a building's damaged frames are shown and in RA2/YR, building on fire animation is also shown. For CanBeOccupied=yes structures, on fire animation is shown on condition red only. For civilian buildings (CanBeOccupied=yes and TechLevel=-1), both damaged frames and on fire animation is shown on condition red only.
In addition, many other features depend on this setting, including, but not limited to:
- BerzerkAllowed
- ConditionYellowSparkingProbability
- Culling
- DamageDelay
- Spark-type particle effects
- SelfHealing
- Any of the damaged building animations, like ActiveAnimDamaged
Note: Smoke-type particle effects and building damage sound are hardcoded to play once the object's health drops below 50%.