Jump to content

IdleRate: Difference between revisions

From ModEnc²
en>Testid123
mNo edit summary
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Flag
{{Flag
|name=IdleRate
|name=IdleRate
|files={{Categ|ini=rules}}.
|files={{Categ|ini=rules}}
|values=integer
|values={{Values|integer}}
|default=0
|default=0
|types={{Categ|InfantryTypes}} ,{{Categ|VehicleTypes}} ,{{Categ|AircraftTypes}}
|types={{Categ|InfantryTypes}} ,{{Categ|VehicleTypes}} ,{{Categ|AircraftTypes}}
Line 14: Line 14:
The animation does not play in case the unit is warping in from a chrono-move or being warped out by {{f|Temporal|link}} weapons, or when attacked by {{f|IsLocomotor|link}} weapons.
The animation does not play in case the unit is warping in from a chrono-move or being warped out by {{f|Temporal|link}} weapons, or when attacked by {{f|IsLocomotor|link}} weapons.


{{Bugs}}
=={{Bugs}}==
*If'''IdleRate=>0(greater than 0 )''' will affect the {{f|DisguiseWhenStill|yes|link}} tag, causing the image in the [[DefaultMirageDisguises]] section to change according to the value set in the '''IdleRate''' tag.<br>[[File:DisguiseWhenStill=yes and IdleRate=1.gif]]<br>
*If'''IdleRate=>0(greater than 0 )''' will affect the {{f|DisguiseWhenStill|yes|link}} tag, causing the image in the [[DefaultMirageDisguises]] section to change according to the value set in the '''IdleRate''' tag (If the [[SHP]] image has multiple frames, it will be animated instead).<br>[[File:DisguiseWhenStill=yes and IdleRate=1.gif]]<br>
*If'''IdleRate=>0(greater than 0 )''' sound from [[MoveSound]] tag of [[InfantryTypes]]+[[VehicleTypes]]+[[AircraftTypes]] will be played according to the sound type assignment.<br>
*If'''IdleRate=>0(greater than 0 )''' sound from [[MoveSound]] tag of [[InfantryTypes]]+[[VehicleTypes]]+[[AircraftTypes]] will be played according to the sound type assignment.<br>
If it were a sound that played continuously without end(loop), even if [[InfantryTypes]]+[[VehicleTypes]]+[[AircraftTypes]] isn't moving, The sound will always be played.(equivalent to [[AmbientSound]])<br>
If it were a sound that played continuously without end(loop), even if [[InfantryTypes]]+[[VehicleTypes]]+[[AircraftTypes]] isn't moving, The sound will always be played.(equivalent to [[AmbientSound]])<br>
If it is the sound is normal Will play 1 time only. (equivalent to [[CreateSound]])<br>
If it is the sound is normal Will play 1 time only. (equivalent to [[CreateSound]])<br>
==Note==
*The '''IdleRate''' tag doesn't produce the same results as the [[IdleActionFrequency]] tag (unfortunately '''Westwood''' didn't think of this).

Latest revision as of 17:27, 2 July 2025

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


Specifies the animation rate for idle/non-moving units and defines after how many frames the animation advances to the next frame. Larger values mean slower playback. A value of 0 disables idle animation playback. Can be specified for both SHP based and voxel based units.
The animation does not play in case the unit is warping in from a chrono-move or being warped out by Temporal weapons, or when attacked by IsLocomotor weapons.

Bugs/Side-Effects/Unexpected Limitations

If it were a sound that played continuously without end(loop), even if InfantryTypes+VehicleTypes+AircraftTypes isn't moving, The sound will always be played.(equivalent to AmbientSound)
If it is the sound is normal Will play 1 time only. (equivalent to CreateSound)

Note

  • The IdleRate tag doesn't produce the same results as the IdleActionFrequency tag (unfortunately Westwood didn't think of this).