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

Difference between revisions of "Explosion"

From ModEnc
Jump to: navigation, search
(Pages merged. Added DCoder's info. Please remove the old pages if this rewrite is acceptable.)
(Added new info.)
Line 1: Line 1:
 +
There are two uses for this flag in {{ini|rules}}. What those two cases are depends on the game.
 +
 +
__TOC__
 +
 +
== On [[Warheads]] ==
 +
{{Flag
 +
|name={{PAGENAME}}
 +
|files={{ini|rules}}
 +
|values={{values|int|0–6}}
 +
|default=0
 +
|types=[[Warheads]]
 +
|ra=yes
 +
|cs=yes
 +
|am=yes
 +
}}
 +
 +
Defines which set of pre-determined explosion [[animations]] to use when a warhead of this type impacts. The values are explained below:
 +
{| class="wikitable"
 +
|-
 +
!Value
 +
!Description
 +
|-
 +
|0
 +
|No animation
 +
|-
 +
|1
 +
|A single bullet impact
 +
|-
 +
|2
 +
|Multiple bullet impacts
 +
|-
 +
|3
 +
|Fire, napalm
 +
|-
 +
|4
 +
|Armor-piercing rounds
 +
|-
 +
|5
 +
|High explosives
 +
|-
 +
|6
 +
|Nuclear explosion
 +
|-
 +
|}
 +
 +
== On [[TechnoTypes]] ==
 
{{Flag
 
{{Flag
 
|name={{PAGENAME}}
 
|name={{PAGENAME}}
|files=rules(md).ini
+
|files={{ini|rules}}
|values=Crate Parameters; Animations
+
|values={{values|stringlist|[[Animations]]}}
|types=[[Powerups]], [[VehicleTypes]], [[AircraftTypes]], [[BuildingTypes]]
+
|types=[[VehicleTypes]], [[AircraftTypes]], [[BuildingTypes]]
 
|ts=yes
 
|ts=yes
 
|fs=yes
 
|fs=yes
|ets=yes
+
|hp=yes
 
|ra2=yes
 
|ra2=yes
 
|yr=yes
 
|yr=yes
|rp=yes
+
|ares=yes
}}<br />
+
}}
  
There are 2 uses of this flag.
+
Specifies the list of explosion animations to use when this object is destroyed. The game randomly displays one of them, or in the case of [[BuildingTypes|buildings]], one on each [[cell]] that the building occupies.
  
__TOC__
+
This does not work on InfantryTypes.
  
== In the Crate Powerups section ([[Powerups|[Powerups]]]) ==
+
== In [[Powerups]] ==
 +
{{Flag
 +
|name={{PAGENAME}}
 +
|files={{ini|rules}}
 +
|values={{values|stringlist}}
 +
|types=[[Powerups]]
 +
|ts=yes
 +
|fs=yes
 +
|hp=yes
 +
|ra2=yes
 +
|yr=yes
 +
|ares=yes
 +
}}
  
Here, the flag is used to control the effect of an Explosion crate. This crate type is unused in the game by default.
+
Here, the flag is used to control the effect of an exploding bonus [[crate]]. It takes a comma-separated list of three parameters that determine the probability, animation, and damage dealt by the explosion, in that order. {{ra2}} and {{yr}}) have a fourth parameter which controls whether this type of crate can spawn on water. See [[Powerups]] for more information.
 
 
The fourth parameter is the amount of damage inflicted. This uses the warhead defined in [[C4Warhead]] so by editing that you can customize this crate power up.
 
 
 
== On TechnoTypes ==
 
 
 
Specifies the list of explosion animations to use when this object is destroyed. <br>
 
There are usually 5 in the list separated by commas, and the game displays them randomly at single-cell offsets from the center of the object. <br>
 
Each of the animations should be listed in the [[Animations|[Animations]]] list and have their own entry defined in art(md).ini. Where a 6th animation is present on BuildingTypes it appears to be a structure-specific explosion (this is only used on power plants in Red Alert 2).<br>
 
This does not work on InfantryTypes.
 

Revision as of 19:46, 27 February 2020

There are two uses for this flag in rules(md).ini. What those two cases are depends on the game.

On Warheads

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: Explosion
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. (Limited to: 0–6)
Default: 0
Applicable to: Warheads


Defines which set of pre-determined explosion animations to use when a warhead of this type impacts. The values are explained below:

Value Description
0 No animation
1 A single bullet impact
2 Multiple bullet impacts
3 Fire, napalm
4 Armor-piercing rounds
5 High explosives
6 Nuclear explosion

On 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: Explosion
File(s): rules(md).ini
Values: Comma-separated list of strings. (Limited to: Animations)
Applicable to: VehicleTypes, AircraftTypes, BuildingTypes


Specifies the list of explosion animations to use when this object is destroyed. The game randomly displays one of them, or in the case of buildings, one on each cell that the building occupies.

This does not work on InfantryTypes.

In Powerups

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: Explosion
File(s): rules(md).ini
Values: Comma-separated list of strings.
Applicable to: Powerups


Here, the flag is used to control the effect of an exploding bonus crate. It takes a comma-separated list of three parameters that determine the probability, animation, and damage dealt by the explosion, in that order. Red Alert 2 and Yuri's Revenge) have a fourth parameter which controls whether this type of crate can spawn on water. See Powerups for more information.