Jump to content

Control: Difference between revisions

From ModEnc²
en>Nighthawk200
Tested and updated.
m 5 revisions imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{flag
|files=sound(md).ini
|values={{Values|stringlist|hardcoded values, see below |separator=Whitespace}}
|default=blank
|types={{Categ|SoundList|VocTypes}}
|ra2=yes
|yr=yes
|rp=yes}}
This flag describes the special properties affecting the playback of this sound.
{{Flag
{{Flag
|name={{PAGENAME}}
|name={{PAGENAME}}
Line 19: Line 8:
|rp=yes
|rp=yes
}}
}}
This flag describes the special properties affecting the playback of this sound.
== Special values ==
== Special values ==


Line 28: Line 19:
|-
|-
|ALL
|ALL
|All sounds listed in the {{TTL|Sounds}} tag are played in order.
|All sounds listed in the {{f|Sounds|link}} tag are played in order.
|-
|-
|LOOP
|LOOP
|If RANDOM is not specified, will loop the first sound in {{TTL|Sounds}} indefinitely, or until the number specified in {{TTL|Loop}} is reached.
|If RANDOM is not specified, will loop the first sound in {{f|Sounds|link}} indefinitely, or until the number specified in {{f|Loop|link}} is reached.
|-
|-
|RANDOM
|RANDOM
|Will play a sound chosen at random from {{TTL|Sounds}}. Only useful if you have more than one sound in {{TTL|Sounds}}.
|Will play a sound chosen at random from {{f|Sounds|link}}. Only useful if you have more than one sound in {{f|Sounds|link}}.
|-
|-
|PREDELAY
|PREDELAY
|Only has an effect if the {{TTL|Delay}} tag has been set. Picks a value between the minimum and maximum delays (defined in milliseconds), and waits for that amount of time before playing the sound).
|Only has an effect if the {{f|Delay|link}} tag has been set. Picks a value between the minimum and maximum delays (defined in milliseconds), and waits for that amount of time before playing the sound).
|-
|-
|INTERRUPT
|INTERRUPT
Line 43: Line 34:
|-
|-
|ATTACK
|ATTACK
|special logic, inverts the (booleanized<!-- INI parser loads Attack as an integer, including ATTACK in Control assumes Attack is a boolean, call 1-800-WTF -->) value of {{TTL|Attack}} of this sound
|special logic, inverts the (booleanized<!-- INI parser loads Attack as an integer, including ATTACK in Control assumes Attack is a boolean, call 1-800-WTF -->) value of {{f|Attack|link}} of this sound
|-
|-
|DECAY
|DECAY
|special logic, inverts the (booleanized<!-- see above-->) value of {{TTL|Decay}} of this sound <!-- DC: yeah, cause editing the Decay itself is too complex :/ -->
|special logic, inverts the (booleanized<!-- see above-->) value of {{f|Decay|link}} of this sound <!-- DC: yeah, cause editing the Decay itself is too complex :/ -->
|-
|-
|AMBIENT
|AMBIENT

Latest revision as of 21:39, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Control
File(s): sound(md).ini
Values: Values that don't conform to any typical format (see article)
Applicable to: VocTypes


This flag describes the special properties affecting the playback of this sound.

Special values

All of these are case-insensitive..

Control value Effect
ALL All sounds listed in the Sounds tag are played in order.
LOOP If RANDOM is not specified, will loop the first sound in Sounds indefinitely, or until the number specified in Loop is reached.
RANDOM Will play a sound chosen at random from Sounds. Only useful if you have more than one sound in Sounds.
PREDELAY Only has an effect if the Delay tag has been set. Picks a value between the minimum and maximum delays (defined in milliseconds), and waits for that amount of time before playing the sound).
INTERRUPT Controls whether this sound can interrupt other currently playing sounds.
ATTACK special logic, inverts the (booleanized) value of Attack of this sound
DECAY special logic, inverts the (booleanized) value of Decay of this sound
AMBIENT The sound is treated as an ambient background sound, so is not affected by INTERRUPT.