Raised This Month: $12 Target: $400
 3% 

Help / Support Replacing knife deploy sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fawkes37
Senior Member
Join Date: Jul 2008
Old 08-07-2020 , 00:55   Replacing knife deploy sound
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (zp50_zombie_sounds.sma - 94 views - 22.2 KB)
Fawkes37 is offline
Reply


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 11:58.


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