|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | setanim(...) |
| #define | updateanim(...) |
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. | |
Variables | |
| float | animstate_endtime |
| float | animstate_framerate |
| bool | animstate_looping |
| whether to repeat | |
| int | animstate_numframes |
| bool | animstate_override |
| true for one cycle, then changed to false | |
| int | animstate_startframe |
| float | animstate_starttime |
| float | frame |
| primary framegroup animation (strength = 1 - lerpfrac - lerpfrac3 - lerpfrac4) | |
| float | frame1time |
| start time of framegroup animation | |
| float | frame2 |
| secondary framegroup animation (strength = lerpfrac) | |
| float | frame2time |
| start time of framegroup animation | |
| float | frame3 |
| tertiary framegroup animation (strength = lerpfrac3) | |
| float | frame3time |
| start time of framegroup animation | |
| float | frame4 |
| quaternary framegroup animation (strength = lerpfrac4) | |
| float | frame4time |
| start time of framegroup animation | |
| float | lerpfrac |
| strength of framegroup blend | |
| float | lerpfrac3 |
| strength of framegroup blend | |
| float | lerpfrac4 |
| strength of framegroup blend | |
| #define setanim | ( | ... | ) |
Definition at line 45 of file anim.qh.
Referenced by CL_WeaponEntity_SetModel(), M_Golem_Attack(), M_Mage_Attack(), M_Mage_Attack_Push(), M_Mage_Defend_Heal(), M_Mage_Defend_Shield(), M_Wyvern_Attack(), M_Zombie_Defend_Block(), M_Zombie_Defend_Block_End(), Monster_Attack_Leap(), Monster_Attack_Melee(), Monster_Move(), and Monster_Move_2D().
| #define updateanim | ( | ... | ) |
| anim | x = startframe, y = numframes, z = framerate |
Definition at line 6 of file anim.qc.
References anim, BITXOR_ASSIGN, EF_RESTARTANIM_BIT, entity(), frametime, time, and vector.
Referenced by NET_HANDLE(), and viewmodel_draw().
Update e.frame based on its animstate relative to time.
Definition at line 36 of file anim.qc.
References bound(), entity(), and time.
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(), Dialog::ATTRIB(), button_reset(), button_return(), button_wait(), CL_WeaponEntity_SetModel(), CL_Weaponentity_Think(), CopyBody(), CSQCModel_Hook_PreDraw(), CSQCModel_InterpolateAnimation_1To2_PreNote(), CSQCModel_InterpolateAnimation_2To4_PreNote(), CSQCPlayer_FallbackFrame_Apply(), CSQCPlayer_FallbackFrame_PostUpdate(), CSQCPlayer_FallbackFrame_PreUpdate(), ewheel_move_idle(), modeleffect_SendEntity(), NET_HANDLE(), ons_GeneratorDamage(), PlayerCorpseDamage(), raptor_land(), spiderbot_exit(), turret_send(), turrets_setframe(), Vehicles_drawHUD(), W_MuzzleFlash_Model_Think(), and walker_setnoanim().
| float frame1time |
start time of framegroup animation
Definition at line 22 of file anim.qh.
Referenced by classfield(), 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().