Xonotic
|
Go to the source code of this file.
Macros | |
#define | setanim(...) anim_set(__VA_ARGS__) |
#define | updateanim(...) anim_update(__VA_ARGS__) |
Functions | |
void | anim_set (entity e, vector anim, bool looping, bool override, bool restart) |
void | anim_update (entity e) |
Update e.frame based on its animstate relative to time. More... | |
Variables | |
float | animstate_endtime |
float | animstate_framerate |
bool | animstate_looping |
whether to repeat More... | |
int | animstate_numframes |
bool | animstate_override |
true for one cycle, then changed to false More... | |
int | animstate_startframe |
float | animstate_starttime |
float | frame |
primary framegroup animation (strength = 1 - lerpfrac - lerpfrac3 - lerpfrac4) More... | |
float | frame1time |
start time of framegroup animation More... | |
float | frame2 |
secondary framegroup animation (strength = lerpfrac) More... | |
float | frame2time |
start time of framegroup animation More... | |
float | frame3 |
tertiary framegroup animation (strength = lerpfrac3) More... | |
float | frame3time |
start time of framegroup animation More... | |
float | frame4 |
quaternary framegroup animation (strength = lerpfrac4) More... | |
float | frame4time |
start time of framegroup animation More... | |
float | lerpfrac |
strength of framegroup blend More... | |
float | lerpfrac3 |
strength of framegroup blend More... | |
float | lerpfrac4 |
strength of framegroup blend More... | |
#define setanim | ( | ... | ) | anim_set(__VA_ARGS__) |
Definition at line 45 of file anim.qh.
Referenced by Monster_Attack_Leap(), Monster_Attack_Melee(), Monster_Move(), Monster_Move_2D(), and W_Model().
#define updateanim | ( | ... | ) | anim_update(__VA_ARGS__) |
anim | x = startframe, y = numframes, z = framerate |
Definition at line 6 of file anim.qc.
References BITXOR_ASSIGN, EF_RESTARTANIM_BIT, frametime, and time.
Referenced by viewmodel_draw(), and W_Model().
Update e.frame based on its animstate relative to time.
Definition at line 36 of file anim.qc.
Referenced by viewmodel_draw().
float animstate_endtime |
Definition at line 38 of file anim.qh.
Referenced by Monster_Attack_Leap(), Monster_Attack_Melee(), SUB_CalcMove_controller_think(), and viewmodel_draw().
bool animstate_looping |
bool animstate_override |
true for one cycle, then changed to false
Definition at line 42 of file anim.qh.
Referenced by PlayerDamage(), and viewmodel_draw().
float animstate_starttime |
Definition at line 37 of file anim.qh.
Referenced by SUB_CalcMove_controller_think().
float frame |
primary framegroup animation (strength = 1 - lerpfrac - lerpfrac3 - lerpfrac4)
Definition at line 6 of file anim.qh.
Referenced by AnimateDomPoint(), CL_Weaponentity_Think(), CopyBody(), CSQCModel_Hook_PreDraw(), CSQCModel_InterpolateAnimation_1To2_PreNote(), CSQCModel_InterpolateAnimation_2To4_PreNote(), CSQCPlayer_FallbackFrame_Apply(), CSQCPlayer_FallbackFrame_PostUpdate(), CSQCPlayer_FallbackFrame_PreUpdate(), NET_HANDLE(), ons_GeneratorDamage(), PlayerCorpseDamage(), Vehicles_drawHUD(), and W_Model().
float frame1time |
start time of framegroup animation
Definition at line 22 of file anim.qh.
Referenced by CopyBody(), CSQCModel_Hook_PreDraw(), CSQCModel_InterpolateAnimation_1To2_Do(), CSQCModel_InterpolateAnimation_1To2_Note(), CSQCModel_InterpolateAnimation_1To2_PreNote(), CSQCModel_InterpolateAnimation_2To4_Do(), CSQCModel_InterpolateAnimation_2To4_Note(), CSQCModel_InterpolateAnimation_2To4_PreNote(), CSQCPlayer_FallbackFrame_PostUpdate(), and NET_HANDLE().
float frame2 |
secondary framegroup animation (strength = lerpfrac)
Definition at line 8 of file anim.qh.
Referenced by CopyBody(), CSQCModel_Hook_PreDraw(), CSQCModel_InterpolateAnimation_1To2_PreNote(), CSQCModel_InterpolateAnimation_2To4_PreNote(), CSQCPlayer_FallbackFrame_Apply(), CSQCPlayer_FallbackFrame_PostUpdate(), and CSQCPlayer_FallbackFrame_PreUpdate().
float frame2time |
start time of framegroup animation
Definition at line 24 of file anim.qh.
Referenced by CopyBody(), CSQCModel_Hook_PreDraw(), CSQCModel_InterpolateAnimation_1To2_Do(), CSQCModel_InterpolateAnimation_1To2_PreNote(), CSQCModel_InterpolateAnimation_2To4_Do(), CSQCModel_InterpolateAnimation_2To4_Note(), CSQCModel_InterpolateAnimation_2To4_PreNote(), and CSQCPlayer_FallbackFrame_PostUpdate().
float frame3 |
tertiary framegroup animation (strength = lerpfrac3)
Definition at line 10 of file anim.qh.
Referenced by CSQCModel_InterpolateAnimation_2To4_PreNote(), CSQCPlayer_FallbackFrame_Apply(), CSQCPlayer_FallbackFrame_PostUpdate(), and CSQCPlayer_FallbackFrame_PreUpdate().
float frame3time |
start time of framegroup animation
Definition at line 26 of file anim.qh.
Referenced by CSQCModel_InterpolateAnimation_2To4_Do(), CSQCModel_InterpolateAnimation_2To4_PreNote(), and CSQCPlayer_FallbackFrame_PostUpdate().
float frame4 |
quaternary framegroup animation (strength = lerpfrac4)
Definition at line 12 of file anim.qh.
Referenced by CSQCModel_InterpolateAnimation_2To4_PreNote(), CSQCPlayer_FallbackFrame_Apply(), CSQCPlayer_FallbackFrame_PostUpdate(), and CSQCPlayer_FallbackFrame_PreUpdate().
float frame4time |
start time of framegroup animation
Definition at line 28 of file anim.qh.
Referenced by CSQCModel_InterpolateAnimation_2To4_Do(), CSQCModel_InterpolateAnimation_2To4_PreNote(), and CSQCPlayer_FallbackFrame_PostUpdate().
float lerpfrac |
strength of framegroup blend
Definition at line 15 of file anim.qh.
Referenced by CSQCModel_Hook_PreDraw(), CSQCModel_InterpolateAnimation_1To2_Do(), CSQCModel_InterpolateAnimation_2To4_Do(), CSQCModel_InterpolateAnimation_2To4_Note(), and CSQCModel_InterpolateAnimation_2To4_PreNote().
float lerpfrac3 |
strength of framegroup blend
Definition at line 17 of file anim.qh.
Referenced by CSQCModel_InterpolateAnimation_2To4_Do().
float lerpfrac4 |
strength of framegroup blend
Definition at line 19 of file anim.qh.
Referenced by CSQCModel_Hook_PreDraw(), and CSQCModel_InterpolateAnimation_2To4_Do().