Jump to content

AirRangeBonus

From ModEnc²
Revision as of 21:40, 20 May 2014 by en>Mevitar (fixed incorrect info about working only vs AircraftTypes)
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AirRangeBonus
File(s): rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



This flag defines the additional range added to a TechnoType's Primary weapon when it is targeting airborne units (doesn't matter if AircraftTypes, VehicleTypes or InfantryTypes). In order to do this, the weapon's projectile must have AA=yes set.

This flag only applies to the Primary weapon. It should be set less than or equal to the normal range of the weapon, otherwise targeting issues arise, and the unit will be unable to target anything.

Notes

When unit gets ordered to attack an airborne target, it will strive to move into the Range value, and stay there while attacking. Since adding AirRangeBonus increases the actual weapon's firing range, but doesn't affect this behavior, in some situations it helps slow moving AA units when attacking targets that will try to escape (especially if they have OpportunityFire=no).