UFO: Alien Invasion
Loading...
Searching...
No Matches
mp_callbacks.h File Reference

Serverlist menu callbacks headers for multiplayer. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  teamData_t

Macros

#define MAX_MESSAGE_TEXT   256

Functions

void GAME_MP_CallbacksInit (const struct cgame_import_s *import)
void GAME_MP_CallbacksShutdown (void)
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.

Variables

teamData_t teamData
cvar_trcon_client_password
cvar_tcl_maxsoldiersperteam
cvar_tcl_maxsoldiersperplayer
cvar_tcl_roundtimelimit

Detailed Description

Serverlist menu callbacks headers for multiplayer.

Definition in file mp_callbacks.h.

Macro Definition Documentation

◆ MAX_MESSAGE_TEXT

#define MAX_MESSAGE_TEXT   256

Definition at line 28 of file mp_callbacks.h.

Function Documentation

◆ GAME_MP_CallbacksInit()

void GAME_MP_CallbacksInit ( const struct cgame_import_s * import)

References password.

◆ GAME_MP_CallbacksShutdown()

void GAME_MP_CallbacksShutdown ( void )

Definition at line 318 of file mp_callbacks.cpp.

References cgi, and mpCallbacks.

Referenced by GAME_MP_Shutdown().

◆ GAME_MP_Rcon()

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.

Returns
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().

Variable Documentation

◆ cl_maxsoldiersperplayer

cvar_t* cl_maxsoldiersperplayer
extern

Definition at line 37 of file mp_callbacks.cpp.

Referenced by GAME_MP_CallbacksInit(), GAME_MP_RunFrame(), and GAME_MP_StartServer_f().

◆ cl_maxsoldiersperteam

cvar_t* cl_maxsoldiersperteam
extern

Definition at line 36 of file mp_callbacks.cpp.

Referenced by GAME_MP_CallbacksInit(), GAME_MP_RunFrame(), and GAME_MP_StartServer_f().

◆ cl_roundtimelimit

cvar_t* cl_roundtimelimit
extern

Definition at line 38 of file mp_callbacks.cpp.

Referenced by GAME_MP_CallbacksInit(), and GAME_MP_RunFrame().

◆ rcon_client_password

cvar_t* rcon_client_password
extern

◆ teamData