Raised This Month: $ Target: $400
 0% 

Stop client-side sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-23-2007 , 20:10   Stop client-side sound
Reply With Quote #1

Is it possible to stop a client-side sound? I searched the forums and it looked like there wasn't a way to capture the client-side sounds. I can always capture the event that causes the sound, then force a stop if that's possible. If it's not possible it stop the sound, then is it possible to play a blank sound file to override the other sound?
hlstriker is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-23-2007 , 20:47   Re: Stop client-side sound
Reply With Quote #2

Hum...the only thing i think now is to make a task and execute "client_cmd("stopsound")" :/
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-23-2007 , 20:49   Re: Stop client-side sound
Reply With Quote #3

I thought of that, but I didn't want all the other sounds to stop too : /
hlstriker is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-23-2007 , 20:51   Re: Stop client-side sound
Reply With Quote #4

Hum...yeah;that cmd is blocking all sounds from client! But what sounds you want to block? "weapons sounds?"
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-23-2007 , 21:05   Re: Stop client-side sound
Reply With Quote #5

Yep, weapon sounds
hlstriker is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 06-23-2007 , 23:12   Re: Stop client-side sound
Reply With Quote #6

Code:
register_forward(FM_EmitSound, "emitSound") // Get rid of the crowbar hitting noise public emitSound(entity, channel, const sample[]) {     if(equali(sample,"weapons/cbar_hit1.wav")) {         return FMRES_SUPERCEDE     }     return FMRES_IGNORED }
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-24-2007 , 04:29   Re: Stop client-side sound
Reply With Quote #7

SixTwin is right,but you must do this way for all weapons! ...take a look at this http://forums.alliedmods.net/showthread.php?t=41265 ;)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 06-24-2007 at 04:34.
Alka is offline
Reply



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 21:31.


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