AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Help / Support Replacing knife deploy sound (https://forums.alliedmods.net/showthread.php?t=326583)

Fawkes37 08-07-2020 00:55

Replacing knife deploy sound
 
1 Attachment(s)
How to add a custom knife deploy sound for zombies? (The sound when they switch to knife after being infected.)

I tried adding to zp50_zombie_sounds 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


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

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