Jump to content

Hospital: Difference between revisions

From ModEnc²
en>Crimsonum
No edit summary
en>Crimsonum
m Not a TS-only bug apparently.
Line 23: Line 23:
{{bugs}}
{{bugs}}


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}}).
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 14:57, 12 January 2022

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
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.

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).