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

Rate: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Crimsonum (talk | contribs)
Added a note about rate=0
DeathFish (talk | contribs)
mNo edit summary
 
Line 19: Line 19:
'''Note''': The animation playback rate is determined by dividing 900 with {{f|Rate}} and truncating the result to the nearest integer. For example, an animation with {{f|Rate|500}} and another with {{f|Rate|800}} will have the same rate, 1, meaning they will both play at maximum speed (1 animation frame per tick).
'''Note''': The animation playback rate is determined by dividing 900 with {{f|Rate}} and truncating the result to the nearest integer. For example, an animation with {{f|Rate|500}} and another with {{f|Rate|800}} will have the same rate, 1, meaning they will both play at maximum speed (1 animation frame per tick).


  900 / 500 = 1.8 → 1
  900 / 500 = 1.8   → 1
  900 / 800 = 1.125 → 1
  900 / 800 = 1.125 → 1


Some further examples:
Some further examples:
* {{f|Rate|900}} → 900 / 900 = 1 → advance the animation by 1 frame at every tick.
{{f|Rate|900}} → 900 / 900 =   1 → advance the animation by 1 frame at every     tick.
* {{f|Rate|350}} → 900 / 350 ≈ 2 → advance the animation by 1 frame every 2 ticks.
{{f|Rate|350}} → 900 / 360 = 2.5 → advance the animation by 1 frame   every   2 ticks.
* {{f|Rate|60}} → 900 / 60 = 15 → advance the animation by 1 frame every 15 ticks.
{{f|Rate| 60}} → 900 / 60 = 15 → advance the animation by 1 frame   every 15 ticks.
* {{f|Rate|1}} → 900 / 1 = 900 → advance the animation by 1 frame every 900 ticks.   
{{f|Rate| 1}} → 900 /   1 = 900 → advance the animation by 1 frame   every 900 ticks.   
and so on.
and so on.


{{f|Rate|0}} means no playback; the animation will be frozen in its [[start]] frame.
{{f|int(900/Rate)}} or {{f|Rate|0}} means no playback; the animation will be frozen in its [[start]] frame.


==See Also==
==See Also==

Latest revision as of 12:19, 30 January 2025

On Animations

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: Rate
File(s): Art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Special Values: -1
Default: 900
Applicable to: Animations


Determines the speed of this animation by specifying the amount of animation frames to play relative to 900 time frames or 'ticks'. Larger values mean faster animation.

Note: The animation playback rate is determined by dividing 900 with Rate and truncating the result to the nearest integer. For example, an animation with Rate=500 and another with Rate=800 will have the same rate, 1, meaning they will both play at maximum speed (1 animation frame per tick).

900 / 500 = 1.8   → 1
900 / 800 = 1.125 → 1

Some further examples:

Rate=900 → 900 / 900 =   1 → advance the animation by 1 frame at every     tick.
Rate=350 → 900 / 360 = 2.5 → advance the animation by 1 frame    every   2 ticks.
Rate= 60 → 900 /  60 =  15 → advance the animation by 1 frame    every  15 ticks.
Rate=  1 → 900 /   1 = 900 → advance the animation by 1 frame    every 900 ticks.  

and so on.

int(900/Rate) or Rate=0 means no playback; the animation will be frozen in its start frame.

See Also

On Mission Control

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: Rate
File(s): Rules(md).ini
Values: Floating point values: Any decimal number (clearer range should be added in Template:Values).
Applicable to: Mission Control


Specifies the delay, in minutes, between processing this mission. Larger values mean a faster game but less responsiveness from the object while it is carrying out this mission.

See Also