==================
*/
-extern void M_Menu_Quit_f (void);
+// LordHavoc: didn't like it asking me if I wanted to quit
+//extern void M_Menu_Quit_f (void);
void Host_Quit_f (void)
{
+ /*
if (key_dest != key_console && cls.state != ca_dedicated)
{
M_Menu_Quit_f ();
return;
}
+ */
CL_Disconnect ();
Host_ShutdownServer(false);
}
else
{
+ eval_t *val;
// set up the edict
ent = host_client->edict;
ent->v.colormap = NUM_FOR_EDICT(ent);
ent->v.team = (host_client->colors & 15) + 1;
ent->v.netname = host_client->name - pr_strings;
+ if (val = GETEDICTFIELDVALUE(host_client->edict, eval_pmodel))
+ val->_float = host_client->pmodel;
// copy spawn parms out of the client_t
CL_Disconnect ();
}
-/*
-======================
-Host_PModel_f
-LordHavoc: Intended for Nehahra, I personally think this is dumb, but Mindcrime won't listen.
-======================
-*/
-void Host_PModel_f (void)
-{
- int i;
- eval_t *val;
-
- if (Cmd_Argc () == 1)
- {
- Con_Printf ("usage: pmodel modelnumber\n");
- return;
- }
- i = atoi(Cmd_Argv(1));
-
- if (cmd_source == src_command)
- {
- if (cls.state == ca_connected)
- Cmd_ForwardToServer ();
- return;
- }
-
- if (val = GETEDICTFIELDVALUE(host_client->edict, eval_pmodel))
- val->_float = i;
-}
-
//=============================================================================
/*
Cmd_AddCommand ("ping", Host_Ping_f);
Cmd_AddCommand ("load", Host_Loadgame_f);
Cmd_AddCommand ("save", Host_Savegame_f);
- Cmd_AddCommand ("pmodel", Host_PModel_f);
Cmd_AddCommand ("startdemos", Host_Startdemos_f);
Cmd_AddCommand ("demos", Host_Demos_f);