Quote:
Originally Posted by DavidJr
Thanks! It works! But the animation back to idle.
PHP Code:
UTIL_ZombieSeq(iEnt, iSeq) { if (!is_valid_ent(iEnt)) return; entity_set_float(iEnt, EV_FL_animtime, get_gametime()); entity_set_float(iEnt, EV_FL_frame, 1.0); entity_set_float(iEnt, EV_FL_framerate, 1.0); entity_set_int(iEnt, EV_INT_sequence, iSeq); }
|
In the think function, detect if is actually dying, and check if pev_frame is higher or equal to 256, reset pev_frame value to 256 and set framerate to 0.0 for stopping it from playing again
Also, make sure that playersearching functions don't execute when "dying"
that would call idle animations
__________________