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

DoorAnim

From ModEnc
Revision as of 21:21, 16 June 2023 by Crimsonum (talk | contribs) (Updated and corrected,)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: DoorAnim
File(s): Art(md).ini
Values: Strings: Normal text. (Limited to: Shape filename without the .shp file extension)
Default: none
Applicable to: BuildingTypes


DoorAnim is a Tiberian Sun era feature used on weapons factories to play the factory door animation. The animation listed in this flag is played the moment that a unit is created from the factory, and the unit will wait for the animation to complete before exiting, after which the animation is played again in reverse.

Note that this flag does not refer to usual animation types, instead the given shape file is drawn directly by the engine on the building similar to gate animations. This means door animations cannot be tweaked by INI controls in any way except for the duration (DeployTime) and number of normal (non-shadow) frames (DoorStages). As such, the animation's layering cannot be altered (via ZAdjust nor YSortAdjust). It is always drawn above the produced unit and the building's DeployingAnim and UnderDoorAnim animations, but behind the building's normal image. In addition, the game will draw the shape file's remaining frames as shadow frames.

Like gate animations, door animations will play from the first frame to the last normal frame, and then play backwards from that frame back to the first. In both cases, the animation rate is not normalized; the length of the animation (in one direction) is determined by the building's DeployTime value.

In Red Alert 2, the door animation logic is still functional but highly obsolete since door animations cannot accomodate aircraft leaving the top of the factory, and conflicts with the DeployingAnim and UnderDoorAnim animations that now render the layers of the factory which have also unfortunately been hardcoded to play a single frame.

See Also