Raised This Month: $ Target: $400
 0% 

Emit Sound Blocking


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-27-2010 , 15:40   Emit Sound Blocking
Reply With Quote #1

Code:
	register_forward(FM_EmitSound, "dzwieki")



public dzwieki(id, channel, const sample[]) 
{

	if(equal(sample,"weapons/awp1.wav"))
			{
				engfunc(EngFunc_EmitSound,id,CHAN_WEAPON,"weapons/usp1.wav",1.0,ATTN_NORM,0,PITCH_NORM)
				return FMRES_SUPERCEDE
			}
I want to replace awp1.wav sound with usp1.wav.
What have I done wrong? I still hear awp sound.
Gadzislaw007 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-27-2010 , 20:51   Re: Emit Sound Blocking
Reply With Quote #2

You can't replace weapon sounds except knife, all the others are client-side.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-27-2010 , 20:55   Re: Emit Sound Blocking
Reply With Quote #3

That's bad, but thanks for the reply.
Gadzislaw007 is offline
Old 07-28-2010, 01:13
ConnorMcLeod
This message has been deleted by ConnorMcLeod.
DaxProxy
Senior Member
Join Date: Sep 2007
Old 07-28-2010 , 07:46   Re: Emit Sound Blocking
Reply With Quote #5

It can be done, if you will use client_cmd( id, stopsound ) and after that call your new weapon sound...

But it would be hella buggy, since all the other sound's get blocked too...
I wonder if this could be done by Orpheu...it seems like everything can be done using Orpheu.
__________________

Want ApolloRP for Counter-Strike? Show your support: http://forums.alliedmods.net/showthr...39#post1264739
DaxProxy is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 07-28-2010 , 07:56   Re: Emit Sound Blocking
Reply With Quote #6

but its possible to block sounds and replace with new, but its hard job :/
Vechta 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 00:10.


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