Jump to content

Delay: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
m 3 revisions imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
Specifies the number of sounds in the Sounds= statement which are used in the 'delay' before playing the main sound.
|name={{PAGENAME}}
|files={{Categ|ini=sound}}
|types={{Categ|VocTypes}}
|values={{values|unsigned integers}}
|ra2=yes
|yr=yes
|rp=yes}}<br />
This tag contains the minimum and maximum delays for sounds if used with the PREDELAY {{f|Control|link}}. The values are in milliseconds (1000ms = 1 second). The tag's syntax is as follows:
<pre>Delay=0 1000</pre>
In the above example, the minimum delay is 0ms, i.e. no delay; and the maximum delay is 1000ms, i.e. 1 second. There should be one space between the minimum and maximum delay values.
 
If the minimum delay is set higher than the maximum delay, then the minimum delay will always be used. If negative values are given for any of the delays, then the first time this sound is played, there will be no delay. Any further times that the sound is supposed to be played, it will not play. So, negative delay values can be used to make a sound only playable once per game.

Latest revision as of 21:40, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Delay
File(s): sound(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Applicable to: VocTypes



This tag contains the minimum and maximum delays for sounds if used with the PREDELAY Control. The values are in milliseconds (1000ms = 1 second). The tag's syntax is as follows:

Delay=0 1000

In the above example, the minimum delay is 0ms, i.e. no delay; and the maximum delay is 1000ms, i.e. 1 second. There should be one space between the minimum and maximum delay values.

If the minimum delay is set higher than the maximum delay, then the minimum delay will always be used. If negative values are given for any of the delays, then the first time this sound is played, there will be no delay. Any further times that the sound is supposed to be played, it will not play. So, negative delay values can be used to make a sound only playable once per game.