Primary functions for the client. NB: The main() is system-specific and can currently be found in ports/. More...
#include "client.h"
#include "battlescape/cl_localentity.h"
#include "battlescape/events/e_server.h"
#include "battlescape/cl_particle.h"
#include "battlescape/cl_actor.h"
#include "battlescape/cl_hud.h"
#include "battlescape/cl_parse.h"
#include "battlescape/events/e_parse.h"
#include "battlescape/cl_view.h"
#include "cl_console.h"
#include "cl_screen.h"
#include "cl_game.h"
#include "cl_tutorials.h"
#include "cl_tip.h"
#include "cl_team.h"
#include "cl_language.h"
#include "cl_irc.h"
#include "cl_sequence.h"
#include "cl_inventory.h"
#include "cl_menu.h"
#include "cl_http.h"
#include "input/cl_joystick.h"
#include "cinematic/cl_cinematic.h"
#include "sound/s_music.h"
#include "sound/s_sample.h"
#include "renderer/r_main.h"
#include "renderer/r_particle.h"
#include "ui/ui_main.h"
#include "ui/ui_popup.h"
#include "ui/ui_font.h"
#include "ui/ui_nodes.h"
#include "ui/ui_parse.h"
#include "multiplayer/mp_callbacks.h"
#include "multiplayer/mp_serverlist.h"
#include "multiplayer/mp_team.h"
#include "../shared/infostring.h"
#include "../shared/parse.h"
#include "../ports/system.h"
Go to the source code of this file.
Functions | |
void | Cmd_ForwardToServer (void) |
adds the current command line as a clc_stringcmd to the client message. things like action, turn, etc, are commands directed to the server, so when they are typed in at the console, they will need to be forwarded. | |
static void | CL_Env_f (void) |
Set or print some environment variables via console command. | |
static void | CL_ForwardToServer_f (void) |
static void | CL_Quit_f (void) |
void | CL_Drop (void) |
Ensures the right menu cvars are set after error drop or map change. | |
static void | CL_Connect (void) |
static void | CL_ClearState (void) |
Called after tactical missions to wipe away the tactical-mission-only data. | |
void | CL_Disconnect (void) |
Sets the cls.state to ca_disconnected and informs the server. | |
static void | CL_ConnectionlessPacket (struct dbuffer *msg) |
Responses to broadcasts, etc. | |
static void | CL_ReadPackets (void) |
static void | CL_UserInfo_f (void) |
Prints the current userinfo string to the game console. | |
static void | CL_SpawnSoldiers_f (void) |
Send the clc_teaminfo command to server. | |
static qboolean | CL_DownloadUMPMap (const char *tiles) |
static qboolean | CL_DownloadMap (const char *map) |
static qboolean | CL_CanMultiplayerStart (void) |
void | CL_RequestNextDownload (void) |
static void | CL_Precache_f (void) |
The server will send this command right before allowing the client into the server. | |
static void | CL_SetRatioFilter_f (void) |
static void | CL_VideoInitMenu (void) |
static void | CL_TeamDefInitMenu (void) |
static void | CL_ParseCustomSkin (const char *name, const char **text) |
static void | CL_ParseMapDefinition (const char *name, const char **text) |
static int | Com_MapDefSort (const void *mapDef1, const void *mapDef2) |
void | CL_InitAfter (void) |
Init function for clients - called after menu was initialized and ufo-scripts were parsed. | |
void | CL_ParseClientData (const char *type, const char *name, const char **text) |
Called at client startup. | |
static void | CL_CheckCvars_f (void) |
Check cvars for some initial values that should/must be set. | |
static void | CL_ShowConfigstrings_f (void) |
Print the configstrings to game console. | |
static void | CL_InitLocal (void) |
Calls all reset functions for all subsystems like production and research also initializes the cvars and commands. | |
static void | CL_SendChangedUserinfos (void) |
Send the userinfo to the server (and to all other clients) when they changed (CVAR_USERINFO). | |
static void | CL_SendCommand (void) |
void | CL_SetClientState (int state) |
Sets the client state. | |
void | CL_Frame (int now, void *data) |
void | CL_SlowFrame (int now, void *data) |
static void | CL_InitMemPools (void) |
void | CL_Init (void) |
int | CL_Milliseconds (void) |
void | CL_Shutdown (void) |
Saves configuration file and shuts the client systems down. | |
Variables | |
cvar_t * | cl_fps |
cvar_t * | cl_leshowinvis |
cvar_t * | cl_selected |
cvar_t * | cl_lastsave |
static cvar_t * | cl_connecttimeout |
static cvar_t * | cl_introshown |
static cvar_t * | cl_name |
static cvar_t * | cl_msg |
static cvar_t * | cl_ready |
cvar_t * | cl_teamnum |
cvar_t * | cl_team |
client_static_t | cls |
struct memPool_s * | cl_genericPool |
struct memPool_s * | cl_ircSysPool |
struct memPool_s * | cl_soundSysPool |
struct memPool_s * | vid_genericPool |
struct memPool_s * | vid_imagePool |
struct memPool_s * | vid_lightPool |
struct memPool_s * | vid_modelPool |
static const value_t | customskin_vals [] |
valid customskin descriptors | |
static const value_t | mapdef_vals [] |
valid mapdef descriptors | |
static cvarList_t | checkcvar [] |
Cvars for initial check (popup at first start). |
Primary functions for the client. NB: The main() is system-specific and can currently be found in ports/.
Definition in file cl_main.c.
static qboolean CL_CanMultiplayerStart | ( | void | ) | [static] |
true
if are a compatible client and nothing else must be downloaded or no downloads are still running, false
if the start of the match must get a little bit postponed (running downloads). Definition at line 511 of file cl_main.c.
References _, cl, CL_DownloadMap(), CL_GetConfigString(), CL_GetConfigStringInteger(), CL_PendingHTTPDownloads(), CM_LoadMap(), Com_Error(), Com_GetScriptChecksum(), Com_Printf(), Com_sprintf(), CS_LIGHTMAP, CS_MAPCHECKSUM, CS_NAME, CS_OBJECTAMOUNT, CS_POSITIONS, CS_TILES, CS_UFOCHECKSUM, CS_VERSION, csi, client_static_s::downloadMaps, ERR_DISCONNECT, csi_s::numODs, popupText, qfalse, qtrue, SCR_BeginLoadingPlaque(), UFO_VERSION, and UI_Popup().
Referenced by CL_RequestNextDownload().
static void CL_CheckCvars_f | ( | void | ) | [static] |
Check cvars for some initial values that should/must be set.
Definition at line 976 of file cl_main.c.
References Com_Printf(), Cvar_Get(), cvarList_s::name, name, UI_PushWindow(), and cvarList_s::var.
Referenced by CL_InitLocal().
static void CL_ClearState | ( | void | ) | [static] |
Called after tactical missions to wipe away the tactical-mission-only data.
Definition at line 224 of file cl_main.c.
References cl, CL_ViewCalcFieldOfViewX(), LE_Cleanup(), r_numParticles, RDF_IRGOGGLES, refdef, and rendererData_t::rendererFlags.
Referenced by CL_Disconnect(), CL_Init(), and CL_SetClientState().
static void CL_Connect | ( | void | ) | [static] |
CL_Connect
if there is no connection yet (cls.netStream
is NULL
) Definition at line 187 of file cl_main.c.
References CL_Milliseconds(), Com_Printf(), Com_SetUserinfoModified(), client_static_s::connectTime, Cvar_Userinfo(), NET_Connect(), NET_ConnectToLoopBack(), NET_DatagramSocketClose(), NET_OOB_Printf(), client_static_s::netDatagramSocket, client_static_s::netStream, PROTOCOL_VERSION, qfalse, client_static_s::servername, and client_static_s::serverport.
Referenced by CL_SetClientState().
static void CL_ConnectionlessPacket | ( | struct dbuffer * | msg | ) | [static] |
Responses to broadcasts, etc.
[in,out] | msg | The client stream message buffer to read from |
Definition at line 330 of file cl_main.c.
References _, ca_connected, Cbuf_AddText(), CL_ParseTeamInfoMessage(), CL_SetHTTPServer(), clc_stringcmd, Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Cmd_TokenizeString(), Com_DPrintf(), Com_Printf(), Com_sprintf(), DEBUG_CLIENT, client_static_s::downloadReferer, client_static_s::downloadServer, NET_OOB_Printf(), NET_ReadString(), NET_ReadStringLine(), NET_StreamIsLoopback(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, new_dbuffer(), qfalse, REJ_PASSWORD_REQUIRED_OR_INCORRECT, client_static_s::servername, client_static_s::state, UI_Popup(), and UI_PushWindow().
Referenced by CL_ReadPackets().
void CL_Disconnect | ( | void | ) |
Sets the cls.state
to ca_disconnected
and informs the server.
Com_Error
, so it shouldn't cause any errors Definition at line 247 of file cl_main.c.
References ca_connecting, ca_disconnected, CL_ClearBattlescapeEvents(), CL_ClearState(), CL_SetClientState(), clc_stringcmd, Com_ServerState(), GAME_EndBattlescape(), NET_StreamFinished(), NET_Wait(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, new_dbuffer(), qfalse, R_ShutdownModels(), S_Stop(), and client_static_s::state.
Referenced by CL_Connect_f(), CL_Drop(), CL_ParseServerMessage(), CL_Quit_f(), CL_Reconnect_f(), CL_SequenceStart_f(), CP_StartSelectedMission(), GAME_CP_Drop(), GAME_CP_Results(), and GAME_SetMode().
static qboolean CL_DownloadMap | ( | const char * | map | ) | [static] |
Definition at line 490 of file cl_main.c.
References CL_CheckOrDownloadFile(), CL_DownloadUMPMap(), CL_GetConfigString(), CS_TILES, and va().
Referenced by CL_CanMultiplayerStart().
static qboolean CL_DownloadUMPMap | ( | const char * | tiles | ) | [static] |
Definition at line 459 of file cl_main.c.
References CL_CheckOrDownloadFile(), Com_Parse(), Com_sprintf(), MAX_QPATH, MAX_VAR, name, Q_strncpyz(), qfalse, and va().
Referenced by CL_DownloadMap().
void CL_Drop | ( | void | ) |
Ensures the right menu cvars are set after error drop or map change.
Definition at line 172 of file cl_main.c.
Referenced by CL_Disconnect_f(), CL_ParseServerMessage(), Com_Error(), GAME_HandleResults(), GAME_MP_Results(), and GAME_SK_Results().
static void CL_Env_f | ( | void | ) | [static] |
Set or print some environment variables via console command.
Definition at line 127 of file cl_main.c.
References argc, Cmd_Argc(), Cmd_Argv(), Com_Printf(), and Sys_Setenv().
Referenced by CL_InitLocal().
static void CL_ForwardToServer_f | ( | void | ) | [static] |
Definition at line 143 of file cl_main.c.
References ca_active, ca_connected, clc_stringcmd, Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Com_Printf(), dbuffer_add(), NET_WriteByte(), NET_WriteMsg(), client_static_s::netStream, new_dbuffer(), and client_static_s::state.
Referenced by CL_InitLocal().
void CL_Frame | ( | int | now, | |
void * | data | |||
) |
void CL_Init | ( | void | ) |
Definition at line 1285 of file cl_main.c.
Referenced by Qcommon_Init().
void CL_InitAfter | ( | void | ) |
Init function for clients - called after menu was initialized and ufo-scripts were parsed.
Definition at line 901 of file cl_main.c.
Referenced by Qcommon_Init().
static void CL_InitLocal | ( | void | ) | [static] |
Calls all reset functions for all subsystems like production and research also initializes the cvars and commands.
Definition at line 1013 of file cl_main.c.
References _, ACTOR_InitStartup(), ca_disconnected, CL_ActorTargetAlign_f(), CL_CameraInit(), CL_CheckCvars_f(), CL_Env_f(), CL_ForwardToServer_f(), cl_le_debug, cl_log_battlescape_events, cl_map_debug, CL_Precache_f(), CL_Quit_f(), CL_ServerEventsInit(), CL_SetClientState(), CL_SetRatioFilter_f(), CL_ShowConfigstrings_f(), CL_SpawnSoldiers_f(), CL_UserInfo_f(), CLMN_InitStartup(), Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), CVAR_NOSET, CVAR_SERVERINFO, CVAR_USERINFO, GAME_InitStartup(), HTTP_InitStartup(), HUD_InitStartup(), IN_Init(), INV_InitStartup(), MASTER_SERVER, masterserver_url, PTL_InitStartup(), client_static_s::realtime, SEQ_InitStartup(), sv_maxclients, Sys_GetCurrentUser(), Sys_Milliseconds(), TEAM_InitStartup(), TOTD_InitStartup(), and TUT_InitStartup().
Referenced by CL_Init().
static void CL_InitMemPools | ( | void | ) | [static] |
int CL_Milliseconds | ( | void | ) |
Definition at line 1335 of file cl_main.c.
Referenced by CIN_OGM_PlayCinematic(), CIN_OGM_RunCinematic(), CIN_ROQ_DecodeChunk(), CIN_ROQ_PlayCinematic(), CL_Connect(), CL_ParseServerMessage(), CL_ParticleRunTimed(), CL_PingServers_f(), CL_Reconnect_f(), CL_RequestNextDownload(), CL_SendCommand(), Con_DrawInput(), Con_DrawNotify(), Con_Print(), IN_KeyDown(), IN_SendKeyEvents(), Irc_Proto_Connect(), Irc_Proto_RefillBucket(), S_LoopSample(), S_PlaySample(), SCR_BeginLoadingPlaque(), SCR_UpdateScreen(), UI_DisplayNotice(), UI_Draw(), UI_EKGNodeDraw(), UI_HandleTimers(), UI_TextEntryNodeDraw(), UI_TimerStart(), UI_WindowNodeDraw(), and UI_WindowNodeInit().
void CL_ParseClientData | ( | const char * | type, | |
const char * | name, | |||
const char ** | text | |||
) |
Called at client startup.
Definition at line 936 of file cl_main.c.
Referenced by Com_ParseScripts().
static void CL_ParseCustomSkin | ( | const char * | name, | |
const char ** | text | |||
) | [static] |
Definition at line 690 of file cl_main.c.
References Com_AllocateCustomSkin(), Com_EParse(), Com_EParseValue(), com_genericPool, Com_Parse(), Com_Printf(), customSkin_s::id, Mem_PoolStrDup, value_s::ofs, value_s::size, value_s::string, and value_s::type.
Referenced by CL_ParseClientData().
static void CL_ParseMapDefinition | ( | const char * | name, | |
const char ** | text | |||
) | [static] |
Definition at line 785 of file cl_main.c.
References mapDef_s::aircraft, Com_EParse(), Com_EParseValue(), com_genericPool, Com_GetMapDefByIDX(), Com_Parse(), Com_Printf(), mapDef_s::cultures, mapDef_s::description, mapDef_s::gameTypes, mapDef_s::id, lengthof, LIST_AddString(), mapDef_s::map, client_static_s::mds, Mem_PoolStrDup, Mem_PoolStrDupTo, client_static_s::numMDs, value_s::ofs, mapDef_s::populations, value_s::size, value_s::string, Sys_Error(), mapDef_s::terrains, value_s::type, mapDef_s::ufos, V_CLIENT_HUNK_STRING, and V_TRANSLATION_STRING.
Referenced by CL_ParseClientData().
static void CL_Precache_f | ( | void | ) | [static] |
The server will send this command right before allowing the client into the server.
Definition at line 598 of file cl_main.c.
References CL_RequestNextDownload(), client_static_s::downloadMaps, and qtrue.
Referenced by CL_InitLocal().
static void CL_Quit_f | ( | void | ) | [static] |
Definition at line 160 of file cl_main.c.
References CL_Disconnect(), and Com_Quit().
Referenced by CL_InitLocal().
static void CL_ReadPackets | ( | void | ) | [static] |
Definition at line 420 of file cl_main.c.
References CL_ConnectionlessPacket(), CL_ParseServerMessage(), clc_oob, free_dbuffer(), NET_ReadByte(), NET_ReadMsg(), and client_static_s::netStream.
Referenced by CL_Frame().
void CL_RequestNextDownload | ( | void | ) |
Definition at line 561 of file cl_main.c.
References ca_connected, cl, CL_CanMultiplayerStart(), CL_Milliseconds(), CL_ViewLoadMedia(), clc_stringcmd, Com_Printf(), Com_ServerState(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, new_dbuffer(), client_static_s::state, SV_GetMapData(), SV_GetMapTiles(), and client_static_s::waitingForStart.
Referenced by CL_FinishHTTPDownload(), and CL_Precache_f().
static void CL_SendChangedUserinfos | ( | void | ) | [static] |
Send the userinfo to the server (and to all other clients) when they changed (CVAR_USERINFO).
Definition at line 1101 of file cl_main.c.
References ca_connected, clc_userinfo, Com_IsUserinfoModified(), Com_SetUserinfoModified(), Cvar_Userinfo(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, new_dbuffer(), qfalse, and client_static_s::state.
Referenced by CL_SendCommand().
static void CL_SendCommand | ( | void | ) | [static] |
Definition at line 1118 of file cl_main.c.
References _, ca_connected, ca_connecting, ca_disconnected, Cbuf_Execute(), CL_Milliseconds(), CL_SendChangedUserinfos(), CL_SetClientState(), Com_Error(), Com_ServerState(), Com_sprintf(), client_static_s::connectTime, Cvar_FixCheatVars(), ERR_DROP, GAME_IsMultiplayer, IN_SendKeyEvents(), cvar_s::integer, client_static_s::loadingMessages, SCR_UpdateScreen(), client_static_s::servername, client_static_s::serverport, client_static_s::state, and client_static_s::waitingForStart.
Referenced by CL_Frame().
void CL_SetClientState | ( | int | state | ) |
Sets the client state.
Definition at line 1168 of file cl_main.c.
References ca_active, ca_connected, ca_connecting, ca_disconnected, ca_sequence, ca_uninitialized, CL_ClearState(), CL_Connect(), Com_DPrintf(), Com_Error(), DEBUG_CLIENT, ERR_FATAL, qtrue, rendererData_t::ready, refdef, client_static_s::state, and client_static_s::waitingForStart.
Referenced by CL_Connect_f(), CL_Disconnect(), CL_InitLocal(), CL_ParseServerData(), CL_ParseServerMessage(), CL_Reconnect_f(), CL_SendCommand(), CL_SequenceEnd_f(), CL_SequenceStart_f(), and CL_StartGame().
static void CL_SetRatioFilter_f | ( | void | ) | [static] |
Definition at line 605 of file cl_main.c.
References Cmd_Argc(), Cmd_Argv(), Com_Error(), Com_Printf(), ERR_FATAL, uiNode_s::invis, uiNode_s::next, OPTION_VIDEO_RESOLUTIONS, OPTIONEXTRADATA, qfalse, qtrue, UI_GetOption(), and UI_RegisterOption().
Referenced by CL_InitLocal().
static void CL_ShowConfigstrings_f | ( | void | ) | [static] |
Print the configstrings to game console.
Definition at line 996 of file cl_main.c.
References CL_GetConfigString(), Com_Printf(), and MAX_CONFIGSTRINGS.
Referenced by CL_InitLocal().
void CL_Shutdown | ( | void | ) |
Saves configuration file and shuts the client systems down.
Sys_Quit
and Com_Error
. It would be better to run quit through here before the final handoff to the sys code. Definition at line 1347 of file cl_main.c.
Referenced by Com_Error(), Com_Quit(), and Sys_Quit().
void CL_SlowFrame | ( | int | now, | |
void * | data | |||
) |
static void CL_SpawnSoldiers_f | ( | void | ) | [static] |
Send the clc_teaminfo command to server.
Definition at line 447 of file cl_main.c.
References cl, CL_OnBattlescape(), GAME_SpawnSoldiers(), and qtrue.
Referenced by CL_InitLocal().
static void CL_TeamDefInitMenu | ( | void | ) | [static] |
Definition at line 666 of file cl_main.c.
References _, csi, teamDef_s::id, teamDef_s::name, csi_s::numTeamDefs, OPTION_TEAMDEFS, teamDef_s::race, RACE_CIVILIAN, td, csi_s::teamDef, UI_AddOption(), UI_GetOption(), and UI_RegisterOption().
Referenced by CL_InitAfter().
static void CL_UserInfo_f | ( | void | ) | [static] |
Prints the current userinfo string to the game console.
Definition at line 437 of file cl_main.c.
References Com_Printf(), Cvar_Userinfo(), and Info_Print().
Referenced by CL_InitLocal().
static void CL_VideoInitMenu | ( | void | ) | [static] |
Definition at line 652 of file cl_main.c.
References vidmode_s::height, OPTION_VIDEO_RESOLUTIONS, UI_AddOption(), UI_GetOption(), UI_RegisterOption(), va(), VID_GetModeInfo(), VID_GetModeNums(), and vidmode_s::width.
Referenced by CL_InitAfter().
void Cmd_ForwardToServer | ( | void | ) |
adds the current command line as a clc_stringcmd to the client message. things like action, turn, etc, are commands directed to the server, so when they are typed in at the console, they will need to be forwarded.
adds the current command line as a clc_stringcmd to the client message. things like godmode, noclip, etc, are commands directed to the server, so when they are typed in at the console, they will need to be forwarded.
Definition at line 102 of file cl_main.c.
Referenced by Cmd_ExecuteString().
static int Com_MapDefSort | ( | const void * | mapDef1, | |
const void * | mapDef2 | |||
) | [static] |
Definition at line 883 of file cl_main.c.
References Q_StringSort().
Referenced by CL_InitAfter().
cvarList_t checkcvar[] [static] |
cvar_t* cl_connecttimeout [static] |
Definition at line 69 of file cl_main.c.
Referenced by SCR_UpdateScreen().
struct memPool_s* cl_genericPool |
permanent client data - menu, fonts
Definition at line 88 of file cl_main.c.
Referenced by AIR_ParseAircraft(), CIN_ROQ_DecodeInfo(), CL_ActorAddToTeamList(), CL_AddServerToList(), CL_ParseEvent(), CL_ParseLanguages(), CL_ParseTipsOfTheDay(), CL_ParticleAppear(), GAME_AllocInventoryMemory(), GAME_FreeAllInventory(), M_ParseMusic(), MP_LoadTeamMultiplayer(), MP_SaveTeamMultiplayer(), SAV_GameLoad(), SAV_GameSave(), SEQ_Execute2Dobj(), and UI_DrawModelNode().
cvar_t* cl_introshown [static] |
struct memPool_s* cl_ircSysPool |
irc pool
Definition at line 89 of file cl_main.c.
Referenced by Irc_Client_CmdRplNamreply(), and Irc_Logic_AddChannelName().
Definition at line 73 of file cl_main.c.
Referenced by SAV_GameContinue_f().
Definition at line 70 of file cl_main.c.
Referenced by CL_EntAppear(), CL_ParticleAppear(), LE_AddAmbientSound(), LE_AddGrenade(), and LE_AddProjectile().
Definition at line 71 of file cl_main.c.
Referenced by CL_ActorEquipmentSelect_f(), CL_ActorUpdate_f(), CL_ChangeSkin_f(), MP_TeamSelect_f(), and UI_ContainerNodeAutoPlace().
struct memPool_s* cl_soundSysPool |
Definition at line 90 of file cl_main.c.
Referenced by S_LoadSample(), and S_Shutdown().
Definition at line 84 of file cl_main.c.
Referenced by GAME_MP_GetTeam(), GAME_SK_GetTeam(), and MP_GetEquipment().
Definition at line 83 of file cl_main.c.
Referenced by CL_TeamNum_f(), and SP_worldspawn().
Definition at line 86 of file cl_main.c.
Referenced by AII_CollectingItems(), AIR_RemoveEmployee(), B_PackInitialEquipment(), CL_ActorAddToTeamList(), CL_ActorAppear(), CL_ActorCheckAction(), CL_ActorCleanup(), CL_ActorConfirmAction_f(), CL_ActorDie(), CL_ActorDoShootTime(), CL_ActorGetMuzzle(), CL_ActorMoveMouse(), CL_ActorRemoveFromTeamList(), CL_ActorRevitalised(), CL_ActorSelect(), CL_ActorStartShoot(), CL_AddActor(), CL_AddTargetingBox(), CL_AddUGV(), CL_CameraMove(), CL_CampaignRun(), CL_CancelHTTPDownloads(), CL_CheckAndQueueDownload(), CL_CleanTempInventory(), CL_CleanupAircraftCrew(), CL_Connect_f(), CL_DoEndRound(), CL_EntPerish(), CL_ExecuteBattlescapeEvent(), CL_FinishHTTPDownload(), CL_GenerateCharacter(), CL_GetEventTime(), CL_GetFreeDLHandle(), CL_HTTP_Cleanup(), CL_HTTP_Progress(), CL_InvAdd(), CL_InvAmmo(), CL_InvDel(), CL_InvReload(), CL_LoadCharacterXML(), CL_LoadInventoryXML(), CL_NextAlien_f(), CL_NextAlienVisibleFromActor_f(), CL_NextRound_f(), CL_OnBattlescape(), CL_ParseResults(), CL_ParseServerMessage(), CL_ParticleRun(), CL_ParticleRun2(), CL_PendingHTTPDownloads(), CL_PingServers_f(), CL_PrecacheCharacterModels(), CL_QueueHTTPDownload(), CL_Rcon_f(), CL_Reconnect_f(), CL_Reset(), CL_ResetSinglePlayerData(), CL_ReVerifyHTTPQueue(), CL_RunHTTPDownloads(), CL_RunMapParticles(), CL_SelectTeam_Init_f(), CL_SequenceEnd_f(), CL_SetHTTPServer(), CL_StartHTTPDownload(), CL_StartNextHTTPDownload(), CL_TargetingStraight(), CL_ViewLoadMedia(), CL_ViewPrecacheModels(), CL_ViewRender(), Com_AllocateCustomSkin(), Com_GetCustomSkinByIDS(), Com_GetMapDefByIDX(), Com_GetMapDefinitionByID(), Con_Close(), Con_DrawInput(), Con_DrawNotify(), Con_ToggleChat_f(), Con_ToggleConsole_f(), CP_ChooseMap(), CP_LoadXML(), CP_SaveMapDefStatXML(), CP_SaveXML(), CP_StartMissionMap(), E_ResetEmployee(), GAME_AppendTeamMember(), GAME_CP_Frame(), GAME_CP_InitializeBattlescape(), GAME_CP_MapInfo(), GAME_CP_Results(), GAME_EndBattlescape(), GAME_GetCurrentType(), GAME_MP_ChangeGametype_f(), GAME_MP_MapInfo(), GAME_MP_Results(), GAME_MP_StartServer_f(), GAME_SetMode(), GAME_SK_MapInfo(), GAME_SK_Results(), GAME_SK_Start_f(), GAME_Spawn(), GAME_SpawnSoldiers(), GAME_StartBattlescape(), HUD_DisplayFiremodes(), HUD_Update(), IN_Parse(), INV_MoveItem(), INV_UnloadWeapon(), Key_Console(), Key_Event(), Key_Message(), Key_SetDest(), LE_Cleanup(), LE_PlaceItem(), LE_PlaySoundFileForContents(), LE_Think(), LM_AddToSceneOrder(), M_Change_f(), MAP_DrawMapMarkers(), MSG_Write_PA(), NAT_ScriptSanityCheck(), S_LoadSamples(), SCR_BeginLoadingPlaque(), SCR_DrawConsole(), SCR_DrawCursor(), SCR_DrawDownloading(), SCR_DrawLoading(), SCR_DrawPrecacheScreen(), SCR_EndLoadingPlaque(), SCR_RunConsole(), SCR_TimeRefresh_f(), SCR_UpdateScreen(), SEQ_Render2D(), SEQ_Render3D(), SEQ_SetCamera(), UI_ContainerNodeUpdateEquipment(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), UI_GetReferenceString(), UI_MapInfo(), UI_MapInfoGetNext(), UI_MaterialEditorStart_f(), UI_RadarNodeDraw(), UI_RadarNodeGetActorColor(), and UI_SelectMap_f().
const value_t customskin_vals[] [static] |
{ {"name", V_STRING, offsetof(customSkin_t, name), 0}, {"singleplayer", V_BOOL, offsetof(customSkin_t, singleplayer), MEMBER_SIZEOF(customSkin_t, singleplayer)}, {"multiplayer", V_BOOL, offsetof(customSkin_t, multiplayer), MEMBER_SIZEOF(customSkin_t, multiplayer)}, {NULL, 0, 0, 0} }
valid customskin descriptors
const value_t mapdef_vals[] [static] |
{ {"description", V_TRANSLATION_STRING, offsetof(mapDef_t, description), 0}, {"map", V_CLIENT_HUNK_STRING, offsetof(mapDef_t, map), 0}, {"param", V_CLIENT_HUNK_STRING, offsetof(mapDef_t, param), 0}, {"size", V_CLIENT_HUNK_STRING, offsetof(mapDef_t, size), 0}, {"maxaliens", V_INT, offsetof(mapDef_t, maxAliens), MEMBER_SIZEOF(mapDef_t, maxAliens)}, {"storyrelated", V_BOOL, offsetof(mapDef_t, storyRelated), MEMBER_SIZEOF(mapDef_t, storyRelated)}, {"hurtaliens", V_BOOL, offsetof(mapDef_t, hurtAliens), MEMBER_SIZEOF(mapDef_t, hurtAliens)}, {"teams", V_INT, offsetof(mapDef_t, teams), MEMBER_SIZEOF(mapDef_t, teams)}, {"multiplayer", V_BOOL, offsetof(mapDef_t, multiplayer), MEMBER_SIZEOF(mapDef_t, multiplayer)}, {"onwin", V_CLIENT_HUNK_STRING, offsetof(mapDef_t, onwin), 0}, {"onlose", V_CLIENT_HUNK_STRING, offsetof(mapDef_t, onlose), 0}, {NULL, 0, 0, 0} }
valid mapdef descriptors
struct memPool_s* vid_genericPool |
also holds all the static models
Definition at line 91 of file cl_main.c.
Referenced by CIN_OGM_PlayCinematic(), CIN_ROQ_PlayCinematic(), R_SphereGenerate(), and VID_Init().
struct memPool_s* vid_imagePool |
Definition at line 92 of file cl_main.c.
Referenced by R_LoadImage(), R_LoadMaterials(), R_LoadShader(), R_PreprocessShader(), R_ScreenShot(), R_SoftenTexture(), R_UploadData(), R_UploadTexture(), UI_MaterialEditorNewStage_f(), and VID_Init().
struct memPool_s* vid_lightPool |
lightmap - wiped with every new map
Definition at line 93 of file cl_main.c.
Referenced by R_BeginBuildingLightmaps(), R_BuildLightmap(), R_ModLoadLighting(), R_ShutdownModels(), and VID_Init().
struct memPool_s* vid_modelPool |
modeldata - wiped with every new map
Definition at line 94 of file cl_main.c.
Referenced by R_CreateSurfaceFlare(), R_LoadBspVertexArrays(), R_LoadObjModel(), R_LoadObjModelVertexArrays(), R_LoadObjSkin(), R_LoadSurfacesArrays_(), R_ModCalcUniqueNormalsAndTangents(), R_ModelLoadDPMVertsForFrame(), R_ModLoadAliasDPMModel(), R_ModLoadAliasMD2Mesh(), R_ModLoadAliasMD2MeshIndexed(), R_ModLoadAliasMD2MeshUnindexed(), R_ModLoadAliasMD3Model(), R_ModLoadAnims(), R_ModLoadArrayData(), R_ModLoadEdges(), R_ModLoadLeafs(), R_ModLoadMDX(), R_ModLoadNodes(), R_ModLoadPlanes(), R_ModLoadSubmodels(), R_ModLoadSurfaces(), R_ModLoadSurfedges(), R_ModLoadTags(), R_ModLoadTexinfo(), R_ModLoadVertexes(), R_ShutdownModels(), R_SortSurfacesArrays(), R_SwitchModelMemPoolTag(), and VID_Init().