5 /** primary framegroup animation (strength = 1 - lerpfrac - lerpfrac3 - lerpfrac4) */
7 /** secondary framegroup animation (strength = lerpfrac) */
9 /** tertiary framegroup animation (strength = lerpfrac3) */
11 /** quaternary framegroup animation (strength = lerpfrac4) */
14 /** strength of framegroup blend */
16 /** strength of framegroup blend */
18 /** strength of framegroup blend */
21 /** start time of framegroup animation */
23 /** start time of framegroup animation */
25 /** start time of framegroup animation */
27 /** start time of framegroup animation */
32 // player animation state
34 .int animstate_startframe;
35 .int animstate_numframes;
36 .float animstate_framerate;
37 .float animstate_starttime;
38 .float animstate_endtime;
39 /** whether to repeat */
40 .bool animstate_looping;
41 /** true for one cycle, then changed to false */
42 .bool animstate_override;
44 void anim_set(entity e, vector anim, bool looping, bool override, bool restart);
45 #define setanim(...) anim_set(__VA_ARGS__)
46 void anim_update(entity e);
47 #define updateanim(...) anim_update(__VA_ARGS__)