Does anyone know how to fix npc animations, I want npc animations to be played smooth after I set anim and not played instantly from other point...
My animation function:
PHP Code:
stock Util_PlayAnimation(index, sequence, Float: framerate = 1.0) {
set_pev(index, pev_movetype, MOVETYPE_NONE)
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); still the same after I removed this.
entity_set_int(index, EV_INT_sequence, sequence);
set_pev(index,pev_gaitsequence,sequence) // Not sure if this even does anything...
set_pev(index, pev_movetype, MOVETYPE_STEP)
}
https://forums.alliedmods.net/showthread.php?t=184842 this thread has the same problem as me.
__________________