8void animdecide_setframes(
entity e,
bool support_blending, .
int fld_frame, .
int fld_frame1time, .
int fld_frame2, .
int fld_frame2time);
15 int f = frameforname(mdlidx, it);
16 if (f != -1)
return f;
29#define WriteAnimation(to, it) WriteRegistered(Animations, to, it)
30#define ReadAnimation() ReadRegistered(Animations)
31#define REGISTER_ANIMATION(id, framenames) \
33 REGISTER(Animations, ANIM_##id, m_id, NEW(Animation)) { \
34 this.m_framenames = framenames; \
40 v.x = Animation_getframe(
anim, mdlidx);
const int ANIMSTATE_FROZEN
const int ANIMACTION_MELEE
float anim_lower_implicit_time
const int ANIMIMPLICITSTATE_LEFT
const int ANIMACTION_DRAW
const int ANIMSTATE_DEAD1
float animdecide_modelindex
void animdecide_setimplicitstate(entity e, float onground)
const int ANIMIMPLICITSTATE_INAIR
void animdecide_setframes(entity e, bool support_blending,.int fld_frame,.int fld_frame1time,.int fld_frame2,.int fld_frame2time)
float anim_upper_implicit_action
const int ANIMIMPLICITSTATE_JUMPRELEASED
float anim_lower_implicit_action
const int ANIMIMPLICITSTATE_FORWARD
#define REGISTER_ANIMATION(id, framenames)
const int ANIMSTATE_FOLLOW
void animdecide_load_if_needed(entity e)
const int ANIMACTION_TAUNT
const int ANIMACTION_JUMP
const int ANIMACTION_PAIN2
void animdecide_setstate(entity e, int newstate, float restart)
const int ANIMSTATE_DEAD2
const int ANIMACTION_PAIN1
const int ANIMIMPLICITSTATE_RIGHT
vector anim_vec(Animation anim, int mdlidx, int numframes, float framerate)
void animdecide_setaction(entity e, float action, float restart)
float anim_upper_implicit_time
const int ANIMACTION_SHOOT
const int ANIMIMPLICITSTATE_BACKWARDS
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
ATTRIB(Animation, m_framenames, string)
LOG_DEBUGF("Missing animation for %s: %s", modelnameforindex(mdlidx), this.registered_id)
#define FOREACH_WORD(words, cond, body)
#define STATIC_METHOD(cname, name, prototype)
string registered_id
registered item identifier
#define REGISTER_REGISTRY(id)
#define REGISTRY(id, max)
Declare a new registry.
#define REGISTRY_DEFINE_GET(id, null)