View Single Post
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 08-24-2017 , 20:09   Re: [TUT] Replace Weapon Firing Sounds
Reply With Quote #35

Quote:
Originally Posted by CrazY. View Post
Hook FM_UpdateClientData (Post) and set_cd(cd_handle, CD_flNextAttack, get_gametime() + 0.001);
Better just to use some value, about 2 and bigger.

Quote:
Originally Posted by CrazY. View Post
Code:
// PlaybackEvent (play custom sounds to all clients, don't only the owner) playback_event(flags | FEV_HOSTONLY, invoker, eventid, delay, origin, angles, fparam1, fparam2, iParam1, iParam2, bParam1, bParam2); return FMRES_SUPERCEDE;
??? Why not just block it? Actually it will send event only for invoker and only if he has cl_lw 0.

Quote:
Originally Posted by HamletEagle View Post
It works both ways because the param is not used.
It is used in svc_weaponanim and it actually works. Looks like you mean Ham_Weapon_SendWeaponAnim.
__________________

Last edited by PRoSToTeM@; 08-24-2017 at 20:33.
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@