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
m (added links to current primary weapon)
m (updated category)
Line 1: Line 1:
 
=As a concept=
 
=As a concept=
When some units are destroyed they explode, potentially damaging surrounding objects. This effect is achieved in-game by setting {{TTL|Explodes|yes}} on the object - this tells the game to fire a weapon at the [[cell]] previously occupied by the destroyed unit. See the flags below for how that 'death weapon' is determined.
+
When some units are destroyed they explode, potentially damaging surrounding objects. This effect is achieved in-game by setting {{TTL|Explodes|yes}} on the unit - this tells the game to fire a weapon at the [[cell]] previously occupied by the destroyed unit. See the flags below for how that 'death weapon' is determined.
  
 
=For [CombatDamage]=
 
=For [CombatDamage]=
Line 17: Line 17:
 
|values={{values|string|[[Weapons]]}}
 
|values={{values|string|[[Weapons]]}}
 
|default=none* (default is not hard-coded or pre-determined from INI code, but is instead taken to be the unit's [[Primary#Current_Primary_Weapon|current primary weapon]])
 
|default=none* (default is not hard-coded or pre-determined from INI code, but is instead taken to be the unit's [[Primary#Current_Primary_Weapon|current primary weapon]])
|types={{Categ|TechnoTypes}}
+
|types={{CatAllTypes}}
 
|ra2=yes
 
|ra2=yes
 
|yr=yes
 
|yr=yes

Revision as of 10:15, 21 April 2008

As a concept

When some units are destroyed they explode, potentially damaging surrounding objects. This effect is achieved in-game by setting Template:TTL on the unit - this tells the game to fire a weapon at the cell previously occupied by the destroyed unit. See the flags below for how that 'death weapon' is determined.

For [CombatDamage]

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. This is only used if the exploding unit does not have a current primary weapon) and has not specified its own DeathWeapon.

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* (default is not hard-coded or pre-determined from INI code, but is instead taken to be the unit's current primary weapon)
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



Specifies the death weapon to use when this unit is destroyed in-game (assuming that this unit also has Template:TTL set). Note that DeathWeapon on the unit overrides any other method for determing the death weapon to use.

See Also