Explodes: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 39: | Line 39: | ||
* There is a 25% chance that the [[particle]] specified by {{sl|General|BarrelParticle}} will be spawned. | * There is a 25% chance that the [[particle]] specified by {{sl|General|BarrelParticle}} will be spawned. | ||
* The damage specified by {{sl|CombatDamage|AmmoCrateDamage}}, using the [[warhead]] specified by {{sl|CombatDamage|C4Warhead}}, will always be dealt to the [[cell]] the overlay occupied. | * The damage specified by {{sl|CombatDamage|AmmoCrateDamage}}, using the [[warhead]] specified by {{sl|CombatDamage|C4Warhead}}, will always be dealt to the [[cell]] the overlay occupied. | ||
* Immediately destroys [[OverlayType]] with {{f|Wall|yes|link}} tags, regardless of [[Strength]]. | |||
== See also == | == See also == | ||
* [[Recreating Tiberium Damage in Yuri%27s Revenge#Explosive Tiberium|Explosive Tiberium in RA2]] | * [[Recreating Tiberium Damage in Yuri%27s Revenge#Explosive Tiberium|Explosive Tiberium in RA2]] |
Latest revision as of 11:09, 7 September 2024
Flag: | Explodes |
File(s): | rules(md).ini |
Values: | Boolean values: yes or no, true or false, 1 or 0 |
Default: | false |
Applicable to: | TechnoTypes:
AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes; OverlayTypes |
For TechnoTypes
In Red Alert,Tiberian Sun and Firestorm
If Explodes=yes is set on a unit, its Primary weapon will be fired once at the cell that the unit occupies when it is destroyed. If the unit does not have Primary set then Explodes=yes will have no effect.
The power of the explosion is proportional to the strength of the destroyed unit. The stronger the unit, the more powerful explosion.
Note that Explodes is not responsible for the special explosions of harvesters containing Tiberium. See TiberiumExplosive for this effect.
In Red Alert 2 and Yuri's Revenge
If Explodes=yes is set on a unit, a certain weapon will be fired at the cell that the unit occupies when it is destroyed by a warhead with Temporal=no:
- If DeathWeapon is specified on the unit then that weapon will be fired.
- If DeathWeapon is not specified on the unit then the its current primary weapon will be fired instead.
- If the unit has neither a DeathWeapon nor a current primary weapon, the default death weapon specified by [CombatDamage]→DeathWeapon will be fired instead.
- If the unit can carry Passengers any passengers inside will perish.
AircraftTypes are a special case. Even without Explodes=yes set, an AircraftType will always fire its current primary weapon at the cell it crashes into. If DeathWeapon is present, it is used instead of the primary weapon.
For OverlayTypes
This feature was neither used in Tiberian Sun nor Red Alert 2, though the logic is still present. If an OverlayType has Explodes=yes set, then the following will occur in order when the cell containing the overlay is damaged:
- The overlay is removed. Units firing at the cell will stop shooting at it.
- The animation specified by [General]→BarrelExplode= will always be displayed.
- There is an 85% chance that one of the VoxelAnims specified by [General]→BarrelDebris= will be randomly selected and spawned.
- There is a 25% chance that the particle specified by [General]→BarrelParticle= will be spawned.
- The damage specified by [CombatDamage]→AmmoCrateDamage=, using the warhead specified by [CombatDamage]→C4Warhead=, will always be dealt to the cell the overlay occupied.
- Immediately destroys OverlayType with Wall=yes tags, regardless of Strength.