Jump to content

DeathWeapon

From ModEnc²
Revision as of 21:25, 20 April 2008 by en>Marshall (rewrite in light of talk page comments, added 'as a concept' and 'see also' sections)

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 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.

For [CombatDamage]

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
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 (see Template:TTL for how this may be determined) and has not specified its own DeathWeapon.

For TechnoTypes

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: DeathWeapon
File(s): rules(md).ini
Values: Strings: Normal text. (Limited to: Weapons)
Default: none
Applicable to: TechnoTypes


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