Raised This Month: $ Target: $400
 0% 

[Help]Replaceing Sounds Temporarily


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Blunted1
Senior Member
Join Date: Jun 2004
Old 07-15-2004 , 19:46   [Help]Replaceing Sounds Temporarily
Reply With Quote #1

Basically what I need done is temporarily replaceing all the knife sounds with different sounds for a certain player only (not everyone) and for a temporary time only (so that knife sounds can be reset to normal without restarting).
This could very well be 'unpossible', but it better not be

In essence I basically need a function full of these statements except they do not work:
Code:
   if (emit_sound(id,CHAN_WEAPON, "weapons/knife_hit1.wav", 0.5, ATTN_NORM, 0, PITCH_NORM)){     emit_sound(id,CHAN_WEAPON, "NewSound/New_Sound.wav", 0.5, ATTN_NORM, 0, PITCH_NORM)    }

So I guess I am probably after a function that doesnt exist like:
Code:
   if (sound_playing(id,CHAN_WEAPON, "weapons/knife_hit1.wav", 0.5, ATTN_NORM, 0, PITCH_NORM)){     emit_sound(id,CHAN_WEAPON, "NewSound/New_Sound.wav", 0.5, ATTN_NORM, 0, PITCH_NORM)    }

But if anyone does know some way to catch all of the knife sounds as they happen and replace them with different sounds for a certain ID for a given amount of time or any other way of doing this, then please let me know
Blunted1 is offline
 


Thread Tools
Display Modes

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 14:40.


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