https://forums.alliedmods.net/showthread.php?t=41265
Can you give an example for 2 PRIMARY_WEAPONS sounds in a plugin?
"We do this by modifying
CD_ID, which is the weapon id, and setting it to 0 thus making the engine think the player has no weapon and so no animation/sound can be played."
Code:
//Remember the 3 arguments sent: //id - player id //sendweapons - indication if client-side weapons are being used (cl_lw) //cd_handle - client data which is accessed through get_cd, and set_cd public UpdateClientData_Post( id, sendweapons, cd_handle ) { //No sense in doing this for dead people? //Add your additional checks and whatnot... if ( !is_user_alive(id) ) return FMRES_IGNORED; //We want to use the cd_handle passed to us //unless you want this for all the players //in which you would specify 0 instead set_cd(cd_handle, CD_ID, 0); //And finally return... return FMRES_HANDLED; }
The question is, the weapon model will play the animation?