Raised This Month: $ Target: $400
 0% 

Deagles' Map Management 3.23


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DynamicBits
Senior Member
Join Date: Sep 2007
Location: US
Old 08-29-2008 , 16:13   Re: Deagles' Map Management 3.20
Reply With Quote #11

Quote:
Originally Posted by Nordwind View Post
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:
  1. Create (or find) the wav file you want
  2. Add in a precache_sound("something/something.wav"); line in the plugin_precache() forward (which doesn't currently exist in the code)
  3. 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.
DynamicBits is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode