Jump to content

RandomLoopDelay: Difference between revisions

From ModEnc²
en>Crimsonum
Updated the warning.
en>Crimsonum
Changed to bug template, and added note about fix(es).
Line 13: Line 13:
Specifies a minimum and maximum delay range between each loop of this animation. The delay is randomly chosen from between the two values. A {{f|RandomLoopDelay|100,300}} at game speed 4 (30 FPS) will see typical intervals between 5 to 11 sec.
Specifies a minimum and maximum delay range between each loop of this animation. The delay is randomly chosen from between the two values. A {{f|RandomLoopDelay|100,300}} at game speed 4 (30 FPS) will see typical intervals between 5 to 11 sec.


{{BigHorizontalBar|Attention!|In Tiberian Sun, {{tt|RandomLoopDelay}} is known to cause players to desync in an online game (Reconnection Error). This is because the flag erroneously uses a random number generator that isn't synchronized between players.|image=Warning.png}}
{{bugs}}
In vanilla Tiberian Sun, {{tt|RandomLoopDelay}} is known to cause players to desync in an online game (Reconnection Error). This is because the flag erroneously uses a random number generator that isn't synchronized between players. [[TS patches]] and [[Vinifera]] fix this.

Revision as of 22:56, 30 January 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: RandomLoopDelay
File(s): Art(md).ini
Values: Two Integers, separated by comma
Default: 0,0
Applicable to: Animations


Specifies a minimum and maximum delay range between each loop of this animation. The delay is randomly chosen from between the two values. A RandomLoopDelay=100,300 at game speed 4 (30 FPS) will see typical intervals between 5 to 11 sec.

Bugs/Side-Effects/Unexpected Limitations In vanilla Tiberian Sun, RandomLoopDelay is known to cause players to desync in an online game (Reconnection Error). This is because the flag erroneously uses a random number generator that isn't synchronized between players. TS patches and Vinifera fix this.