cl_game_multiplayer.c File Reference

Multiplayer game type code. More...

#include "client.h"
#include "cl_game.h"
#include "cl_team.h"
#include "cl_inventory.h"
#include "multiplayer/mp_callbacks.h"
#include "multiplayer/mp_serverlist.h"
#include "multiplayer/mp_team.h"
#include "ui/ui_main.h"
#include "ui/ui_popup.h"
#include "battlescape/cl_hud.h"
#include "battlescape/cl_parse.h"
Include dependency graph for cl_game_multiplayer.c:

Go to the source code of this file.

Functions

void GAME_MP_AutoTeam (void)
void GAME_MP_StartBattlescape (qboolean isTeamPlay)
void GAME_MP_EndRoundAnnounce (int playerNum, int team)
static void GAME_MP_StartServer_f (void)
 Starts a server and checks if the server loads a team unless he is a dedicated server admin.
static void GAME_MP_UpdateGametype_f (void)
 Update the menu values with current gametype values.
static void GAME_MP_ChangeGametype_f (void)
 Switch to the next multiplayer game type.
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.
const mapDef_tGAME_MP_MapInfo (int step)
int GAME_MP_GetTeam (void)
equipDef_tGAME_MP_GetEquipmentDefinition (void)
void GAME_MP_InitStartup (void)
void GAME_MP_Shutdown (void)

Variables

static equipDef_t equipDefMultiplayer

Detailed Description

Multiplayer game type code.

Definition in file cl_game_multiplayer.c.


Function Documentation

void GAME_MP_AutoTeam ( void   ) 
static void GAME_MP_ChangeGametype_f ( void   )  [static]
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   ) 
const mapDef_t* GAME_MP_MapInfo ( int  step  ) 
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.

Parameters:
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   ) 
void GAME_MP_StartBattlescape ( qboolean  isTeamPlay  ) 

Definition at line 46 of file cl_game_multiplayer.c.

References qtrue, UI_ExecuteConfunc(), and UI_InitStack().

static void GAME_MP_StartServer_f ( void   )  [static]

Starts a server and checks if the server loads a team unless he is a dedicated server admin.

Todo:
implement different ufo and dropship support for multiplayer, too (see skirmish)

Definition at line 72 of file cl_game_multiplayer.c.

References _, chrDisplayList, cls, Cmd_ExecuteString(), Com_GetMapDefByIDX(), Com_sprintf(), client_static_s::currentMD, client_static_s::currentSelectedMap, Cvar_GetInteger(), Cvar_GetValue(), Cvar_Set(), Cvar_SetValue(), GAME_MP_AutoTeam(), mapDef_s::hurtAliens, cvar_s::integer, mapDef_s::map, map, MAX_VAR, mapDef_s::multiplayer, chr_list_s::num, mapDef_s::param, qfalse, qtrue, sv_dedicated, mapDef_s::teams, UI_InitStack(), and UI_Popup().

Referenced by GAME_MP_InitStartup().

static void GAME_MP_UpdateGametype_f ( void   )  [static]

Update the menu values with current gametype values.

Definition at line 118 of file cl_game_multiplayer.c.

References Com_SetGameType().

Referenced by GAME_MP_InitStartup().


Variable Documentation

Definition at line 283 of file cl_game_multiplayer.c.


Generated by  doxygen 1.6.2