Jump to content

OccupyDamageMultiplier: Difference between revisions

From ModEnc²
en>Nighthawk200
m I feel so ashamed :P...
m 5 revisions imported
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Flag
{{Flag
|name=OccupyDamageMultiplier
|values={{Values|float}}
|files={{Categ|Rules(md).ini}}
|values=floats (possibly unsigned)
|default=1.0
|default=1.0
|types={{Categ|CombatDamage}}
|types={{Categ|CombatDamage|[CombatDamage]}}
|yr=yes
|yr=yes
|rp=yes
}}
}}


Defines a global multiplier to the weapons' <tt>[[Damage]]=</tt> when those weapons are fired from inside garrisoned structures.
This flag acts as a multiplier to the {{f|Damage|link}} of any [[Weapons|weapon]] fired by an [[InfantryTypes|infantry]] with {{f|Occupier|yes|link}} while occupying a [[BuildingTypes|building]] with {{f|CanOccupyFire|yes|link}}, {{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]].
Base damage&mdash;before the target's {{f|Armor|link}} is considered&mdash;is the weapon's {{f|Damage}} multiplied by {{f|OccupyDamageMultiplier|link}} and any other damage multipliers.
 
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|OccupyWeaponRange|link}}
* {{f|OccupyROFMultiplier|link}}

Latest revision as of 22:00, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: OccupyDamageMultiplier
File(s): rules(md).ini
Values: Floating point values: Any decimal number (clearer range should be added in Template:Values).
Default: 1.0
Applicable to: [CombatDamage]


This flag acts as a multiplier to the Damage of any weapon fired by an infantry with Occupier=yes while occupying a building with CanOccupyFire=yes, CanBeOccupied=yes and MaxNumberOccupants set to a positive integer greater than 0.

Base damage—before the target's Armor is considered—is the weapon's Damage multiplied by OccupyDamageMultiplier and any other damage multipliers.

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