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

PadAircraft

From ModEnc
Jump to navigation Jump to search
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: PadAircraft
File(s): rules(md).ini
Values: Comma-separated list of strings. (Limited to: AircraftTypes)
Applicable to: General


Specify which aircraft are fighter jets that need a helipad.

Notes

The first aircraft on this list is spawned whenever a BuildingType with HoverPad=yes is constructed and [General]SeparateAircraft=no is set. The aircraft will appear docked to the building regardless of whether or not the building has Helipad=yes set.

In Red Alert 2, this flag also lists the AircraftTypes that must dock with a BuildingType that has Helipad=yes set. This list should include all aircraft with AirportBound=yes set in order to make sure that production is not continued when subsequently produced aircraft would have nowhere to land. Failure to list such aircraft results in the first AirportBound aircraft beyond the number of available docks switching to "On Hold" state about 40% into the construction process and never completing.

A useful point is that you can preemptively occupy parking slots at the airport by generating Aircraft existing in the PadAircraft list through [TechnoType]Spawns=.

  • This technique was used in the Ares era when producing VehicleTypes with Locomotor=Jumpjet from airports[ref 1], to prevent players from artificially producing airport-class fighters that would occupy all slots, thereby leaving no space to produce tool-based dummy aircraft and consequently being unable to produce vehicles.

Automatic List Inclusion

AircraftType used as values for this flag are automatically listed under the internal [AircraftTypes] array. However no harm can be done by listing them manually.

Bugs/Side-Effects/Unexpected Limitations

Aircraft in this list must have a valid BuildingType where they can attempt to land. If [AircraftType]Dock= is empty or buildings does not exist[fn 1], it will cause EIP#0045ED61.

Footnotes

  1. This could also be due to the modder filling in an aircraft that actually has no relevant definition due to reasons like typos — such an aircraft certainly wouldn't have a Dock= setting.

References

See Also