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

DeathAnims

From ModEnc
Revision as of 09:51, 27 May 2022 by Ghost114514 (talk | contribs)
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: DeathAnims
File(s): rules(md).ini
Values: ERROR – No value types set! Please edit this page and fix the Flag template!

This entry was copied from DeeZire's Red Alert 2 and Yuris Revenge INI Editing Guide for the sake of completeness. As it is not our intention to rip off DeeZire's work, this article is subject to a re-write and update with the latest community knowledge.

For further information, please read Inclusion of The Guide.




Defines what animation sequences should be used when this InfantryType is killed. This is used because InfantryTypes cannot have an Explosion= defined. The animation sequence must be listed in the [Animations] section of RULES.INI and defined in ART.INI.

How it works

Specifies a list of Animations from which an animation can be selected for creation on the death of an InfantryType by a warhead with InfDeath=X set (where X is the list index (zero-based) of the Animations from DeathAnims).If "InfDeath" is not set, default to "InfDeath=0",just like the original set. If no animation is connected to the InfDeath, the first one in the list will be used instead.

Example

[INFEXAMPLE]
...
DeathAnims=DIEANI0,DIEANI1,DIEANI2,DIEANI3,DIEANI4,DIEANI5,DIEANI6,DIEANI7,DIEANI8
...

If the Infantry above is killed by a "InfDeath=2" warhead, animation "DIEANI2" will be played.
If the Infantry above is killed by a "InfDeath=9" or above warhead, animation "DIEANI0" will be played.
However, all of the original animations defined by InfDeath will be override, including "Die1" and "Die2" in the infantry image in ART.INI.(Maybe this is the reason why it is not used in Red Alert 2 even though it is new to the game engine.)


Necessary to add despite lack of rewrite:

Automatic List Inclusion

Animations used as values for this flag are automatically listed under the internal [Animations] array. However no harm can be done by listing them manually.