Jump to content

VShift

From ModEnc²
Revision as of 22:54, 20 April 2025 by ATHSE (talk | contribs) (add header, reformat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.