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

OccupyWeaponRange: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Nighthawk200 (talk | contribs)
m Template Updated
Vinifera7 (talk | contribs)
Revised and corrected.
 
Line 1: Line 1:
{{Flag
{{Flag
|name=OccupyWeaponRange
|values={{Values|unsigned integers}}
|files={{Categ|Rules(md).ini|Rulesmd.ini}}
|values=floats
|default=5
|default=5
|types={{Categ|CombatDamage}}
|types={{Categ|CombatDamage|[CombatDamage]}}
|yr=yes
|yr=yes
|rp=yes
}}
}}


Defines a global override to the weapons' <tt>[[Range]]=</tt> when those weapons are fired from inside garrisoned structures. This is a global switch rather than a multiplier to avoid different range issues when two units with differently ranged weapons are garrisoned.
This flag overrides the {{f|Range|link}} of any [[Weapons|weapon]] fired by an [[InfantryTypes|infantry]] with {{f|Occupier|yes|link}} while occupying a [[BuildingTypes|building]] with {{f|CanBeOccupied|yes|link}} and {{f|MaxNumberOccupants|link}} set to a positive [[Help:Values#Integers|integer]] greater than 0.


For more information, see [[garrison changes in YR]].
The weapon fired by an infantry while occupying a building is determined by {{f|OccupyWeapon|link}}, or {{f|EliteOccupyWeapon|link}} if the infantry's veterancy status is "elite".
 
==See also==
* {{f|OccupyDamageMultiplier|link}}
* {{f|OccupyROFMultiplier|link}}

Latest revision as of 00:25, 14 December 2009

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: OccupyWeaponRange
File(s): rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Default: 5
Applicable to: [CombatDamage]


This flag overrides the Range of any weapon fired by an infantry with Occupier=yes while occupying a building with CanBeOccupied=yes and MaxNumberOccupants set to a positive integer greater than 0.

The weapon fired by an infantry while occupying a building is determined by OccupyWeapon, or EliteOccupyWeapon if the infantry's veterancy status is "elite".

See also