Jump to content

CellAnim

From ModEnc²
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: CellAnim
File(s): rules(md).ini
Values: Strings: Normal text. (Limited to: Animations)
Default: none
Applicable to: OverlayTypes


Specifies the animation to display in the cell occupied by this overlay.

Bugs/Side-Effects/Unexpected Limitations

  • The animation is drawn 45 pixels below the cell. You can use YDrawOffset in the animation's art(md).ini code to visually rectify this, but it won't change the animation's "physical" location. In other words, any trailer anims, particles, etc. are still spawned from the original location.
  • If the overlay type also has Tiberium=yes:
    • The animation is forced to use the unit palette instead of the animation palette, and map the colors according to the color scheme set by the Color under Tiberiums for the corresponding parts.
    • The radar color of the overlay are no longer read from the overlay shape but the animation's shape. Therefore, the animation shape should have at least 12 frames with appropriate radar colors, each frame related to one of the 12 Tiberium growth stages. Any missing frames are replaced with black on the radar. The cell animation type itself can use any number of frames, it does not need to be restricted to 12 frames.