 |
|
Senior Member
|

08-07-2020
, 01:55
Re: How to add custom knife deploy sound
|
#2
|
Quote:
Originally Posted by Fawkes37
How to add a custom knife deploy sound? (The sound when they switch to knife.)
I tried adding to zp50_zombie_sounds of Zombie Plague, where the other attack/knife sounds are handled, but with no success (soundfile is 'weapons/knife_deploy1.wav', so we check for 'd', 'e', 'p' in specific indexes):
Code:
if (sample[14] == 'd' && sample[15] == 'e' && sample[16] == 'p') // deploy
{
ArrayGetString(g_sound_nemesis_draw_knife, random_num(0, ArraySize(g_sound_nemesis_draw_knife) - 1), sound, charsmax(sound))
emit_sound(id, channel, sound, volume, attn, flags, pitch)
return FMRES_SUPERCEDE;
}
Also adding the SMA file.
Thanks in advance
|
For zombies or for humans?
Last edited by AnimalMonster; 08-07-2020 at 01:56.
|
|
|
|