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

TiberiumSpawnType

From ModEnc
Jump to navigation Jump to search
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: TiberiumSpawnType
File(s): Art(md).ini
Values: Strings: Normal text. (Limited to: OverlayTypes)
Applicable to: Animations


Specifies the overlay that this animation spawns. The overlay type spawned is randomly chosen between the specified type and the next three overlay types in the OverlayTypes list.

Only works if the animation has IsTiberium=yes, Bouncer=yes and other flags associated with debris anims (MaxXYVel, ExpireAnim etc.) set.

Example

Code

In art(md).ini:

[ANIM]
Elasticity=0.0
MaxXYVel=1.0
MinZVel=1.0
ExpireAnim=INVISO
IsTiberium=true
Rate=0
Bouncer=yes
TiberiumSpreadRadius=1
TiberiumSpawnType=TIB01

In rules(md).ini:

[OverlayTypes]
...
102=TIB01
103=TIB02
104=TIB03
105=TIB04
...

Result

When the animation ANIM is created and it collides with the ground or an object, it will spawn one of the four overlay types: TIB01, TIB02, TIB03, or TIB04.

See Also