UFO: Alien Invasion
Loading...
Searching...
No Matches
mp_callbacks.h
Go to the documentation of this file.
1
5
6
/*
7
Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; either version 2
12
of the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18
See the GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24
*/
25
26
#pragma once
27
28
#define MAX_MESSAGE_TEXT 256
29
30
typedef
struct
teamData_s {
31
int
teamCount
[
MAX_TEAMS
];
32
int
maxteams
;
33
int
maxPlayersPerTeam
;
34
}
teamData_t
;
35
36
extern
teamData_t
teamData
;
37
extern
cvar_t
*
rcon_client_password
;
38
extern
cvar_t
*
cl_maxsoldiersperteam
;
39
extern
cvar_t
*
cl_maxsoldiersperplayer
;
40
extern
cvar_t
*
cl_roundtimelimit
;
41
42
struct
cgame_import_s;
43
44
void
GAME_MP_CallbacksInit
(
const
struct
cgame_import_s*
import
);
45
void
GAME_MP_CallbacksShutdown
(
void
);
46
bool
GAME_MP_Rcon
(
const
char
*
password
,
const
char
* command);
MAX_TEAMS
#define MAX_TEAMS
Definition
defines.h:98
password
cvar_t * password
Definition
g_main.cpp:67
cl_roundtimelimit
cvar_t * cl_roundtimelimit
Definition
mp_callbacks.cpp:38
teamData
teamData_t teamData
Definition
mp_callbacks.cpp:34
rcon_client_password
cvar_t * rcon_client_password
Definition
mp_callbacks.cpp:35
cl_maxsoldiersperteam
cvar_t * cl_maxsoldiersperteam
Definition
mp_callbacks.cpp:36
cl_maxsoldiersperplayer
cvar_t * cl_maxsoldiersperplayer
Definition
mp_callbacks.cpp:37
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 th...
Definition
mp_callbacks.cpp:112
GAME_MP_CallbacksShutdown
void GAME_MP_CallbacksShutdown(void)
Definition
mp_callbacks.cpp:318
GAME_MP_CallbacksInit
void GAME_MP_CallbacksInit(const struct cgame_import_s *import)
cvar_t
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
Definition
cvar.h:71
teamData_t
Definition
mp_callbacks.h:30
teamData_t::maxteams
int maxteams
Definition
mp_callbacks.h:32
teamData_t::maxPlayersPerTeam
int maxPlayersPerTeam
Definition
mp_callbacks.h:33
teamData_t::teamCount
int teamCount[MAX_TEAMS]
Definition
mp_callbacks.h:31
src
client
cgame
multiplayer
mp_callbacks.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.16.1