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

Hospital: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Crimsonum (talk | contribs)
No edit summary
DeathFish (talk | contribs)
m Remove content that attacks others
(5 intermediate revisions by 3 users not shown)
Line 14: Line 14:
|ares=yes
|ares=yes
}}
}}
If set to yes, this [[BuildingType|building]] heals any [[InfantryTypes|infantry units]] that enter it. The building must also have {{f|Ammo|link}} set to a value greater than 0 to specify the number of times it can heal infantry.
If set to yes, this [[BuildingType|building]] heals any [[InfantryTypes|infantry units]] that enter it. The building must also have {{f|Ammo|link}} set to a value greater than 0 to specify the number of times it can heal infantry.


Note that giving the BuildingType a weapon will use up one {{f|Ammo|link}} each time the weapon fires and makes the building permanently unusuable (no firing, no healing) once it runs out of {{f|Ammo|link}}.
Note that giving the BuildingType a weapon will use up one {{f|Ammo|link}} each time the weapon fires and makes the building permanently unusuable (no firing, no healing) once it runs out of {{f|Ammo|link}}.


'''Note''': While this flag is still valid in Yuri's Revenge, YR Hospitals use {{f|InfantryGainSelfHeal|link}} instead.
==Note==
*While this flag is still valid in Yuri's Revenge, YR Hospitals use {{f|InfantryGainSelfHeal|link}} instead.<br>
*Adding some tags (which tags?) will make [[InfantryTypes]] unable to receive treatment.<br>
<div><ul>
<li style="display: inline-block;">[[File:You didn't get treatment for being stupid bastard(4SG).gif|frame]]</li>
</ul></div>


{{bugs}}
{{bugs}}
 
*Using this on a building that also has {{f|Factory|UnitType|link}} or {{f|Factory|InfantryType|link}} set causes the AI to spam only one type of unit from that factory, the first vehicle/infantry type that the AI can build (i.e. the AI [[house]] is listed as the object's {{f|Owner|link}}).
In Tiberian Sun, using this on a building that also has {{f|Factory|UnitType|link}} or {{f|Factory|InfantryType|link}} set causes the AI to spam only one type of unit from that factory, the first vehicle/infantry type that the AI can build (i.e. the AI [[house]] is listed as the object's {{f|Owner|link}}).

Revision as of 17:00, 12 April 2025

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


If set to yes, this building heals any infantry units that enter it. The building must also have Ammo set to a value greater than 0 to specify the number of times it can heal infantry.

Note that giving the BuildingType a weapon will use up one Ammo each time the weapon fires and makes the building permanently unusuable (no firing, no healing) once it runs out of Ammo.

Note

  • While this flag is still valid in Yuri's Revenge, YR Hospitals use InfantryGainSelfHeal instead.
  • Adding some tags (which tags?) will make InfantryTypes unable to receive treatment.

Bugs/Side-Effects/Unexpected Limitations

  • Using this on a building that also has Factory=UnitType or Factory=InfantryType set causes the AI to spam only one type of unit from that factory, the first vehicle/infantry type that the AI can build (i.e. the AI house is listed as the object's Owner).