Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
anim.qh
Go to the documentation of this file.
1#pragma once
2
3// begin engine fields
4
6.float frame;
8.float frame2;
10.float frame3;
12.float frame4;
13
15.float lerpfrac;
17.float lerpfrac3;
19.float lerpfrac4;
20
29
30// end engine fields
31
32// player animation state
33
43
44void anim_set(entity e, vector anim, bool looping, bool override, bool restart);
45#define setanim(...) anim_set(__VA_ARGS__)
46void anim_update(entity e);
47#define updateanim(...) anim_update(__VA_ARGS__)
float frame3time
start time of framegroup animation
Definition anim.qh:26
float frame1time
start time of framegroup animation
Definition anim.qh:22
float animstate_endtime
Definition anim.qh:38
bool animstate_override
true for one cycle, then changed to false
Definition anim.qh:42
float animstate_framerate
Definition anim.qh:36
float frame2time
start time of framegroup animation
Definition anim.qh:24
float frame2
secondary framegroup animation (strength = lerpfrac)
Definition anim.qh:8
void anim_update(entity e)
Update e.frame based on its animstate relative to time.
Definition anim.qc:36
float lerpfrac
strength of framegroup blend
Definition anim.qh:15
float frame3
tertiary framegroup animation (strength = lerpfrac3)
Definition anim.qh:10
float lerpfrac4
strength of framegroup blend
Definition anim.qh:19
float frame4time
start time of framegroup animation
Definition anim.qh:28
void anim_set(entity e, vector anim, bool looping, bool override, bool restart)
Definition anim.qc:6
int animstate_numframes
Definition anim.qh:35
float lerpfrac3
strength of framegroup blend
Definition anim.qh:17
int animstate_startframe
Definition anim.qh:34
bool animstate_looping
whether to repeat
Definition anim.qh:40
float frame4
quaternary framegroup animation (strength = lerpfrac4)
Definition anim.qh:12
float animstate_starttime
Definition anim.qh:37
float frame
primary framegroup animation (strength = 1 - lerpfrac - lerpfrac3 - lerpfrac4)
Definition anim.qh:6
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity anim
Definition menu.qh:25
vector
Definition self.qh:92