Xonotic
|
#include "cl_model.qh"
#include "cl_player.qh"
#include "common.qh"
#include "interpolate.qh"
#include <common/csqcmodel_settings.qh>
Go to the source code of this file.
Macros | |
#define | CSQCMODEL_ENDIF } |
#define | CSQCMODEL_IF(cond) if(cond) { |
#define | CSQCMODEL_PROPERTY(flag, t, r, w, f) |
#define | CSQCMODEL_PROPERTY_SCALED(flag, t, r, w, f, s, mi, ma) |
Functions | |
void | CSQCModel_Draw (entity this) |
void | CSQCModel_InterpolateAnimation_1To2_Do (entity this) |
void | CSQCModel_InterpolateAnimation_1To2_Note (entity this, int sf, bool set_times) |
void | CSQCModel_InterpolateAnimation_1To2_PreNote (entity this, int sf) |
void | CSQCModel_InterpolateAnimation_2To4_Do (entity this) |
void | CSQCModel_InterpolateAnimation_2To4_Note (entity this, int sf, bool set_times) |
void | CSQCModel_InterpolateAnimation_2To4_PreNote (entity this, int sf) |
void | CSQCModel_InterpolateAnimation_Do (entity this) |
void | CSQCModel_InterpolateAnimation_Note (entity this, int sf) |
void | CSQCModel_InterpolateAnimation_PreNote (entity this, int sf) |
void | CSQCModel_remove (entity this) |
entity | CSQCModel_server2csqc (int i) |
NET_HANDLE (ENT_CLIENT_MODEL, bool isnew) | |
#define CSQCMODEL_ENDIF } |
#define CSQCMODEL_IF | ( | cond | ) | if(cond) { |
#define CSQCMODEL_PROPERTY | ( | flag, | |
t, | |||
r, | |||
w, | |||
f | |||
) |
#define CSQCMODEL_PROPERTY_SCALED | ( | flag, | |
t, | |||
r, | |||
w, | |||
f, | |||
s, | |||
mi, | |||
ma | |||
) |
Definition at line 179 of file cl_model.qc.
References CSQCModel_Hook_PreDraw(), CSQCModel_InterpolateAnimation_Do(), csqcmodel_teleported, CSQCPlayer_IsLocalPlayer(), entity(), entnum, InterpolateOrigin_Do(), ISPLAYER_CLIENT, isplayermodel, player_localentnum, player_localnum, renderflags, RF_EXTERNALMODEL, and RF_VIEWMODEL.
Referenced by NET_HANDLE().
Definition at line 156 of file cl_model.qc.
References autocvar_cl_lerpanim_maxdelta_framegroups, autocvar_cl_nolerp, bound(), frame1time, frame2time, lerpfrac, and time.
Referenced by CSQCModel_InterpolateAnimation_Do().
Definition at line 92 of file cl_model.qc.
References CSQCMODEL_PROPERTY_FRAME, frame1time, and time.
Referenced by CSQCModel_InterpolateAnimation_Note().
Definition at line 56 of file cl_model.qc.
References CSQCMODEL_PROPERTY_FRAME, frame, frame1time, frame2, and frame2time.
Referenced by CSQCModel_InterpolateAnimation_PreNote().
Definition at line 109 of file cl_model.qc.
References autocvar_cl_lerpanim_maxdelta_framegroups, autocvar_cl_nolerp, bound(), csqcmodel_lerpfrac, csqcmodel_lerpfrac2, csqcmodel_lerpfrac2time, csqcmodel_lerpfractime, frame1time, frame2time, frame3time, frame4time, lerpfrac, lerpfrac3, lerpfrac4, and time.
Referenced by CSQCModel_Hook_PreDraw(), and CSQCModel_InterpolateAnimation_Do().
Definition at line 73 of file cl_model.qc.
References csqcmodel_lerpfrac, csqcmodel_lerpfractime, CSQCMODEL_PROPERTY_FRAME, CSQCMODEL_PROPERTY_FRAME2, CSQCMODEL_PROPERTY_LERPFRAC, frame1time, frame2time, lerpfrac, and time.
Referenced by CSQCModel_Hook_PreDraw(), and CSQCModel_InterpolateAnimation_Note().
Definition at line 37 of file cl_model.qc.
References csqcmodel_lerpfrac, csqcmodel_lerpfrac2, csqcmodel_lerpfrac2time, csqcmodel_lerpfractime, CSQCMODEL_PROPERTY_FRAME, CSQCMODEL_PROPERTY_FRAME2, CSQCMODEL_PROPERTY_LERPFRAC, frame, frame1time, frame2, frame2time, frame3, frame3time, frame4, frame4time, and lerpfrac.
Referenced by CSQCModel_Hook_PreDraw(), and CSQCModel_InterpolateAnimation_PreNote().
Definition at line 170 of file cl_model.qc.
References CSQCModel_InterpolateAnimation_1To2_Do(), and CSQCModel_InterpolateAnimation_2To4_Do().
Referenced by CSQCModel_Draw(), and NET_HANDLE().
Definition at line 100 of file cl_model.qc.
References CSQCModel_InterpolateAnimation_1To2_Note(), and CSQCModel_InterpolateAnimation_2To4_Note().
Referenced by NET_HANDLE().
Definition at line 64 of file cl_model.qc.
References CSQCModel_InterpolateAnimation_1To2_PreNote(), and CSQCModel_InterpolateAnimation_2To4_PreNote().
Referenced by NET_HANDLE().
Definition at line 218 of file cl_model.qc.
References CSQCModel_players, entnum, and NULL.
Referenced by NET_HANDLE().
i | zero indexed player |
Definition at line 314 of file cl_model.qc.
References CSQCModel_players, entnum, findfloat(), LOG_DEBUGF, maxclients, and NULL.
Referenced by CSQC_UpdateView(), CSQCPlayer_SetCamera(), Hud_Dynamic_Frame(), HUD_StrafeHUD(), viewloc_PlayerPhysics(), viewmodel_animate(), viewmodel_draw(), and W_Model().
NET_HANDLE | ( | ENT_CLIENT_MODEL | , |
bool | isnew | ||
) |
Definition at line 223 of file cl_model.qc.
References ALLPROPERTIES, alpha, BIT, BITSET, CSQCModel_Draw(), CSQCModel_Hook_PostUpdate(), CSQCModel_Hook_PreUpdate(), CSQCModel_InterpolateAnimation_Do(), CSQCModel_InterpolateAnimation_Note(), CSQCModel_InterpolateAnimation_PreNote(), CSQCModel_players, CSQCMODEL_PROPERTY_MODELINDEX, CSQCMODEL_PROPERTY_TELEPORTED, CSQCModel_remove(), csqcmodel_teleported, CSQCPlayer_PostUpdate(), CSQCPlayer_PreUpdate(), drawmask, entnum, IFLAG_ANGLES, IFLAG_AUTOVELOCITY, IFLAG_ORIGIN, IFLAG_TELEPORTED, IFLAG_VELOCITY, iflags, InterpolateOrigin_Do(), InterpolateOrigin_Note(), InterpolateOrigin_Undo(), ISPLAYER_CLIENT, ISPLAYER_LOCAL, ISPLAYER_PLAYER, isplayermodel, m_alpha, MASK_NORMAL, maxclients, maxs, mins, modelindex, origin, player_localentnum, player_localnum, renderflags, RF_EXTERNALMODEL, setorigin(), setpredraw, and vector().
float autocvar_cl_lerpanim_maxdelta_framegroups = 0.1 |
Definition at line 29 of file cl_model.qc.
Referenced by CSQCModel_InterpolateAnimation_1To2_Do(), and CSQCModel_InterpolateAnimation_2To4_Do().
float autocvar_cl_nolerp = 0 |
Definition at line 30 of file cl_model.qc.
Referenced by CSQCModel_InterpolateAnimation_1To2_Do(), and CSQCModel_InterpolateAnimation_2To4_Do().
float csqcmodel_lerpfrac |
Definition at line 32 of file cl_model.qc.
Referenced by CSQCModel_InterpolateAnimation_2To4_Do(), CSQCModel_InterpolateAnimation_2To4_Note(), and CSQCModel_InterpolateAnimation_2To4_PreNote().
float csqcmodel_lerpfrac2 |
Definition at line 33 of file cl_model.qc.
Referenced by CSQCModel_InterpolateAnimation_2To4_Do(), and CSQCModel_InterpolateAnimation_2To4_PreNote().
float csqcmodel_lerpfrac2time |
Definition at line 35 of file cl_model.qc.
Referenced by CSQCModel_InterpolateAnimation_2To4_Do(), and CSQCModel_InterpolateAnimation_2To4_PreNote().
float csqcmodel_lerpfractime |
Definition at line 34 of file cl_model.qc.
Referenced by CSQCModel_InterpolateAnimation_2To4_Do(), CSQCModel_InterpolateAnimation_2To4_Note(), and CSQCModel_InterpolateAnimation_2To4_PreNote().
entity CSQCModel_players[255] |
Definition at line 216 of file cl_model.qc.
Referenced by CSQCModel_remove(), CSQCModel_server2csqc(), and NET_HANDLE().