Multiplayer game type headers. More...
Go to the source code of this file.
Functions | |
const mapDef_t * | GAME_MP_MapInfo (int step) |
void | GAME_MP_InitStartup (void) |
void | GAME_MP_AutoTeam (void) |
void | GAME_MP_Shutdown (void) |
void | GAME_MP_Results (struct dbuffer *msg, int winner, int *numSpawned, int *numAlive, int numKilled[][MAX_TEAMS], int numStunned[][MAX_TEAMS]) |
After a mission was finished this function is called. | |
int | GAME_MP_GetTeam (void) |
void | GAME_MP_EndRoundAnnounce (int playerNum, int team) |
void | GAME_MP_StartBattlescape (qboolean isTeamPlay) |
equipDef_t * | GAME_MP_GetEquipmentDefinition (void) |
Multiplayer game type headers.
Definition in file cl_game_multiplayer.h.
void GAME_MP_AutoTeam | ( | void | ) |
Definition at line 38 of file cl_game_multiplayer.c.
References GAME_GenerateTeam(), GAME_GetCharacterArraySize(), GAME_GetTeamDef(), and INV_GetEquipmentDefinitionByID().
Referenced by GAME_MP_StartServer_f(), and MP_AutoTeam_f().
void GAME_MP_EndRoundAnnounce | ( | int | playerNum, | |
int | team | |||
) |
Definition at line 52 of file cl_game_multiplayer.c.
References _, cl, CL_PlayerGetName(), Com_sprintf(), and HUD_DisplayMessage().
equipDef_t* GAME_MP_GetEquipmentDefinition | ( | void | ) |
Definition at line 285 of file cl_game_multiplayer.c.
int GAME_MP_GetTeam | ( | void | ) |
Definition at line 278 of file cl_game_multiplayer.c.
References cl_team, and cvar_s::integer.
void GAME_MP_InitStartup | ( | void | ) |
Definition at line 290 of file cl_game_multiplayer.c.
References chrDisplayList, Cmd_AddCommand(), Cvar_ForceSet(), Cvar_Set(), Cvar_VariableStringOld(), GAME_MP_ChangeGametype_f(), GAME_MP_StartServer_f(), GAME_MP_UpdateGametype_f(), MP_CallbacksInit(), MP_ServerListInit(), and chr_list_s::num.
const mapDef_t* GAME_MP_MapInfo | ( | int | step | ) |
Definition at line 245 of file cl_game_multiplayer.c.
References _, cls, Com_Error(), Com_GetMapDefByIDX(), client_static_s::currentSelectedMap, Cvar_Set(), linkedList_s::data, ERR_DROP, mapDef_s::gameTypes, i, LIST_ContainsString(), mapDef_s::multiplayer, linkedList_s::next, client_static_s::numMDs, Q_strcat(), cvar_s::string, sv_gametype, and va().
void GAME_MP_Results | ( | struct dbuffer * | msg, | |
int | winner, | |||
int * | numSpawned, | |||
int * | numAlive, | |||
int | numKilled[][MAX_TEAMS], | |||
int | numStunned[][MAX_TEAMS] | |||
) |
After a mission was finished this function is called.
msg | The network message buffer | |
winner | The winning team | |
numSpawned | The amounts of all spawned actors per team | |
numAlive | The amount of survivors per team | |
numKilled | The amount of killed actors for all teams. The first dimension contains the attacker team, the second the victim team | |
numStunned | The amount of stunned actors for all teams. The first dimension contains the attacker team, the second the victim team |
Definition at line 214 of file cl_game_multiplayer.c.
References _, CL_Drop(), cls, Com_sprintf(), i, lengthof, popupText, client_static_s::team, UI_MAX_SMALLTEXTLEN, and UI_Popup().
void GAME_MP_Shutdown | ( | void | ) |
Definition at line 314 of file cl_game_multiplayer.c.
References Cmd_RemoveCommand(), MP_CallbacksShutdown(), MP_ServerListShutdown(), qfalse, SV_Shutdown(), and teamData.
void GAME_MP_StartBattlescape | ( | qboolean | isTeamPlay | ) |
Definition at line 46 of file cl_game_multiplayer.c.
References qtrue, UI_ExecuteConfunc(), and UI_InitStack().