Jump to content

VShift: Difference between revisions

From ModEnc²
en>ATHSE
No edit summary
ATHSE (talk | contribs)
add header, reformat
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{flag
|files={{ini|sound}}
|values={{values|integer}}
|types=Sound Objects
|default=none
|ra2=yes
|yr=yes
}}
Defines the percentage variation to the Volume= (0-100) value. Values out of range are ignored.
Defines the percentage variation to the Volume= (0-100) value. Values out of range are ignored.


Each wave in the sound will play at a volume within that range, so a sound object with "Volume=85" with "VShift=10" will play between 80-90% absolute volume, providing some variety where only one wave is used in the sound.
Each wave in the sound will play at a volume within that range, so a sound object with <tt>Volume=85</tt> with <tt>VShift=10</tt> will play between 80-90% absolute volume, providing some variety where only one wave is used in the sound.


Some tests indicate this may be a synthetic way to create a Doppler effect, where firing away from the viewport would be quieter than firing towards the viewport, but this isn't confirmed, and should be treated as random for now.
Some tests indicate this may be a synthetic way to create a Doppler effect, where firing away from the viewport would be quieter than firing towards the viewport, but this isn't confirmed, and should be treated as random for now.
==Notes==
Sounds without explicit <tt>Volume=</tt> values will draw theirs from the [Defaults] section at the beginning of the INI.

Latest revision as of 22:54, 20 April 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: VShift
File(s): sound(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: none
Applicable to: Sound Objects


Defines the percentage variation to the Volume= (0-100) value. Values out of range are ignored.

Each wave in the sound will play at a volume within that range, so a sound object with Volume=85 with VShift=10 will play between 80-90% absolute volume, providing some variety where only one wave is used in the sound.

Some tests indicate this may be a synthetic way to create a Doppler effect, where firing away from the viewport would be quieter than firing towards the viewport, but this isn't confirmed, and should be treated as random for now.

Notes

Sounds without explicit Volume= values will draw theirs from the [Defaults] section at the beginning of the INI.