Quote:
Originally Posted by Hanna
Yes. Should work with little weapon attack code change.
|
Which part to change actually. Usually I am using this to play animation:
PHP Code:
stock set_weapon_anim(id, anim)
{
if(!is_user_alive(id))
return
set_pev(id, pev_weaponanim, anim)
message_begin(MSG_ONE_UNRELIABLE, SVC_WEAPONANIM, _, id)
write_byte(anim)
write_byte(get_pev(id, pev_body))
message_end()
}
__________________