Let's take a piece of code in SoldierVoice.ssc as example:
Code: Select all
###################################
### Fire ###
###################################
newPatch
load @ROOT/Sound/@RTD/@Language/Fire.wav
dopplerOff
priority 11
minDistance 3
*** Distance Volume ***
beginEffect
controlDestination Volume
controlSource Distance
envelope Ramp
param 10
param 55
param 1
param -1
endEffect
###################################
### Medic ###
###################################
newPatch
load @ROOT/Sound/@RTD/@Language/Medic.wav
dopplerOff
priority 11
minDistance 3
*** Distance Volume ***
beginEffect
controlDestination Volume
controlSource Distance
envelope Ramp
param 10
param 55
param 1
param -1
endEffect
All sounds work like that. Engines, projectiles, etc. There are only paths to .ssc scripts, but there is no info about exact .wav file which should be played. The game decides what .wav file to play by itself. How?