This is what I did:
Code:
public client_PreThink( id )
{
// check some vars first and whatnot..
set_animation(id, 2);
}
public set_animation( id, seq )
{
entity_set_int(id, EV_INT_weaponanim, seq);
message_begin(MSG_ONE, SVC_WEAPONANIM, {0,0,0}, id);
write_byte(seq);
write_byte(entity_get_int(id, EV_INT_body));
message_end();
}
In this case the sequence # for the grenade throwing animation is 2.
__________________