Jump to content

AirRangeBonus: Difference between revisions

From ModEnc²
en>Mevitar
fixed incorrect info about working only vs AircraftTypes
Volkov T-666 (talk | contribs)
mNo edit summary
 
(8 intermediate revisions by 5 users not shown)
Line 3: Line 3:
|files={{Categ|ini=rules}}
|files={{Categ|ini=rules}}
|types={{Categ|Technoes}}
|types={{Categ|Technoes}}
|values={{values|unsigned integers}}
|values={{Values|float|range in cells}}
|default=0.0
|ra2=yes
|ra2=yes
|yr=yes
|yr=yes
|rp=yes
|rp=yes
}}This flag defines the additional range added to a [[TechnoType]]'s {{f|Primary|link}} 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 {{f|AA|yes|link}} set.
}}
This flag defines the additional range added to all of [[TechnoType]]'s weapons when it is targeting objects in air. In order to do this, the weapon's projectile must have {{f|AA|yes|link}} set.


This flag only applies to the {{f|Primary|link}} 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 a unit gets ordered to attack an airborne target, it will strive to move into the [[Range]] value of its anti-air weapon, and stay there while attacking. Adding ''AirRangeBonus'' doesn't affect this behavior, but as it increases the weapon's effective firing range, it actually makes slow moving anti-air units more effective against targets that are able to escape from them (especially if they have {{f|OpportunityFire|yes|link}}), since they will automatically move in to cover a larger area.
*<b>AirRangeBonus=<font style="color:red">-2</font></b> There will be no results. But this tag will be disabled.
 
 
If a unit with AirRangeBonus has a weapon with the projectile {{f|FlakScatter|yes|link}}, scatter effect is also increased accordingly:
*If WeaponProjectile+FlakScatter has a small <b>''weapon range''</b> value but a unit large ''<b>AirRangeBonus</b>,'' it will greatly increase the scatter of {{f|BallisticScatter|link}}.


== Notes ==
*If WeaponProjectile+FlakScatter has a large <b>''weapon range''</b> value but a unit small ''<b>AirRangeBonus</b>,'' it will have a smaller effect on {{f|BallisticScatter|link}}.
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 {{PAGENAME}} 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 {{f|OpportunityFire|no|link}}).

Latest revision as of 10:44, 4 April 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AirRangeBonus
File(s): rules(md).ini
Values: Floating point values: Any decimal number (clearer range should be added in Template:Values). (Limited to: range in cells)
Default: 0.0
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



This flag defines the additional range added to all of TechnoType's weapons when it is targeting objects in air. In order to do this, the weapon's projectile must have AA=yes set.

Notes

When a unit gets ordered to attack an airborne target, it will strive to move into the Range value of its anti-air weapon, and stay there while attacking. Adding AirRangeBonus doesn't affect this behavior, but as it increases the weapon's effective firing range, it actually makes slow moving anti-air units more effective against targets that are able to escape from them (especially if they have OpportunityFire=yes), since they will automatically move in to cover a larger area.

  • AirRangeBonus=-2 There will be no results. But this tag will be disabled.


If a unit with AirRangeBonus has a weapon with the projectile FlakScatter=yes, scatter effect is also increased accordingly:

  • If WeaponProjectile+FlakScatter has a small weapon range value but a unit large AirRangeBonus, it will greatly increase the scatter of BallisticScatter.
  • If WeaponProjectile+FlakScatter has a large weapon range value but a unit small AirRangeBonus, it will have a smaller effect on BallisticScatter.