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

Difference between revisions of "InfantryGainSelfHeal"

From ModEnc
Jump to: navigation, search
m (unimportant, mostly cosmetic addition)
m
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|values={{Values|Unsigned integers}}
 
|values={{Values|Unsigned integers}}
 
|default=0
 
|default=0
 +
|special= -1 to -2147483648
 
|types={{Categ|BuildingTypes}}
 
|types={{Categ|BuildingTypes}}
 
|yr=yes
 
|yr=yes
Line 13: Line 14:
  
  
''(testing needed to determine whether effect stacks with multiple buildings all having this flag and owned by the same player)''
+
==Notes==
 +
*The effects of this flag stack for every additional building a player has with this flag set (eg. the more Tech Hospitals a player owns, the faster their infantry heal).
 +
*Any negative value, such as <b>-1</b>, will disable the tag. <b>InfantryGainSelfHeal</b> 1 time<br>This means that if you have 10 hospitals, you will receive the effect. <b>InfantryGainSelfHeal</b> only 9 times.
 +
 
 +
==See also==
 +
* [[SelfHealing]]
 +
* [[SelfHealInfantryFrames]]
 +
* [[SelfHealInfantryAmount]]
 +
* [[UnitsGainSelfHeal]]

Latest revision as of 16:28, 26 September 2024

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: InfantryGainSelfHeal
File(s): rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Special Values: -1 to -2147483648
Default: 0
Applicable to: BuildingTypes


If set to a value greater than zero, the BuildingType periodically heals all of the owner's InfantryTypes on the map after each SelfHealInfantryFrames by SelfHealInfantryAmount multiplied by this flag's value. Additionally, all of the player's InfantryTypes receive a red cross pip next to their health bar which blinks every time the InfantryType is healed by this logic. The effect is constant for as long as the BuildingType is intact and owned by the player, effectively rendering the still-valid Hospital flag obsolete.

If set to zero, it completely disables the flag (the health bar pip doesn't even appear) as opposed to simply not healing.


Notes

  • The effects of this flag stack for every additional building a player has with this flag set (eg. the more Tech Hospitals a player owns, the faster their infantry heal).
  • Any negative value, such as -1, will disable the tag. InfantryGainSelfHeal 1 time
    This means that if you have 10 hospitals, you will receive the effect. InfantryGainSelfHeal only 9 times.

See also