AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Gun Sound Replacing (The SPecialists) (https://forums.alliedmods.net/showthread.php?t=100407)

Shin Lee 08-14-2009 09:33

Gun Sound Replacing (The SPecialists)
 
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
}

crazyeffect 08-14-2009 10:11

Re: Gun Sound Replacing (The SPecialists)
 
Better use this...

http://forums.alliedmods.net/showthread.php?p=374055

One 08-14-2009 10:13

Re: Gun Sound Replacing (The SPecialists)
 
Quote:

Originally Posted by crazyeffect (Post 899613)

this dont works. idk why but i wanted to change usps sound. tried 10000 sounds but the same :D

crazyeffect 08-14-2009 10:13

Re: Gun Sound Replacing (The SPecialists)
 
It works with me xD

Shin Lee 08-14-2009 11:23

Re: Gun Sound Replacing (The SPecialists)
 
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
}

Arkshine 08-14-2009 11:40

Re: Gun Sound Replacing (The SPecialists)
 
You can't replace weapons sounds except for the knife.

Shin Lee 08-14-2009 23:59

Re: Gun Sound Replacing (The SPecialists)
 
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

Arkshine 08-15-2009 03:45

Re: Gun Sound Replacing (The SPecialists)
 
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.


All times are GMT -4. The time now is 15:06.

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