66 #ifdef CSQCMODEL_HAVE_TWO_FRAMES 102 #ifdef CSQCMODEL_HAVE_TWO_FRAMES 141 this.
lerpfrac3 = (1 - l13) * (1 - l24_13);
172 #ifdef CSQCMODEL_HAVE_TWO_FRAMES 204 while(root.tag_entity)
205 root = root.tag_entity;
225 int sf = ReadInt24_t();
226 int psf = ReadByte();
230 if (isnew && isplayer)
236 noref
bool isnolocalplayer = (isplayer && !islocalplayer);
252 #define CSQCMODEL_IF(cond) if(cond) { 253 #define CSQCMODEL_ENDIF } 254 #define CSQCMODEL_PROPERTY(flag,t,r,w,f) \ 257 #define CSQCMODEL_PROPERTY_SCALED(flag,t,r,w,f,s,mi,ma) \ 259 this.f = (r() + mi) / s; 261 #undef CSQCMODEL_PROPERTY_SCALED 262 #undef CSQCMODEL_PROPERTY 263 #undef CSQCMODEL_ENDIF 270 setsize(
this, pmin, pmax);
283 viewloc_SetTags(
this);
291 #ifdef CSQCMODEL_SUPPORT_GETTAGINFO_BEFORE_DRAW void InterpolateOrigin_Note(entity this)
void CSQCModel_Hook_PostUpdate(entity this, bool isnew, bool isplayer, bool islocalplayer)
const int CSQCMODEL_PROPERTY_MODELINDEX
const int ISPLAYER_PLAYER
void InterpolateOrigin_Undo(entity this)
snap origin to iorigin2 (actual origin)
entity CSQCModel_server2csqc(int i)
float frame2
secondary framegroup animation (strength = lerpfrac)
void CSQCModel_Draw(entity this)
void CSQCModel_remove(entity this)
bool CSQCPlayer_PreUpdate(entity this)
float frame4
quaternary framegroup animation (strength = lerpfrac4)
float frame3
tertiary framegroup animation (strength = lerpfrac3)
float frame2time
start time of framegroup animation
float csqcmodel_lerpfractime
void CSQCModel_InterpolateAnimation_2To4_Do(entity this)
const int CSQCMODEL_PROPERTY_FRAME2
float csqcmodel_lerpfrac2time
void CSQCModel_InterpolateAnimation_Note(entity this, int sf)
bool CSQCPlayer_IsLocalPlayer(entity this)
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
float csqcmodel_lerpfrac2
void CSQCModel_Hook_PreDraw(entity this, bool isplayer)
float frame3time
start time of framegroup animation
float lerpfrac
strength of framegroup blend
void CSQCModel_InterpolateAnimation_1To2_PreNote(entity this, int sf)
NET_HANDLE(ENT_CLIENT_MODEL, bool isnew)
float lerpfrac4
strength of framegroup blend
entity CSQCModel_players[255]
float autocvar_cl_lerpanim_maxdelta_framegroups
void CSQCModel_InterpolateAnimation_2To4_PreNote(entity this, int sf)
void CSQCModel_InterpolateAnimation_1To2_Note(entity this, int sf, bool set_times)
#define BITSET(var, mask, flag)
const int CSQCMODEL_PROPERTY_LERPFRAC
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float frame4time
start time of framegroup animation
const int IFLAG_TELEPORTED
bool CSQCPlayer_PostUpdate(entity this)
const int CSQCMODEL_PROPERTY_FRAME
void CSQCModel_InterpolateAnimation_Do(entity this)
const int IFLAG_AUTOVELOCITY
const int ISPLAYER_CLIENT
float frame
primary framegroup animation (strength = 1 - lerpfrac - lerpfrac3 - lerpfrac4)
void CSQCModel_Hook_PreUpdate(entity this, bool isnew, bool isplayer, bool islocalplayer)
const float RF_EXTERNALMODEL
void CSQCModel_InterpolateAnimation_2To4_Note(entity this, int sf, bool set_times)
const int CSQCMODEL_PROPERTY_TELEPORTED
void InterpolateOrigin_Do(entity this)
set origin based on iorigin1 (old pos), iorigin2 (desired pos), and time
void CSQCModel_InterpolateAnimation_1To2_Do(entity this)
float csqcmodel_teleported
float frame1time
start time of framegroup animation
float lerpfrac3
strength of framegroup blend
void CSQCModel_InterpolateAnimation_PreNote(entity this, int sf)