I checked with Jed's Half Life Viewer and idle animation has 141 frames, does that mean I have to use 141.0 as the framerate?
So, something like this?
PHP Code:
public MakeAnim( id )
{
set_task( 1.0, "@RenewAnimation", id, .flags="b" );
}
@RenewAnimation( id )
{
Util_PlayAnimation( id, idle, 141.0 );
}
stock Util_PlayAnimation(index, sequence, Float: framerate = 1.0)
{
entity_set_float(index, EV_FL_animtime, get_gametime());
entity_set_float(index, EV_FL_framerate, framerate);
entity_set_float(index, EV_FL_frame, 0.0);
entity_set_int(index, EV_INT_sequence, sequence);
}
__________________