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

Difference between revisions of "UnitRepair"

From ModEnc
Jump to: navigation, search
(Rewrite + IE info)
m
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
|ares=yes
 
|ares=yes
 
}}
 
}}
 
+
If set to yes, [[VehicleTypes]] are able to dock with this structure and get repaired. Repair rate and cost is determined by the {{sl|General|URepairRate}} and {{sl|General|RepairStep}} flags.
If set to yes, VehicleTypes are able to dock with this structure and get repaired. Repair rate and cost is determined by the {{sl|General|URepairRate}} and {{sl|General|RepairStep}} flags.
 
 
 
 
{{bugs}}
 
{{bugs}}
In unmodded RA2 and YR, this flag is commented out from the entries for the Allied Airforce Command Center and its American equivalent, along with a comment '';gs this is part of reloading + being an aircraft (Repair code is oogly, only Reload got rewritten for four ports.)''.
+
*In unmodded RA2 and YR, this flag is commented out from the entries for the Allied Airforce Command Center and its American equivalent, along with a comment '';gs this is part of reloading + being an aircraft (Repair code is oogly, only Reload got rewritten for four ports.)''.<br>
 
+
*The comment fails to mention any bugs, but reenabling it on such a structure will have adverse side-effects and even '''cause an [[Internal Error]]''' - when an AI's unit is damaged, it will attempt to find the closest structure it has with this flag enabled (regardless of whether the unit can actually enter it), and send the unit there for repairs. If that destination structure happens to be an airpad, the game will enter an infinite loop and crash.<br>
The comment fails to mention any bugs, but reenabling it on such a structure will have adverse side-effects and even '''cause an [[Internal Error]]''' - when an AI's unit is damaged, it will attempt to find the closest structure it has with this flag enabled (regardless of whether the unit can actually enter it), and send the unit there for repairs. If that destination structure happens to be an airpad, the game will enter an infinite loop and crash.
+
*In addition to this, even aircraft that can legitimately land in this structure will trigger its repair loop after landing, and this loop will kick them off once they're fully repaired, meaning that an aircraft sent to dock with such a structure will never manage to do it.<br>
 
+
*It's funny for [[TS]],[[FS]],Ra2 if [[BuildingTypes]] has a <b>UnitRepair=yes</b> tag (with no other tags associated with and <b>UnitRepair=yes</b>) will make [[VehicleTypes]] on land unable to attack. ([[VehicleTypes]] with tag {{f|BalloonHover|yes|link}}+{{f|Naval|yes|link}} is still allowed to attack normally)<br>
In addition to this, even aircraft that can legitimately land in this structure will trigger its repair loop after landing, and this loop will kick them off once they're fully repaired, meaning that an aircraft sent to dock with such a structure will never manage to do it.  
+
*For YR [[VehicleTypes]] that uses vertical weapons <b>Vertical</b>(See Also {{f|Vertical|yes|link}}), If it is controlled by the player Those [[VehicleTypes]] cannot attack [[BuildingTypes]] with <b>UnitRepair=yes</b> tags.<br>
 
 
 
== Other notes ==
 
== Other notes ==
 
The AI is extremely dumb about using repair bays of any kind - it will blindly send Kirovs and Siege Choppers there despite the fact that they can never actually get repaired, and it will not differentiate between a land-based and water-based repair bay when a unit can reach both (e.g. Robot Tank). In some cases, a non Naval unit will enter a Shipyard for repairs, but the Shipyard will not repair it. So, it would be wise not to give the AI any repair bays.
 
The AI is extremely dumb about using repair bays of any kind - it will blindly send Kirovs and Siege Choppers there despite the fact that they can never actually get repaired, and it will not differentiate between a land-based and water-based repair bay when a unit can reach both (e.g. Robot Tank). In some cases, a non Naval unit will enter a Shipyard for repairs, but the Shipyard will not repair it. So, it would be wise not to give the AI any repair bays.

Latest revision as of 07:09, 6 October 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: UnitRepair
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, VehicleTypes are able to dock with this structure and get repaired. Repair rate and cost is determined by the [General]URepairRate= and [General]RepairStep= flags.

Cc alert.png Bugs/Side-Effects/Unexpected Limitations

  • In unmodded RA2 and YR, this flag is commented out from the entries for the Allied Airforce Command Center and its American equivalent, along with a comment ;gs this is part of reloading + being an aircraft (Repair code is oogly, only Reload got rewritten for four ports.).
  • The comment fails to mention any bugs, but reenabling it on such a structure will have adverse side-effects and even cause an Internal Error - when an AI's unit is damaged, it will attempt to find the closest structure it has with this flag enabled (regardless of whether the unit can actually enter it), and send the unit there for repairs. If that destination structure happens to be an airpad, the game will enter an infinite loop and crash.
  • In addition to this, even aircraft that can legitimately land in this structure will trigger its repair loop after landing, and this loop will kick them off once they're fully repaired, meaning that an aircraft sent to dock with such a structure will never manage to do it.
  • It's funny for TS,FS,Ra2 if BuildingTypes has a UnitRepair=yes tag (with no other tags associated with and UnitRepair=yes) will make VehicleTypes on land unable to attack. (VehicleTypes with tag BalloonHover=yes+Naval=yes is still allowed to attack normally)
  • For YR VehicleTypes that uses vertical weapons Vertical(See Also Vertical=yes), If it is controlled by the player Those VehicleTypes cannot attack BuildingTypes with UnitRepair=yes tags.

Other notes

The AI is extremely dumb about using repair bays of any kind - it will blindly send Kirovs and Siege Choppers there despite the fact that they can never actually get repaired, and it will not differentiate between a land-based and water-based repair bay when a unit can reach both (e.g. Robot Tank). In some cases, a non Naval unit will enter a Shipyard for repairs, but the Shipyard will not repair it. So, it would be wise not to give the AI any repair bays.