40 client->
state = state;
63 Com_Printf(
"SV_New_f: client typed 'reconnect/new' while connecting\n");
131 Com_Printf(
"EXPLOIT: Illegal 'begin' from %s (already spawned), client dropped.\n",
cl->name);
139 began =
svs.ge->ClientBegin(*
cl->player);
165 svs.ge->ClientStartMatch(*
cl->player);
228 svs.ge->ClientCommand(*
cl->player);
242 Com_Printf(
"SV_ExecuteClientMessage: unknown command char '%d'\n", cmd);
250 cl->lastmessage =
svs.realtime;
274 sv->messageBuffer = msg;
275 svs.ge->ClientAction(*
cl->player);
276 sv->messageBuffer =
nullptr;
283 sv->messageBuffer = msg;
284 svs.ge->ClientEndRound(*
cl->player);
285 sv->messageBuffer =
nullptr;
293 sv->messageBuffer = msg;
294 svs.ge->ClientTeamInfo(*
cl->player);
295 sv->messageBuffer =
nullptr;
304 sv->messageBuffer = msg;
305 svs.ge->ClientInitActorStates(*
cl->player);
306 sv->messageBuffer =
nullptr;
const char * Cmd_Argv(int arg)
Returns a given argument.
void Cmd_TokenizeString(const char *text, bool macroExpand, bool replaceWhitespaces)
Parses the given string into command line tokens.
void Cbuf_InsertFromDefer(void)
Copies back any deferred commands.
void Com_DPrintf(int level, const char *fmt,...)
A Com_Printf that only shows up if the "developer" cvar is set.
int Com_ServerState(void)
Check whether we are the server or have a singleplayer tactical mission.
void Com_Printf(const char *const fmt,...)
#define MAX_CLC_STRINGCMD
const char * Cvar_Serverinfo(char *info, size_t infoSize)
Returns an info string containing all the CVAR_SERVERINFO cvars.
void Info_Print(const char *s)
Prints info strings (like userinfo or serverinfo - CVAR_USERINFO, CVAR_SERVERINFO).
int NET_ReadString(dbuffer *buf, char *string, size_t length)
void NET_WriteShort(dbuffer *buf, int c)
void NET_WriteMsg(struct net_stream *s, dbuffer &buf)
Enqueue the buffer in the net stream for ONE client.
void NET_WriteByte(dbuffer *buf, byte c)
void NET_WriteLong(dbuffer *buf, int c)
void NET_WriteString(dbuffer *buf, const char *str)
#define NET_STATE_DISCONNECT
#define MAX_CONFIGSTRINGS
#define NET_STATE_STARTMATCH
QGL_EXTERN void(APIENTRY *qglActiveTexture)(GLenum texture)
Main server include file.
char * SV_GetConfigString(int index)
client_t * SV_GetClient(int index)
serverInstanceGame_t * sv
serverInstanceStatic_t svs
void SV_ClientCommand(client_t *client, const char *fmt,...) __attribute__((format(__printf__
void SV_DropClient(client_t *drop, const char *message)
Called when the player is totally leaving the server, either willingly or unwillingly....
void SV_UserinfoChanged(client_t *cl)
Pull specific info from a newly changed userinfo string into a more C friendly form.
#define Q_strvalid(string)
void(* func)(client_t *client)
static void SV_Disconnect_f(client_t *cl)
The client is going to disconnect, so remove the connection immediately.
static void SV_Begin_f(client_t *cl)
static const ucmd_t ucmds[]
server_state_t SV_GetServerState(void)
static void SV_ExecuteUserCommand(client_t *cl, const char *s)
void SV_ExecuteClientMessage(client_t *cl, int cmd, dbuffer *msg)
The current net_message is parsed for the given client.
static void SV_ShowServerinfo_f(client_t *cl)
Dumps the serverinfo info string.
void SV_SetServerState(server_state_t state)
void SV_SetClientState(client_t *client, client_state_t state)
Set the client state.
static void SV_StartMatch_f(client_t *cl)
static void SV_New_f(client_t *cl)
Sends the first message from the server to a connected client. This will be sent on the initial conne...