32 noref
bool islocalplayer = (
this ==
to);
33 noref
bool isnolocalplayer = (isplayer && (
this !=
to));
40 WriteHeader(MSG_ENTITY, ENT_CLIENT_MODEL);
41 WriteInt24_t(MSG_ENTITY, sf);
44 #define CSQCMODEL_IF(cond) if(cond) { 45 #define CSQCMODEL_ENDIF } 46 #define CSQCMODEL_PROPERTY(flag,t,r,w,f) \ 49 w(MSG_ENTITY, this.csqcmodel_##f); \ 51 #define CSQCMODEL_PROPERTY_SCALED(flag,t,r,w,f,s,mi,ma) \ 54 w(MSG_ENTITY, this.csqcmodel_##f); \ 57 #undef CSQCMODEL_PROPERTY_SCALED 58 #undef CSQCMODEL_PROPERTY 59 #undef CSQCMODEL_ENDIF 65 #if CSQCPLAYER_FORCE_UPDATES 72 noref
float islocalplayer = isplayer;
73 noref
float isnolocalplayer = isplayer;
75 #if CSQCPLAYER_FORCE_UPDATES 76 if(isplayer &&
time > e.csqcmodel_nextforcedupdate)
95 #define CSQCMODEL_IF(cond) if(cond) { 96 #define CSQCMODEL_ENDIF } 97 #define CSQCMODEL_PROPERTY(flag,t,r,w,f) \ 100 if(tmp != e.csqcmodel_##f) \ 102 e.csqcmodel_##f = tmp; \ 103 e.SendFlags |= flag; \ 106 #define CSQCMODEL_PROPERTY_SCALED(flag,t,r,w,f,s,mi,ma) \ 108 t tmp = rint(bound(mi, s * e.f, ma) - mi); \ 109 if(tmp != e.csqcmodel_##f) \ 111 e.csqcmodel_##f = tmp; \ 112 e.SendFlags |= flag; \ 116 #undef CSQCMODEL_PROPERTY_SCALED 117 #undef CSQCMODEL_PROPERTY 118 #undef CSQCMODEL_ENDIF 125 e.SendFlags = 0xFFFFFF;
bool CSQCModel_Send(entity this, entity to, int sf)
const int ISPLAYER_PLAYER
#define CSQCPLAYER_FORCE_UPDATES
void CSQCModel_CheckUpdate(entity e)
const int EF_RESTARTANIM_BIT
const int CSQCMODEL_PROPERTY_ORIGIN
const int CSQCMODEL_PROPERTY_FRAME2
const int EF_TELEPORT_BIT
float csqcmodel_nextforcedupdate
#define setSendEntity(e, f)
#define BITSET(var, mask, flag)
void CSQCModel_LinkEntity(entity e)
const int CSQCMODEL_PROPERTY_FRAME
const int ISPLAYER_CLIENT
void CSQCModel_UnlinkEntity(entity e)
const int CSQCMODEL_PROPERTY_TELEPORTED