}
}
+/*
+===============
+CL_ModelIndexList_f
+
+List all models in the client modelindex
+===============
+*/
+static void CL_ModelIndexList_f(void)
+{
+ int nModelIndexCnt = 1;
+
+ while(cl.model_precache[nModelIndexCnt])
+ { // 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)
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);
Con_Print("\n");
}
-// DRESK - 4/24/07
-/*
-===============
-Cmd_ModelIndexList_f
-
-List all models in the model index
-===============
-*/
-static void Cmd_ModelIndexList_f(void)
-{
- int nModelIndexCnt = 3;
-
- while(cl.model_precache[nModelIndexCnt])
- { // Valid Model
- Con_Printf("%i : %s\n", nModelIndexCnt, cl.model_precache[nModelIndexCnt]->name);
- nModelIndexCnt++;
- }
-}
-
// DRESK - 5/14/06
// Support Doom3-style Toggle Console Command
/*
// DRESK - 5/14/06
// Support Doom3-style Toggle Command
Cmd_AddCommand( "toggle", Cmd_Toggle_f, "toggles a console variable's values (use for more info)");
- // Add Model Index List Command
- Cmd_AddCommand("modelindexlist", Cmd_ModelIndexList_f, "lists all models in the modelindex");
}
/*