Xonotic
|
Go to the source code of this file.
Classes | |
class | Animation |
Macros | |
#define | ReadAnimation() ReadRegistered(Animations) |
#define | REGISTER_ANIMATION(id, framenames) |
#define | WriteAnimation(to, it) WriteRegistered(Animations, to, it) |
Functions | |
vector | anim_vec (Animation anim, int mdlidx, int numframes, float framerate) |
void | animdecide_load_if_needed (entity e) |
void | animdecide_setaction (entity e, float action, float restart) |
void | animdecide_setframes (entity e, bool support_blending,.int fld_frame,.int fld_frame1time,.int fld_frame2,.int fld_frame2time) |
void | animdecide_setimplicitstate (entity e, float onground) |
void | animdecide_setstate (entity e, int newstate, float restart) |
REGISTER_ANIMATION (die1, "dieone groupified_0_anim") | |
player dies More... | |
REGISTER_ANIMATION (die2, "dietwo groupified_1_anim") | |
player dies differently More... | |
REGISTER_ANIMATION (draw, "draw groupified_2_anim") | |
player pulls out a weapon More... | |
REGISTER_ANIMATION (duck, "duck groupified_3_anim") | |
REGISTER_ANIMATION (duckwalk, "duckwalk groupified_4_anim") | |
player walking while crouching More... | |
REGISTER_ANIMATION (duckjump, "duckjump groupified_5_anim") | |
player jumping from a crouch More... | |
REGISTER_ANIMATION (duckidle, "duckidle groupified_6_anim") | |
player idling while crouching More... | |
REGISTER_ANIMATION (idle, "idle groupified_7_anim") | |
player standing More... | |
REGISTER_ANIMATION (jump, "jump groupified_8_anim") | |
player jump More... | |
REGISTER_ANIMATION (pain1, "painone groupified_9_anim") | |
player flinches from pain More... | |
REGISTER_ANIMATION (pain2, "paintwo groupified_10_anim") | |
player flinches from pain, differently More... | |
REGISTER_ANIMATION (shoot, "shoot groupified_11_anim") | |
player shoots More... | |
REGISTER_ANIMATION (taunt, "taunt groupified_12_anim") | |
player taunts others (FIXME: no code references this) More... | |
REGISTER_ANIMATION (run, "run groupified_13_anim") | |
player running forward More... | |
REGISTER_ANIMATION (runbackwards, "runbackwards groupified_14_anim") | |
player running backward More... | |
REGISTER_ANIMATION (strafeleft, "strafeleft groupified_15_anim") | |
player shuffling left quickly More... | |
REGISTER_ANIMATION (straferight, "straferight groupified_16_anim") | |
player shuffling right quickly More... | |
REGISTER_ANIMATION (dead1, "deadone groupified_17_anim") | |
REGISTER_ANIMATION (dead2, "deadtwo groupified_18_anim") | |
REGISTER_ANIMATION (forwardright, "forwardright groupified_19_anim") | |
player running forward and right More... | |
REGISTER_ANIMATION (forwardleft, "forwardleft groupified_20_anim") | |
player running forward and left More... | |
REGISTER_ANIMATION (backright, "backright groupified_21_anim") | |
player running backward and right More... | |
REGISTER_ANIMATION (backleft, "backleft groupified_22_anim") | |
player running back and left More... | |
REGISTER_ANIMATION (melee, "melee groupified_23_anim") | |
player doing the melee action More... | |
REGISTER_ANIMATION (duckwalkbackwards, "duckwalkbackwards groupified_24_anim") | |
REGISTER_ANIMATION (duckwalkstrafeleft, "duckwalkstrafeleft duckstrafeleft groupified_25_anim") | |
REGISTER_ANIMATION (duckwalkstraferight, "duckwalkstraferight duckstraferight groupified_26_anim") | |
REGISTER_ANIMATION (duckwalkforwardright, "duckwalkforwardright duckforwardright groupified_27_anim") | |
REGISTER_ANIMATION (duckwalkforwardleft, "duckwalkforwardleft groupified_28_anim") | |
REGISTER_ANIMATION (duckwalkbackright, "duckwalkbackright duckbackwardright groupified_29_anim") | |
REGISTER_ANIMATION (duckwalkbackleft, "duckwalkbackleft duckbackwardleft groupified_30_anim") | |
Variables | |
int | anim_implicit_state |
float | anim_implicit_time |
float | anim_lower_action |
float | anim_lower_implicit_action |
float | anim_lower_implicit_time |
float | anim_lower_time |
int | anim_state |
float | anim_time |
float | anim_upper_action |
float | anim_upper_implicit_action |
float | anim_upper_implicit_time |
float | anim_upper_time |
const int | ANIMACTION_DRAW = 1 |
const int | ANIMACTION_JUMP = -1 |
const int | ANIMACTION_MELEE = 6 |
const int | ANIMACTION_PAIN1 = 2 |
const int | ANIMACTION_PAIN2 = 3 |
const int | ANIMACTION_SHOOT = 4 |
const int | ANIMACTION_TAUNT = 5 |
float | animdecide_modelindex |
const int | ANIMIMPLICITSTATE_BACKWARDS = BIT(2) |
const int | ANIMIMPLICITSTATE_FORWARD = BIT(1) |
const int | ANIMIMPLICITSTATE_INAIR = BIT(0) |
const int | ANIMIMPLICITSTATE_JUMPRELEASED = BIT(5) |
const int | ANIMIMPLICITSTATE_LEFT = BIT(3) |
const int | ANIMIMPLICITSTATE_RIGHT = BIT(4) |
const int | ANIMSTATE_DEAD1 = BIT(0) |
const int | ANIMSTATE_DEAD2 = BIT(1) |
const int | ANIMSTATE_DUCK = BIT(2) |
const int | ANIMSTATE_FOLLOW = BIT(4) |
const int | ANIMSTATE_FROZEN = BIT(3) |
#define ReadAnimation | ( | ) | ReadRegistered(Animations) |
Definition at line 30 of file animdecide.qh.
#define REGISTER_ANIMATION | ( | id, | |
framenames | |||
) |
Definition at line 31 of file animdecide.qh.
Referenced by anim_vec().
#define WriteAnimation | ( | to, | |
it | |||
) | WriteRegistered(Animations, to, it) |
Definition at line 29 of file animdecide.qh.
Definition at line 37 of file animdecide.qh.
References REGISTER_ANIMATION, v, and vector().
Definition at line 53 of file animdecide.qc.
References ANIM_VEC, monsters_animoverride(), substring(), and vector().
Referenced by CopyBody(), CSQCModel_Hook_PreDraw(), and player_setupanimsformodel().
Definition at line 338 of file animdecide.qc.
References time.
Referenced by jumppad_push(), PlayerDamage(), PlayerJump(), PM_dodging(), UpdatePlayerSounds(), and weapon_thinkf().
void animdecide_setframes | ( | entity | e, |
bool | support_blending, | ||
.int | fld_frame, | ||
.int | fld_frame1time, | ||
.int | fld_frame2, | ||
.int | fld_frame2time | ||
) |
Definition at line 248 of file animdecide.qc.
References ANIMACTION_JUMP, ANIMIMPLICITSTATE_BACKWARDS, ANIMIMPLICITSTATE_FORWARD, ANIMIMPLICITSTATE_INAIR, ANIMIMPLICITSTATE_LEFT, ANIMIMPLICITSTATE_RIGHT, fabs(), makevectors, time, v, v_forward, v_right, vdist, and vector().
Referenced by CSQCModel_Hook_PreDraw(), Monster_Anim(), and player_anim().
Definition at line 330 of file animdecide.qc.
References time.
Referenced by CSQCModel_Hook_PreDraw(), Monster_Anim(), player_anim(), player_setupanimsformodel(), and PlayerDamage().
REGISTER_ANIMATION | ( | die1 | , |
"dieone groupified_0_anim" | |||
) |
player dies
REGISTER_ANIMATION | ( | die2 | , |
"dietwo groupified_1_anim" | |||
) |
player dies differently
REGISTER_ANIMATION | ( | draw | , |
"draw groupified_2_anim" | |||
) |
player pulls out a weapon
REGISTER_ANIMATION | ( | duck | , |
"duck groupified_3_anim" | |||
) |
REGISTER_ANIMATION | ( | duckwalk | , |
"duckwalk groupified_4_anim" | |||
) |
player walking while crouching
REGISTER_ANIMATION | ( | duckjump | , |
"duckjump groupified_5_anim" | |||
) |
player jumping from a crouch
REGISTER_ANIMATION | ( | duckidle | , |
"duckidle groupified_6_anim" | |||
) |
player idling while crouching
REGISTER_ANIMATION | ( | idle | , |
"idle groupified_7_anim" | |||
) |
player standing
REGISTER_ANIMATION | ( | jump | , |
"jump groupified_8_anim" | |||
) |
player jump
REGISTER_ANIMATION | ( | pain1 | , |
"painone groupified_9_anim" | |||
) |
player flinches from pain
REGISTER_ANIMATION | ( | pain2 | , |
"paintwo groupified_10_anim" | |||
) |
player flinches from pain, differently
REGISTER_ANIMATION | ( | shoot | , |
"shoot groupified_11_anim" | |||
) |
player shoots
REGISTER_ANIMATION | ( | taunt | , |
"taunt groupified_12_anim" | |||
) |
player taunts others (FIXME: no code references this)
REGISTER_ANIMATION | ( | run | , |
"run groupified_13_anim" | |||
) |
player running forward
REGISTER_ANIMATION | ( | runbackwards | , |
"runbackwards groupified_14_anim" | |||
) |
player running backward
REGISTER_ANIMATION | ( | strafeleft | , |
"strafeleft groupified_15_anim" | |||
) |
player shuffling left quickly
REGISTER_ANIMATION | ( | straferight | , |
"straferight groupified_16_anim" | |||
) |
player shuffling right quickly
REGISTER_ANIMATION | ( | dead1 | , |
"deadone groupified_17_anim" | |||
) |
REGISTER_ANIMATION | ( | dead2 | , |
"deadtwo groupified_18_anim" | |||
) |
REGISTER_ANIMATION | ( | forwardright | , |
"forwardright groupified_19_anim" | |||
) |
player running forward and right
REGISTER_ANIMATION | ( | forwardleft | , |
"forwardleft groupified_20_anim" | |||
) |
player running forward and left
REGISTER_ANIMATION | ( | backright | , |
"backright groupified_21_anim" | |||
) |
player running backward and right
REGISTER_ANIMATION | ( | backleft | , |
"backleft groupified_22_anim" | |||
) |
player running back and left
REGISTER_ANIMATION | ( | melee | , |
"melee groupified_23_anim" | |||
) |
player doing the melee action
REGISTER_ANIMATION | ( | duckwalkbackwards | , |
"duckwalkbackwards groupified_24_anim" | |||
) |
REGISTER_ANIMATION | ( | duckwalkstrafeleft | , |
"duckwalkstrafeleft duckstrafeleft groupified_25_anim" | |||
) |
REGISTER_ANIMATION | ( | duckwalkstraferight | , |
"duckwalkstraferight duckstraferight groupified_26_anim" | |||
) |
REGISTER_ANIMATION | ( | duckwalkforwardright | , |
"duckwalkforwardright duckforwardright groupified_27_anim" | |||
) |
REGISTER_ANIMATION | ( | duckwalkforwardleft | , |
"duckwalkforwardleft groupified_28_anim" | |||
) |
REGISTER_ANIMATION | ( | duckwalkbackright | , |
"duckwalkbackright duckbackwardright groupified_29_anim" | |||
) |
REGISTER_ANIMATION | ( | duckwalkbackleft | , |
"duckwalkbackleft duckbackwardleft groupified_30_anim" | |||
) |
int anim_implicit_state |
Definition at line 116 of file animdecide.qh.
Referenced by CopyBody().
float anim_implicit_time |
Definition at line 117 of file animdecide.qh.
Referenced by CopyBody().
float anim_lower_action |
Definition at line 110 of file animdecide.qh.
Referenced by CopyBody().
float anim_lower_implicit_action |
Definition at line 118 of file animdecide.qh.
Referenced by CopyBody().
float anim_lower_implicit_time |
Definition at line 119 of file animdecide.qh.
Referenced by CopyBody().
float anim_lower_time |
Definition at line 111 of file animdecide.qh.
Referenced by CopyBody().
int anim_state |
Definition at line 108 of file animdecide.qh.
Referenced by CopyBody(), CSQCModel_Hook_PreDraw(), CSQCPlayer_AnimDecide_PostUpdate(), Monster_Anim(), player_anim(), and PlayerDamage().
float anim_time |
Definition at line 109 of file animdecide.qh.
Referenced by CopyBody().
float anim_upper_action |
Definition at line 112 of file animdecide.qh.
Referenced by CopyBody().
float anim_upper_implicit_action |
Definition at line 120 of file animdecide.qh.
Referenced by CopyBody().
float anim_upper_implicit_time |
Definition at line 121 of file animdecide.qh.
Referenced by CopyBody().
float anim_upper_time |
Definition at line 113 of file animdecide.qh.
Referenced by CopyBody().
const int ANIMACTION_DRAW = 1 |
Definition at line 142 of file animdecide.qh.
Referenced by animdecide_getupperanim().
const int ANIMACTION_JUMP = -1 |
Definition at line 141 of file animdecide.qh.
Referenced by animdecide_getloweranim(), animdecide_setimplicitstate(), jumppad_push(), PlayerJump(), and PM_dodging().
const int ANIMACTION_MELEE = 6 |
Definition at line 147 of file animdecide.qh.
Referenced by animdecide_getupperanim(), and weapon_thinkf().
const int ANIMACTION_PAIN1 = 2 |
Definition at line 143 of file animdecide.qh.
Referenced by animdecide_getupperanim(), and PlayerDamage().
const int ANIMACTION_PAIN2 = 3 |
Definition at line 144 of file animdecide.qh.
Referenced by animdecide_getupperanim(), and PlayerDamage().
const int ANIMACTION_SHOOT = 4 |
Definition at line 145 of file animdecide.qh.
Referenced by animdecide_getupperanim(), and weapon_thinkf().
const int ANIMACTION_TAUNT = 5 |
Definition at line 146 of file animdecide.qh.
Referenced by animdecide_getupperanim(), and UpdatePlayerSounds().
float animdecide_modelindex |
Definition at line 105 of file animdecide.qh.
Definition at line 134 of file animdecide.qh.
Referenced by animdecide_getloweranim(), and animdecide_setimplicitstate().
Definition at line 133 of file animdecide.qh.
Referenced by animdecide_getloweranim(), and animdecide_setimplicitstate().
Definition at line 132 of file animdecide.qh.
Referenced by animdecide_getloweranim(), animdecide_setimplicitstate(), bobmodel_ofs(), and HUD_StrafeHUD().
Definition at line 137 of file animdecide.qh.
Definition at line 135 of file animdecide.qh.
Referenced by animdecide_getloweranim(), and animdecide_setimplicitstate().
Definition at line 136 of file animdecide.qh.
Referenced by animdecide_getloweranim(), and animdecide_setimplicitstate().
Definition at line 125 of file animdecide.qh.
Referenced by animdecide_getloweranim(), animdecide_getupperanim(), CSQCPlayer_AnimDecide_PostUpdate(), Monster_Anim(), player_anim(), and PlayerDamage().
Definition at line 126 of file animdecide.qh.
Referenced by animdecide_getloweranim(), animdecide_getupperanim(), CSQCPlayer_AnimDecide_PostUpdate(), Monster_Anim(), player_anim(), and PlayerDamage().
Definition at line 127 of file animdecide.qh.
Referenced by animdecide_getloweranim(), CSQCModel_Hook_PreDraw(), Monster_Anim(), and player_anim().
Definition at line 129 of file animdecide.qh.
Referenced by animdecide_getloweranim(), and player_anim().
Definition at line 128 of file animdecide.qh.
Referenced by animdecide_getloweranim(), animdecide_getupperanim(), Monster_Anim(), and player_anim().