case ENT_CLIENT_ACCURACY: Ent_ReadAccuracy(); break;
case ENT_CLIENT_AUXILIARYXHAIR: Net_AuXair2(bIsNewEntity); break;
case ENT_CLIENT_TURRET: ent_turret(); break;
- case ENT_CLIENT_MODEL: CSQCModel_Read(); break;
+ case ENT_CLIENT_MODEL: CSQCModel_Read(bIsNewEntity); break;
default:
//error(strcat(_("unknown entity type in CSQC_Ent_Update: %d\n"), self.enttype));
error(sprintf(_("Unknown entity type in CSQC_Ent_Update (enttype: %d, edict: %d, classname: %s)\n"), self.enttype, num_for_edict(self), self.classname));
#define FIX_FRAMETIME(f,ft) \
switch(self.f) \
{ \
- case 0: // anim_die1 \
- case 1: // anim_die2 \
+ case 0: \
+ case 1: \
self.ft = 0; \
break; \
}
- FIX_FRAMETIME(frame, frame1time);
- FIX_FRAMETIME(frame2, frame2time);
- FIX_FRAMETIME(frame3, frame3time);
- FIX_FRAMETIME(frame4, frame4time);
+ FIX_FRAMETIME(frame, frame1time)
+ FIX_FRAMETIME(frame2, frame2time)
+ FIX_FRAMETIME(frame3, frame3time)
+ FIX_FRAMETIME(frame4, frame4time)
}
}
float CSQCPlayer_FallbackFrame(float f)
// add hook function calls here
#define CSQCMODEL_HOOK_PREUPDATE \
- CSQCModel_Hook_PreUpdate(isplayer, islocalplayer);
+ CSQCModel_Hook_PreUpdate(isnew, isplayer, islocalplayer);
#define CSQCMODEL_HOOK_POSTUPDATE \
- CSQCModel_Hook_PostUpdate(isplayer, islocalplayer);
+ CSQCModel_Hook_PostUpdate(isnew, isplayer, islocalplayer);
#define CSQCMODEL_HOOK_PREDRAW \
CSQCModel_Hook_PreDraw(isplayer, islocalplayer);
#define CSQCPLAYER_HOOK_POSTCAMERASETUP
self.csqcmodel_teleported = 0;
}
-void CSQCModel_Read()
+void CSQCModel_Read(float isnew)
{
float sf;
sf = ReadShort();
* IN THE SOFTWARE.
*/
-void CSQCModel_Read();
+void CSQCModel_Read(float isnew);
#define CSQCMODEL_IF(cond)
#define CSQCMODEL_ENDIF