Jump to content

ActiveAnimZAdjust: Difference between revisions

From ModEnc²
en>McPwny
No edit summary
m 6 revisions imported
 
(2 intermediate revisions by one other user not shown)
Line 12: Line 12:
|ares=yes
|ares=yes
}}
}}
Used in a building's art(md).ini entry and adjusts the [[ZAdjust|Z-draw offset]] for the building's {{f|ActiveAnim|link}} and {{f|ActiveAnimDamaged|link}} animations. Negative values cause the animation to be drawn "closer to the screen" and positive values "away" from the screen, measured in [[leptons]].
Used in a building's art(md).ini entry and adjusts the [[ZAdjust|Z-draw offset]] for the building's {{f|ActiveAnim|link}} and {{f|ActiveAnimDamaged|link}} animations. Negative values cause the animation to be drawn "closer to the screen" and positive values "away" from the screen, at the bottom of the ZAadjust page, an external link from the RA2DIY forum has been added, which provides [[ZAdjust]]'s coordinate system for reading and calculation.


The ActiveAnimZAdjust= value is particularly useful for keeping building animations from layering improperly with other animations and with other buildings, but less useful for solving layering issues between building animations and units. For that see [[ActiveAnimYSort]]
The ActiveAnimZAdjust= value is particularly useful for keeping building animations from layering improperly with buildings, terrain, overlay, tile, but less useful for solving layering issues between animations and units. For that see [[ActiveAnimYSort]]


The related flags {{f|ActiveAnimTwoZAdjust|link}}, {{f|ActiveAnimThreeZAdjust|link}}, and {{f|ActiveAnimFourZAdjust|link}} do the same and apply to their respective {{tt|ActiveAnim#}} and {{tt|ActiveAnim#Damaged}} animations.
The related flags {{f|ActiveAnimTwoZAdjust|link}}, {{f|ActiveAnimThreeZAdjust|link}}, and {{f|ActiveAnimFourZAdjust|link}} do the same and apply to their respective {{tt|ActiveAnim#}} and {{tt|ActiveAnim#Damaged}} animations.
Line 21: Line 21:
* [[ZAdjust]]
* [[ZAdjust]]
* [[ActiveAnimX]]
* [[ActiveAnimX]]
* [[ActiveAnimY]]
* [[ActiveAnimYSort]]

Latest revision as of 21:35, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: ActiveAnimZAdjust
File(s): Art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: BuildingTypes


Used in a building's art(md).ini entry and adjusts the Z-draw offset for the building's ActiveAnim and ActiveAnimDamaged animations. Negative values cause the animation to be drawn "closer to the screen" and positive values "away" from the screen, at the bottom of the ZAadjust page, an external link from the RA2DIY forum has been added, which provides ZAdjust's coordinate system for reading and calculation.

The ActiveAnimZAdjust= value is particularly useful for keeping building animations from layering improperly with buildings, terrain, overlay, tile, but less useful for solving layering issues between animations and units. For that see ActiveAnimYSort

The related flags ActiveAnimTwoZAdjust, ActiveAnimThreeZAdjust, and ActiveAnimFourZAdjust do the same and apply to their respective ActiveAnim# and ActiveAnim#Damaged animations.

See also