Raised This Month: $ Target: $400
 0% 

Gun Sound Replacing (The SPecialists)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shin Lee
Junior Member
Join Date: Aug 2006
Location: Germany
Old 08-14-2009 , 09:33   Gun Sound Replacing (The SPecialists)
Reply With Quote #1

Hi,
i tryed alot nw i have this code but for some reason this wont work please help me to make it work would be nice

Quote:
// Sound Replaceing

public fw_EmitSound1( id, channel, sample[] )
{
//if(g_c96[id] == true)
if (equal(sample, "weapons/glock/glock-fire.wav"))
{
emit_sound( id, CHAN_WEAPON,"rdrp/c96_shoot.wav", 1.0, ATTN_NORM, 0, PITCH_NORM )
return FMRES_SUPERCEDE
}

return FMRES_IGNORED
}
Shin Lee is offline
Send a message via ICQ to Shin Lee Send a message via MSN to Shin Lee
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-14-2009 , 10:11   Re: Gun Sound Replacing (The SPecialists)
Reply With Quote #2

Better use this...

http://forums.alliedmods.net/showthread.php?p=374055
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-14-2009 , 10:13   Re: Gun Sound Replacing (The SPecialists)
Reply With Quote #3

Quote:
Originally Posted by crazyeffect View Post
this dont works. idk why but i wanted to change usps sound. tried 10000 sounds but the same
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-14-2009 , 10:13   Re: Gun Sound Replacing (The SPecialists)
Reply With Quote #4

It works with me xD
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Shin Lee
Junior Member
Join Date: Aug 2006
Location: Germany
Old 08-14-2009 , 11:23   Re: Gun Sound Replacing (The SPecialists)
Reply With Quote #5

the thing is it need to be working if you use the item what change my guns so the sound is only working if you used that item model replace work but sound not


EXAMPLE

// Change hans gun
public event_WeaponInfo7(id)
{
if(g_c96[id] == true)
{
set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, hansgun2_vmodel))
}
if(g_c96[id] == true)
{
set_pev(id, pev_weaponmodel, engfunc(EngFunc_AllocString, hansgun2_pmodel))
}
return PLUGIN_HANDLED
}
Shin Lee is offline
Send a message via ICQ to Shin Lee Send a message via MSN to Shin Lee
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-14-2009 , 11:40   Re: Gun Sound Replacing (The SPecialists)
Reply With Quote #6

You can't replace weapons sounds except for the knife.
__________________
Arkshine is offline
Shin Lee
Junior Member
Join Date: Aug 2006
Location: Germany
Old 08-14-2009 , 23:59   Re: Gun Sound Replacing (The SPecialists)
Reply With Quote #7

its for ts (the specialist and im sure there is a way
dont tell me there is not Oo it have to work even if i block sound and emit it somehow pls help
Shin Lee is offline
Send a message via ICQ to Shin Lee Send a message via MSN to Shin Lee
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-15-2009 , 03:45   Re: Gun Sound Replacing (The SPecialists)
Reply With Quote #8

Ah TS. I don't know so. If emit_sound doesn't show the sound it means that the sound is client-side, thus impossible to replace.
__________________
Arkshine 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 15:06.


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