You haven't answered Yami's question . . .
Quote:
Originally Posted by BLacking98
I'm adding a sound file to the "valve/sound"
Because in speech.ini the directory is predefined to "valve/sound" and not the game's default one
I put a sound like "Stop Hacking!!" "spk valve/barney/stophack"
|
There is no explicit reference to "valve" in
speech.ini. There is a file hierarchy used by the game to search for files. So, basically, the server can just say "play <some_sound_file>" and the game first searches the mod's sound folder. If it's not there, it then searches in the valve/sound folder. (This might not be literally how it works but it's enough to understand how it effectively works)
If you are using Counter-Strike, you put your sound file in the sound folder:
Code:
/cstrike/sounds/my_new_sound.wav
Then, you put this line in speech.ini:
Code:
"Sound Description" "spk \'my_new_sound\'" "cd" "u"
__________________