|
UFO: Alien Invasion
|
Serverlist menu callbacks for multiplayer. More...
#include "../../cl_shared.h"#include "../../ui/ui_data.h"#include "mp_callbacks.h"#include "mp_serverlist.h"#include "../cl_game.h"
Go to the source code of this file.
Functions | |
| static void | GAME_MP_Connect_f (void) |
| static void | GAME_MP_RconCallback (struct net_stream *s) |
| bool | GAME_MP_Rcon (const char *password, const char *command) |
| Sends an rcon command to the gameserver that the user is currently connected to, or if this is not the case, the gameserver that is specified in the cvar rcon_address. | |
| static void | GAME_MP_Rcon_f (void) |
| static void | GAME_MP_StartGame_f (void) |
| static void | GAME_MP_Disconnect_f (void) |
| Binding for disconnect console command. | |
| static void | GAME_MP_Reconnect_f (void) |
| The server is changing levels. | |
| static void | GAME_MP_SelectTeam_Init_f (void) |
| Send the SV_CMD_TEAMINFO command to server. | |
| static bool | GAME_MP_SetTeamNum (int teamnum) |
| static void | GAME_MP_TeamNum_f (void) |
| Increase or decrease the teamnum. | |
| static int | GAME_MP_CompleteNetworkAddress (const char *partial, const char **match) |
| Autocomplete function for some network functions. | |
| static void | GAME_MP_InitUI_f (void) |
| void | GAME_MP_CallbacksInit (const cgame_import_t *import) |
| void | GAME_MP_CallbacksShutdown (void) |
Variables | |
| static const cgame_import_t * | cgi |
| teamData_t | teamData |
| cvar_t * | rcon_client_password |
| cvar_t * | cl_maxsoldiersperteam |
| cvar_t * | cl_maxsoldiersperplayer |
| cvar_t * | cl_roundtimelimit |
| static cvar_t * | rcon_address |
| static cvar_t * | info_password |
| static const cmdList_t | mpCallbacks [] |
Serverlist menu callbacks for multiplayer.
Definition in file mp_callbacks.cpp.
| void GAME_MP_CallbacksInit | ( | const cgame_import_t * | import | ) |
Definition at line 300 of file mp_callbacks.cpp.
References cgi, cl_maxsoldiersperplayer, cl_maxsoldiersperteam, cl_roundtimelimit, CVAR_ARCHIVE, CVAR_SERVERINFO, CVAR_USERINFO, DOUBLEQUOTE, GAME_MP_CompleteNetworkAddress(), info_password, MAX_ACTIVETEAM, mpCallbacks, rcon_address, and rcon_client_password.
Referenced by GAME_MP_InitStartup().
Definition at line 318 of file mp_callbacks.cpp.
References cgi, and mpCallbacks.
Referenced by GAME_MP_Shutdown().
|
static |
Autocomplete function for some network functions.
Definition at line 264 of file mp_callbacks.cpp.
References cgi, i, MAX_BOOKMARKS, and va().
Referenced by GAME_MP_CallbacksInit().
Definition at line 42 of file mp_callbacks.cpp.
References _, ca_connecting, cgi, DOUBLEQUOTE, MAX_VAR, PORT_SERVER, Q_strncpyz(), and selectedServer.
Binding for disconnect console command.
Definition at line 173 of file mp_callbacks.cpp.
References cgi.
Definition at line 277 of file mp_callbacks.cpp.
References _, cgi, i, gametype_t::id, gametype_t::name, and TEXT_LIST.
| bool GAME_MP_Rcon | ( | const char * | password, |
| const char * | command ) |
Sends an rcon command to the gameserver that the user is currently connected to, or if this is not the case, the gameserver that is specified in the cvar rcon_address.
true if the command was send, false otherwise. Definition at line 112 of file mp_callbacks.cpp.
References ca_connected, cgi, DOUBLEQUOTE, GAME_MP_RconCallback(), password, port, PORT_SERVER, Q_strnull(), rcon_address, and SV_CMD_RCON.
Referenced by GAME_MP_Rcon_f().
Send the rest of the command line over as an unconnected command.
Definition at line 146 of file mp_callbacks.cpp.
References cgi, Com_Printf(), GAME_MP_Rcon(), and rcon_client_password.
|
static |
Definition at line 84 of file mp_callbacks.cpp.
References cgi, Q_streq, and svc_oob.
Referenced by GAME_MP_Rcon().
The server is changing levels.
Definition at line 182 of file mp_callbacks.cpp.
References ca_connecting, and cgi.
Send the SV_CMD_TEAMINFO command to server.
Definition at line 201 of file mp_callbacks.cpp.
References _, cgi, PROTOCOL_VERSION, SV_CMD_TEAMINFO, and TEXT_STANDARD.
Referenced by GAME_MP_TeamNum_f().
|
static |
Definition at line 215 of file mp_callbacks.cpp.
References _, cgi, Com_sprintf(), DEBUG_CLIENT, MAX_VAR, teamData, and TEXT_STANDARD.
Referenced by GAME_MP_TeamNum_f().
Definition at line 162 of file mp_callbacks.cpp.
References cgi.
Increase or decrease the teamnum.
Definition at line 235 of file mp_callbacks.cpp.
References cgi, GAME_MP_SelectTeam_Init_f(), GAME_MP_SetTeamNum(), i, Q_streq, TEAM_CIVILIAN, TEAM_DEFAULT, and teamData.
|
static |
Definition at line 32 of file mp_callbacks.cpp.
| cvar_t* cl_maxsoldiersperplayer |
Definition at line 37 of file mp_callbacks.cpp.
Referenced by GAME_MP_CallbacksInit(), GAME_MP_RunFrame(), and GAME_MP_StartServer_f().
| cvar_t* cl_maxsoldiersperteam |
Definition at line 36 of file mp_callbacks.cpp.
Referenced by GAME_MP_CallbacksInit(), GAME_MP_RunFrame(), and GAME_MP_StartServer_f().
| cvar_t* cl_roundtimelimit |
Definition at line 38 of file mp_callbacks.cpp.
Referenced by GAME_MP_CallbacksInit(), and GAME_MP_RunFrame().
|
static |
Definition at line 40 of file mp_callbacks.cpp.
Referenced by GAME_MP_CallbacksInit().
|
static |
Definition at line 287 of file mp_callbacks.cpp.
Referenced by GAME_MP_CallbacksInit(), and GAME_MP_CallbacksShutdown().
|
static |
Definition at line 39 of file mp_callbacks.cpp.
Referenced by GAME_MP_CallbacksInit(), and GAME_MP_Rcon().
| cvar_t* rcon_client_password |
Definition at line 35 of file mp_callbacks.cpp.
Referenced by GAME_MP_CallbacksInit(), GAME_MP_Rcon_f(), GAME_MP_RunFrame(), and GAME_MP_StartBattlescape().
| teamData_t teamData |
Definition at line 34 of file mp_callbacks.cpp.
Referenced by GAME_MP_ParseTeamInfoMessage(), GAME_MP_SetTeamNum(), GAME_MP_Shutdown(), and GAME_MP_TeamNum_f().