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