Quote:
Originally Posted by Nordwind
how can I replace the sounds in the plugin?
Like in the end of a map, it says "loading environment on to your computer"
How can I change it with another mp3 or wav?
regards
|
Those sounds aren't mp3 or wav files. They come from the half-life engine. For example, the loading environment message is generated with the following line of code:
Code:
client_cmd(0, "speak ^"loading environment on to your computer^"");
If you really wanted something different, for each sound you would have to:
- Create (or find) the wav file you want
- Add in a precache_sound("something/something.wav"); line in the plugin_precache() forward (which doesn't currently exist in the code)
- Replace the client_cmd line mentioned above with a line like:
Code:
emit_sound(id, CHAN_AUTO, "something/something.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
See the
emit_sound doc page for an explanation of how it works.