}
}
+/*
+===============
+CL_ModelIndexList_f
+
+List all models in the client modelindex
+===============
+*/
+static void CL_ModelIndexList_f(void)
+{
+ int nModelIndexCnt = 1;
+
+ while(cl.model_precache[nModelIndexCnt] && nModelIndexCnt != MAX_MODELS)
+ { // Valid Model
+ Con_Printf("%i : %s\n", nModelIndexCnt, cl.model_precache[nModelIndexCnt]->name);
+ nModelIndexCnt++;
+ }
+}
+
//static const vec3_t nomodelmins = {-16, -16, -16};
//static const vec3_t nomodelmaxs = {16, 16, 16};
void CL_UpdateRenderEntity(entity_render_t *ent)
{
float f;
- if (cl_nettimesyncmode.integer == 3)
+ if (cl_nettimesyncboundmode.integer == 1)
cl.time = bound(cl.mtime[1], cl.time, cl.mtime[0]);
// LordHavoc: lerp in listen games as the server is being capped below the client (usually)
/*
===============
-CL_ReadFromServer
+CL_UpdateWorld
-Read all incoming data from the server
+Update client game world for a new frame
===============
*/
-int CL_ReadFromServer(void)
+void CL_UpdateWorld(void)
{
- CL_ReadDemoMessage();
- CL_SendMove();
-
- r_refdef.time = cl.time;
r_refdef.extraupdate = !r_speeds.integer;
r_refdef.numentities = 0;
r_refdef.numlights = 0;
// move particles
CL_MoveParticles();
R_MoveExplosions();
-
- // update the r_refdef time again because cl.time may have changed in
- // CL_LerpPoint()
- r_refdef.time = cl.time;
}
- return 0;
+ r_refdef.time = cl.time;
}
// LordHavoc: pausedemo command
Cmd_AddCommand ("playdemo", CL_PlayDemo_f, "watch a demo file");
Cmd_AddCommand ("timedemo", CL_TimeDemo_f, "play back a demo as fast as possible and save statistics to benchmark.log");
+ // Support Client-side Model Index List
+ Cmd_AddCommand ("cl_modelindexlist", CL_ModelIndexList_f, "list all models in the client modelindex");
+
Cvar_RegisterVariable (&cl_autodemo);
Cvar_RegisterVariable (&cl_autodemo_nameformat);