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

Difference between revisions of "DeathWeapon"

From ModEnc
Jump to: navigation, search
(Bad style: Removed link from heading; Fixed numerous errors: Electro, don't simply copy The Guide &mdash.)
(tested and rewrite)
Line 1: Line 1:
==For [CombatDamage]==
+
==For [{{TTL|CombatDamage}}]==
 
{{Flag
 
{{Flag
 
|values={{values|string|[[Weapons]]}}
 
|values={{values|string|[[Weapons]]}}
Line 8: Line 8:
 
|rp=yes
 
|rp=yes
 
}}
 
}}
{{NeedTesting}}
+
Specifies the default death weapon to use when a unit with {{TTL|Explodes|yes}} set is destroyed, but said unit does not have {{tt|DeathWeapon}} or {{TTL|Primary}} set.
Appears not to be used by the game [[engine]].
 
  
 
+
==For [[TechnoTypes]]==
 
 
==For InfantryTypes, VehicleTypes, and BuildingTypes==
 
 
{{Flag
 
{{Flag
 
|values={{values|string|[[Weapons]]}}
 
|values={{values|string|[[Weapons]]}}
 
|default=none
 
|default=none
|types={{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|BuildingTypes}}
+
|types={{Categ|TechnoTypes}}
 
|ra2=yes
 
|ra2=yes
 
|yr=yes
 
|yr=yes
 
|rp=yes
 
|rp=yes
 
}}
 
}}
When an applicable [[TechnoType]] is destroyed, {{tt|DeathWeapon}} specifies the Weapon fired at the [[cell]] previously occupied by that TechnoType. The {{tt|DeathWeapon}} effect requires that {{TTL|Explodes|yes}} be set as well.
+
 
 +
When a unit is destroyed, and that unit has {{TTL|Explodes|yes}} set, then a weapon will be fired at the [[cell]] previously occupied by that unit.
 +
 
 +
If {{tt|DeathWeapon}} is specified on the unit then that weapon will be fired.
 +
If {{tt|DeathWeapon}} is not specified on the unit then the unit's {{TTL|Primary}} weapon will be fired instead.
 +
If neither {{tt|DeathWeapon}} nor {{TTL|Primary}} are specified on the unit then the weapon specified by [{{TTL|CombatDamage}}]{{arr|r}}{{TTL|DeathWeapon}} will be fired instead.

Revision as of 10:54, 20 April 2008

For [[[:Template:TTL]]]

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: DeathWeapon
File(s): rules(md).ini
Values: Strings: Normal text. (Limited to: Weapons)
Default: none
Applicable to: CombatDamage


Specifies the default death weapon to use when a unit with Template:TTL set is destroyed, but said unit does not have DeathWeapon or Template:TTL set.

For TechnoTypes

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: DeathWeapon
File(s): rules(md).ini
Values: Strings: Normal text. (Limited to: Weapons)
Default: none
Applicable to: TechnoTypes


When a unit is destroyed, and that unit has Template:TTL set, then a weapon will be fired at the cell previously occupied by that unit.

If DeathWeapon is specified on the unit then that weapon will be fired. If DeathWeapon is not specified on the unit then the unit's Template:TTL weapon will be fired instead.

If neither DeathWeapon nor Template:TTL are specified on the unit then the weapon specified by [[[:Template:TTL]]]→Template:TTL will be fired instead.