Raised This Month: $ Target: $400
 0% 

How to add custom knife deploy sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AnimalMonster
Senior Member
Join Date: May 2020
Old 08-07-2020 , 01:55   Re: How to add custom knife deploy sound
Reply With Quote #2

Quote:
Originally Posted by Fawkes37 View Post
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.
AnimalMonster is offline
 



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 13:54.


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