/* ================== Host_Viewmodel_f ================== */ static void Host_Viewmodel_f(void) { edict_t *e; model_t *m; e = FindViewthing(); if (!e) return; m = Mod_ForName(Cmd_Argv(1), false); if (!m) { Con_Printf("Can't load %s\n", Cmd_Argv(1)); return; } e->v.frame = 0; cl.model_precache[(int)e->v.modelindex] = m; }
static void Host_Viewmodel_f (void) { edict_t *e; model_t *m; e = FindViewthing (); if (!e) return; m = Mod_ForName (Cmd_Argv (1), false); if (!m) { Sys_Printf ("Can't load %s\n", Cmd_Argv (1)); return; } SVfloat (e, frame) = 0; cl.model_precache[(int) SVfloat (e, modelindex)] = m; }