if (cmd_source != src_command)
return;
- SCR_BeginLoadingPlaque ();
cls.demonum = -1; // stop demo loop in case this fails
CL_Disconnect ();
key_consoleactive = 0;
SV_SaveSpawnparms ();
- SCR_BeginLoadingPlaque();
allowcheats = sv_cheats.integer != 0;
strcpy(level, Cmd_Argv(1));
SV_SpawnServer(level);
key_dest = key_game;
key_consoleactive = 0;
- SCR_BeginLoadingPlaque();
allowcheats = sv_cheats.integer != 0;
strcpy(mapname, sv.name);
SV_SpawnServer(mapname);
//Con_Print("reconnect: no signon, ignoring reconnect\n");
return;
}
- SCR_BeginLoadingPlaque();
cls.signon = 0; // need new connection messages
}
return;
}
- SCR_BeginLoadingPlaque ();
-
str = FS_Getline (f);
for (i = 0;i < NUM_SPAWN_PARMS;i++)
{
// point the string back at updateclient->name to keep it safe
strlcpy (host_client->playermodel, newPath, sizeof (host_client->playermodel));
- host_client->edict->v->playermodel = PR_SetString(host_client->playermodel);
+ if( eval_playermodel )
+ GETEDICTFIELDVALUE(host_client->edict, eval_playermodel)->string = PR_SetString(host_client->playermodel);
if (strcmp(host_client->old_model, host_client->playermodel))
{
if (host_client->spawned)
// point the string back at updateclient->name to keep it safe
strlcpy (host_client->playerskin, newPath, sizeof (host_client->playerskin));
- host_client->edict->v->playerskin = PR_SetString(host_client->playerskin);
+ if( eval_playerskin )
+ GETEDICTFIELDVALUE(host_client->edict, eval_playerskin)->string = PR_SetString(host_client->playerskin);
if (strcmp(host_client->old_skin, host_client->playerskin))
{
if (host_client->spawned)
Cvar_RegisterVariable (&cl_pmodel);
Cmd_AddCommand ("pmodel", Host_PModel_f);
}
- // FIXME: Do this only for GAME_NEXUIZ?
- else if (gamemode == GAME_NEXUIZ)
- {
- Cvar_RegisterVariable (&cl_playermodel);
- Cmd_AddCommand ("playermodel", Host_Playermodel_f);
- Cvar_RegisterVariable (&cl_playerskin);
- Cmd_AddCommand ("playerskin", Host_Playerskin_f);
- }
+
+ // BLACK: This isnt game specific anymore (it was GAME_NEXUIZ at first)
+ Cvar_RegisterVariable (&cl_playermodel);
+ Cmd_AddCommand ("playermodel", Host_Playermodel_f);
+ Cvar_RegisterVariable (&cl_playerskin);
+ Cmd_AddCommand ("playerskin", Host_Playerskin_f);
Cmd_AddCommand ("prespawn", Host_PreSpawn_f);
Cmd_AddCommand ("spawn", Host_Spawn_f);