strcpy(level, Cmd_Argv(1));
SV_SpawnServer(level);
if (sv.active && cls.state == ca_disconnected)
- {
- SV_VM_Begin();
CL_EstablishConnection("local:1");
- SV_VM_End();
- }
}
/*
strcpy(level, Cmd_Argv(1));
SV_SpawnServer(level);
if (sv.active && cls.state == ca_disconnected)
- {
- SV_VM_Begin();
CL_EstablishConnection("local:1");
- SV_VM_End();
- }
}
/*
strcpy(mapname, sv.name);
SV_SpawnServer(mapname);
if (sv.active && cls.state == ca_disconnected)
- {
- SV_VM_Begin();
CL_EstablishConnection("local:1");
- SV_VM_End();
- }
}
/*
Con_Print("connect <serveraddress> : connect to a multiplayer game\n");
return;
}
- if( sv.active ) {
- SV_VM_Begin();
- CL_EstablishConnection(Cmd_Argv(1));
- SV_VM_End();
- } else {
- CL_EstablishConnection(Cmd_Argv(1));
- }
+ CL_EstablishConnection(Cmd_Argv(1));
}
for (i = 0;i < NUM_SPAWN_PARMS;i++)
svs.clients[0].spawn_parms[i] = spawn_parms[i];
+ SV_VM_End();
+
// make sure we're connected to loopback
if (cls.state == ca_disconnected || !(cls.state == ca_connected && cls.netcon != NULL && LHNETADDRESS_GetAddressType(&cls.netcon->peeraddress) == LHNETADDRESSTYPE_LOOP))
CL_EstablishConnection("local:1");
-
- SV_VM_End();
}
//============================================================================
host_client->nametime = sv.time + 5;
// point the string back at updateclient->name to keep it safe
- SV_VM_Begin();
strlcpy (host_client->name, newName, sizeof (host_client->name));
host_client->edict->fields.server->netname = PRVM_SetEngineString(host_client->name);
if (strcmp(host_client->old_name, host_client->name))
MSG_WriteByte (&sv.reliable_datagram, host_client - svs.clients);
MSG_WriteString (&sv.reliable_datagram, host_client->name);
}
- SV_VM_End();
}
/*
host_client->nametime = sv.time + 5;
*/
- SV_VM_Begin();
// point the string back at updateclient->name to keep it safe
strlcpy (host_client->playermodel, newPath, sizeof (host_client->playermodel));
if( eval_playermodel )
MSG_WriteByte (&sv.reliable_datagram, host_client - svs.clients);
MSG_WriteString (&sv.reliable_datagram, host_client->playermodel);*/
}
- SV_VM_End();
}
/*
host_client->nametime = sv.time + 5;
*/
- SV_VM_Begin();
// point the string back at updateclient->name to keep it safe
strlcpy (host_client->playerskin, newPath, sizeof (host_client->playerskin));
if( eval_playerskin )
MSG_WriteByte (&sv.reliable_datagram, host_client - svs.clients);
MSG_WriteString (&sv.reliable_datagram, host_client->playerskin);*/
}
- SV_VM_End();
}
void Host_Version_f (void)
return;
}
- SV_VM_Begin();
if (host_client->edict && (f = PRVM_ED_FindFunction ("SV_ChangeTeam")) && (SV_ChangeTeam = (func_t)(f - prog->functions)))
{
Con_DPrint("Calling SV_ChangeTeam\n");
MSG_WriteByte (&sv.reliable_datagram, host_client->colors);
}
}
- SV_VM_End();
}
cvar_t cl_rate = {CVAR_SAVE, "_cl_rate", "10000", "internal storage cvar for current rate (changed by rate command)"};
return;
}
- SV_VM_Begin();
prog->globals.server->time = sv.time;
prog->globals.server->self = PRVM_EDICT_TO_PROG(host_client->edict);
PRVM_ExecuteProgram (prog->globals.server->ClientKill, "QC function ClientKill is missing");
- SV_VM_End();
}
return;
}
- SV_VM_Begin();
if (host_client->edict && (val = PRVM_GETEDICTFIELDVALUE(host_client->edict, eval_pmodel)))
val->_float = i;
- SV_VM_End();
}
//===========================================================================
// SZ_Clear (&host_client->netconnection->message);
// run the entrance script
- SV_VM_Begin();
if (sv.loadgame)
{
// loaded games are fully initialized already
PRVM_ExecuteProgram (prog->globals.server->PutClientInServer, "QC function PutClientInServer is missing");
}
- SV_VM_End();
if (!host_client->netconnection)
return;
- SV_VM_Begin();
// send time of update
MSG_WriteByte (&host_client->netconnection->message, svc_time);
MSG_WriteFloat (&host_client->netconnection->message, sv.time);
MSG_WriteByte (&host_client->netconnection->message, svc_signonnum);
MSG_WriteByte (&host_client->netconnection->message, 3);
- SV_VM_End();
}
/*
t = Cmd_Argv(1);
v = atoi (Cmd_Argv(2));
- SV_VM_Begin();
switch (t[0])
{
case '0':
}
break;
}
- SV_VM_End();
}
prvm_edict_t *FindViewthing (void)