UFO: Alien Invasion
|
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_radar.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 "cgame/cl_game.h"
#include "cl_tutorials.h"
#include "cl_tip.h"
#include "cl_team.h"
#include "cl_language.h"
#include "cl_irc.h"
#include "cinematic/cl_sequence.h"
#include "cl_inventory.h"
#include "cl_menu.h"
#include "cl_http.h"
#include "cl_lua.h"
#include "input/cl_joystick.h"
#include "cinematic/cl_cinematic.h"
#include "sound/s_music.h"
#include "sound/s_mumble.h"
#include "web/web_main.h"
#include "renderer/r_main.h"
#include "renderer/r_particle.h"
#include "ui/ui_main.h"
#include "ui/ui_popup.h"
#include "ui/ui_draw.h"
#include "ui/ui_font.h"
#include "ui/ui_nodes.h"
#include "ui/ui_parse.h"
#include "ui/ui_lua.h"
#include "cgame/cl_game_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. More... | |
static void | CL_Env_f (void) |
Set or print some environment variables via console command. More... | |
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. More... | |
static void | CL_Reconnect (void) |
static void | CL_FreeClientStream (void) |
static void | CL_Connect (void) |
static void | CL_ClearState (void) |
Called after tactical missions to wipe away the tactical-mission-only data. More... | |
void | CL_Disconnect (void) |
Sets the cls.state to ca_disconnected and informs the server. More... | |
static void | CL_ConnectionlessPacket (dbuffer *msg) |
Responses to broadcasts, etc. More... | |
static void | CL_ReadPackets (void) |
static void | CL_UserInfo_f (void) |
Prints the current userinfo string to the game console. More... | |
static void | CL_SpawnSoldiers_f (void) |
Send the clc_teaminfo command to server. More... | |
static void | CL_StartMatch_f (void) |
static bool | CL_DownloadUMPMap (const char *tiles) |
static bool | CL_DownloadMap (const char *map) |
static bool | 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. More... | |
static void | CL_SetRatioFilter_f (void) |
static void | CL_ParseActorSkin (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. More... | |
bool | CL_ParseClientData (const char *type, const char *name, const char **text) |
Called at client startup. More... | |
static void | CL_ShowConfigstrings_f (void) |
Print the configstrings to game console. More... | |
static void | CL_OpenURL_f (void) |
Opens the specified URL and minimizes the game window. You have to specify the whole url including the protocol. More... | |
static void | CL_InitLocal (void) |
Calls all reset functions for all subsystems like production and research also initializes the cvars and commands. More... | |
static void | CL_SendChangedUserinfos (void) |
Send the userinfo to the server (and to all other clients) when they changed (CVAR_USERINFO) More... | |
static void | CL_SendCommand (void) |
int | CL_GetClientState (void) |
void | CL_SetClientState (connstate_t state) |
Sets the client state. More... | |
void | CL_Frame (int now, void *data) |
void | CL_SlowFrame (int now, void *data) |
static void | CL_InitMemPools (void) |
static void | CL_RContextCvarChange (const char *cvarName, const char *oldValue, const char *newValue, void *data) |
static void | CL_RImagesCvarChange (const char *cvarName, const char *oldValue, const char *newValue, void *data) |
void | CL_Init (void) |
int | CL_Milliseconds (void) |
void | CL_Shutdown (void) |
Saves configuration file and shuts the client systems down. More... | |
Variables | |
cvar_t * | cl_fps |
cvar_t * | cl_leshowinvis |
cvar_t * | cl_selected |
static cvar_t * | cl_connecttimeout |
static cvar_t * | cl_name |
static cvar_t * | cl_msg |
static cvar_t * | cl_ready |
cvar_t * | cl_teamnum |
client_static_t | cls |
static bool | isdown |
memPool_t * | cl_genericPool |
memPool_t * | vid_genericPool |
memPool_t * | vid_imagePool |
memPool_t * | vid_lightPool |
memPool_t * | vid_modelPool |
static const value_t | actorskin_vals [] |
valid actorskin descriptors More... | |
Primary functions for the client. NB: The main() is system-specific and can currently be found in ports/.
Definition in file cl_main.cpp.
|
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 551 of file cl_main.cpp.
References _, cl, CL_DownloadMap(), CL_GetConfigString(), CL_GetConfigStringInteger(), CL_PendingHTTPDownloads(), CM_LoadMap(), Com_Error(), Com_GetScriptChecksum(), Com_Printf(), Com_sprintf(), CS_ENTITYSTRING, CS_LIGHTMAP, CS_MAPCHECKSUM, CS_NAME, CS_OBJECTAMOUNT, CS_POSITIONS, CS_TILES, CS_UFOCHECKSUM, CS_VERSION, csi, client_static_s::downloadMaps, ERR_DISCONNECT, mapData_s::mapChecksum, clientBattleScape_s::mapData, clientBattleScape_s::mapTiles, csi_s::numODs, popupText, Q_streq, SCR_BeginLoadingPlaque(), UFO_VERSION, and UI_Popup().
Referenced by CL_RequestNextDownload().
Called after tactical missions to wipe away the tactical-mission-only data.
Definition at line 235 of file cl_main.cpp.
References clientBattleScape_s::cam, cl, CL_ViewCalcFieldOfViewX(), LE_Cleanup(), OBJZERO, r_numParticles, RDF_IRGOGGLES, refdef, rendererData_t::rendererFlags, and camera_s::zoom.
Referenced by CL_Disconnect(), CL_Init(), and CL_SetClientState().
CL_Connect
if there is no connection yet (cls.netStream
is nullptr
) Definition at line 200 of file cl_main.cpp.
References CL_FreeClientStream(), CL_Milliseconds(), Com_Printf(), Com_SetUserinfoModified(), client_static_s::connectTime, Cvar_Userinfo(), MAX_INFO_STRING, NET_Connect(), NET_ConnectToLoopBack(), NET_OOB_Printf(), client_static_s::netStream, PROTOCOL_VERSION, client_static_s::servername, client_static_s::serverport, and SV_CMD_CONNECT.
Referenced by CL_SetClientState().
Responses to broadcasts, etc.
[in,out] | msg | The client stream message buffer to read from |
Definition at line 340 of file cl_main.cpp.
References _, BAD_RCON_PASSWORD, ca_connected, Cbuf_AddText(), CL_CMD_CLIENT_CONNECT, CL_CMD_COMMAND, CL_CMD_ECHO, CL_CMD_PING, CL_Drop(), CL_SetHTTPServer(), clc_stringcmd, Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Cmd_TokenizeString(), Com_DPrintf(), Com_Printf(), Com_sprintf(), Cvar_GetString(), Cvar_Set(), DEBUG_CLIENT, client_static_s::downloadReferer, client_static_s::downloadServer, GAME_HandleServerCommand(), GAME_InitMissionBriefing(), i, NET_OOB_Printf(), NET_ReadString(), NET_ReadStringLine(), NET_STATE_NEW, NET_StreamIsLoopback(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, popupText, Q_streq, Q_strstart(), Q_strvalid, REJ_BANNED, REJ_CONNECTION_REFUSED, REJ_GAME_ALREADY_STARTED, REJ_PASSWORD_REQUIRED_OR_INCORRECT, REJ_SERVER_FULL, REJ_SERVER_VERSION_MISMATCH, client_static_s::servername, client_static_s::state, SV_CMD_ACK, SV_CMD_PRINT, UI_Popup(), and UI_PushWindow().
Referenced by CL_ReadPackets().
Sets the cls.state
to ca_disconnected
and informs the server.
Com_Error
, so it shouldn't cause any errors Definition at line 257 of file cl_main.cpp.
References ca_connecting, ca_disconnected, CL_ClearBattlescapeEvents(), CL_ClearState(), CL_SetClientState(), clc_stringcmd, Com_Printf(), Com_ServerState(), GAME_EndBattlescape(), NET_STATE_DISCONNECT, NET_StreamFinished(), NET_Wait(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, R_FreeWorldImages(), R_ShutdownModels(), S_Stop(), and client_static_s::state.
Referenced by CL_Drop(), CL_Quit_f(), CL_Reconnect(), GAME_GetImportData(), and GAME_SetMode().
|
static |
Definition at line 530 of file cl_main.cpp.
References CL_CheckOrDownloadFile(), CL_DownloadUMPMap(), CL_GetConfigString(), CS_TILES, and va().
Referenced by CL_CanMultiplayerStart().
|
static |
Definition at line 499 of file cl_main.cpp.
References CL_CheckOrDownloadFile(), Com_Parse(), Com_sprintf(), MAX_QPATH, MAX_VAR, name, Q_strncpyz(), and va().
Referenced by CL_DownloadMap().
Ensures the right menu cvars are set after error drop or map change.
Definition at line 167 of file cl_main.cpp.
References CL_Disconnect(), GAME_Drop(), and SCR_EndLoadingPlaque().
Referenced by CL_ConnectionlessPacket(), CL_ParseServerMessage(), Com_Error(), GAME_GetImportData(), and GAME_HandleResults().
Set or print some environment variables via console command.
Definition at line 122 of file cl_main.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), and Sys_Setenv().
Referenced by CL_InitLocal().
Definition at line 138 of file cl_main.cpp.
References dbuffer::add(), ca_active, ca_connected, clc_stringcmd, Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Com_Printf(), len, NET_WriteByte(), NET_WriteMsg(), client_static_s::netStream, and client_static_s::state.
Referenced by CL_InitLocal().
Definition at line 1048 of file cl_main.cpp.
References ca_active, ca_connected, cl, CL_CameraMove(), CL_ParticleRun(), CL_ReadPackets(), CL_RunHTTPDownloads(), CL_SendCommand(), client_static_s::framerate, client_static_s::frametime, GAME_Frame(), IN_Frame(), LE_Think(), cvar_s::modified, client_static_s::realtime, S_Frame(), SCR_RunConsole(), SCR_UpdateScreen(), client_static_s::state, sys_affinity, Sys_Milliseconds(), sys_priority, Sys_SetAffinityAndPriority(), and clientBattleScape_s::time.
Referenced by Qcommon_Init().
Definition at line 189 of file cl_main.cpp.
References Com_Printf(), and client_static_s::netStream.
Referenced by CL_Connect().
Definition at line 1008 of file cl_main.cpp.
References client_static_s::state.
Referenced by GAME_GetImportData().
Definition at line 1142 of file cl_main.cpp.
References BASEDIRNAME, CIN_Init(), CL_ClearState(), CL_InitLocal(), CL_InitLua(), CL_InitMemPools(), CL_RContextCvarChange(), CL_RImagesCvarChange(), CL_ViewInit(), Com_DPrintf(), Com_sprintf(), Con_Init(), Cvar_Get(), Cvar_GetFirst(), CVAR_R_CONTEXT, CVAR_R_IMAGES, Cvar_RegisterChangeListener(), DEBUG_CLIENT, FS_GetCwd(), fs_i18ndir, cvar_s::integer, Irc_Init(), isdown, MAX_OSPATH, cvar_s::next, OBJZERO, Q_strncpyz(), S_Init(), SCR_DrawLoadingScreen(), SCR_Init(), cvar_s::string, sv_dedicated, TEXT_DOMAIN, and VID_Init().
Referenced by Qcommon_Init().
Init function for clients - called after menu was initialized and ufo-scripts were parsed.
Definition at line 738 of file cl_main.cpp.
References CL_LanguageInit(), CL_ViewPrecacheModels(), CLMN_Init(), Com_MapDefSort(), csi, cvar_s::integer, csi_s::mds, csi_s::numMDs, S_Frame(), S_LoadSamples(), and sv_dedicated.
Referenced by Qcommon_Init().
Calls all reset functions for all subsystems like production and research also initializes the cvars and commands.
Definition at line 855 of file cl_main.cpp.
References ACTOR_InitStartup(), ca_disconnected, CL_ActorTargetAlign_f(), CL_BattlescapeRadarInit(), CL_CameraInit(), CL_Env_f(), CL_ForwardToServer_f(), cl_le_debug, cl_log_battlescape_events, cl_map_debug, CL_OpenURL_f(), CL_PRECACHE, CL_Precache_f(), CL_Quit_f(), CL_ServerEventsInit(), CL_SetClientState(), CL_SetRatioFilter_f(), CL_ShowConfigstrings_f(), CL_SPAWNSOLDIERS, CL_SpawnSoldiers_f(), CL_STARTMATCH, CL_StartMatch_f(), cl_trace_debug, CL_UserInfo_f(), 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, N_, PTL_InitStartup(), client_static_s::realtime, sv_maxclients, Sys_GetCurrentUser(), Sys_Milliseconds(), TEAM_InitStartup(), TOTD_InitStartup(), TUT_InitStartup(), UI_Init(), and WEB_InitStartup().
Referenced by CL_Init().
Definition at line 1208 of file cl_main.cpp.
References client_static_s::realtime.
Referenced by CIN_OGM_OpenCinematic(), CIN_OGM_RunCinematic(), CIN_ROQ_DecodeChunk(), CIN_ROQ_OpenCinematic(), CL_Connect(), CL_ParseServerMessage(), CL_ParticleRunTimed(), CL_Reconnect(), CL_RequestNextDownload(), CL_SendCommand(), Con_DrawInput(), uiTextEntryNode::draw(), uiTimerNode::draw(), GAME_GetImportData(), IN_KeyDown(), IN_SendKeyEvents(), Irc_Proto_Connect(), Irc_Proto_RefillBucket(), uiTimerNode::onWindowOpened(), S_LoopSample(), S_PlaySample(), SCR_BeginLoadingPlaque(), SCR_UpdateScreen(), UI_AbstractNodeCallDeleteTimed(), UI_DisplayNotice(), UI_Draw(), UI_DrawNode(), UI_HandleTimers(), and UI_TimerStart().
Opens the specified URL and minimizes the game window. You have to specify the whole url including the protocol.
Definition at line 839 of file cl_main.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), Sys_OpenURL(), and VID_Minimize().
Referenced by CL_InitLocal().
|
static |
Definition at line 703 of file cl_main.cpp.
References CL_AllocateActorSkin(), CL_GetActorSkinCount(), Com_Error(), Com_ParseBlock(), ERR_DROP, and Q_streq.
Referenced by CL_ParseClientData().
bool CL_ParseClientData | ( | const char * | type, |
const char * | name, | ||
const char ** | text | ||
) |
Called at client startup.
Definition at line 771 of file cl_main.cpp.
References CL_ParseActorSkin(), CL_ParseLanguages(), CL_ParseParticle(), CL_ParseSequence(), CL_ParseTipOfTheDay(), GAME_ParseModes(), M_ParseMusic(), Q_streq, SCR_DrawLoadingScreen(), TUT_ParseTutorials(), UI_ParseAndLoadLuaScript(), UI_ParseComponent(), UI_ParseFont(), UI_ParseSprite(), UI_ParseUIModel(), and UI_ParseWindow().
Referenced by Com_ParseScripts(), and TEST_ParseScript().
The server will send this command right before allowing the client into the server.
Definition at line 640 of file cl_main.cpp.
References CL_RequestNextDownload(), and client_static_s::downloadMaps.
Referenced by CL_InitLocal().
Definition at line 155 of file cl_main.cpp.
References CL_Disconnect(), and Com_Quit().
Referenced by CL_InitLocal().
|
static |
Definition at line 1128 of file cl_main.cpp.
References _, and UI_DisplayNotice().
Referenced by CL_Init(), and CL_Shutdown().
Definition at line 447 of file cl_main.cpp.
References CL_ConnectionlessPacket(), CL_ParseServerMessage(), NET_ReadByte(), NET_ReadMsg(), client_static_s::netStream, and svc_oob.
Referenced by CL_Frame().
Definition at line 177 of file cl_main.cpp.
References ca_connecting, CL_Disconnect(), CL_Milliseconds(), CL_SetClientState(), Com_Printf(), client_static_s::connectTime, and client_static_s::reconnectTime.
Referenced by CL_SlowFrame().
Definition at line 603 of file cl_main.cpp.
References ca_connected, cl, CL_CanMultiplayerStart(), CL_Milliseconds(), CL_ViewLoadMedia(), clc_stringcmd, Com_Printf(), Com_ServerState(), clientBattleScape_s::mapData, clientBattleScape_s::mapTiles, NET_STATE_BEGIN, NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, S_MumbleLink(), client_static_s::state, SV_GetMapData(), SV_GetMapTiles(), and client_static_s::waitingForStart.
Referenced by CL_FinishHTTPDownload(), and CL_Precache_f().
|
static |
Definition at line 1133 of file cl_main.cpp.
References _, and UI_DisplayNotice().
Referenced by CL_Init(), and CL_Shutdown().
Send the userinfo to the server (and to all other clients) when they changed (CVAR_USERINFO)
Definition at line 944 of file cl_main.cpp.
References ca_connected, clc_userinfo, Com_IsUserinfoModified(), Com_SetUserinfoModified(), Cvar_Userinfo(), MAX_INFO_STRING, NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, and client_static_s::state.
Referenced by CL_SendCommand().
Definition at line 963 of file cl_main.cpp.
References ca_connected, ca_connecting, ca_disconnected, Cbuf_Execute(), CL_Milliseconds(), CL_SendChangedUserinfos(), CL_SetClientState(), Com_Error(), Com_ServerState(), client_static_s::connectTime, Cvar_FixCheatVars(), ERR_DROP, GAME_IsMultiplayer(), IN_SendKeyEvents(), cvar_s::integer, SCR_DrawLoading(), client_static_s::servername, client_static_s::serverport, client_static_s::state, and client_static_s::waitingForStart.
Referenced by CL_Frame().
void CL_SetClientState | ( | connstate_t | state | ) |
Sets the client state.
Definition at line 1016 of file cl_main.cpp.
References ca_active, ca_connected, ca_connecting, ca_disconnected, ca_uninitialized, CL_ClearState(), CL_Connect(), Com_DPrintf(), Com_Error(), Cvar_Set(), DEBUG_CLIENT, ERR_FATAL, client_static_s::reconnectTime, client_static_s::state, and client_static_s::waitingForStart.
Referenced by CL_Disconnect(), CL_InitLocal(), CL_ParseServerData(), CL_Reconnect(), CL_SendCommand(), CL_StartGame(), GAME_GetImportData(), and CampaignTest::SetUpTestCase().
Definition at line 647 of file cl_main.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Error(), Com_Printf(), ERR_FATAL, uiNode_t::invis, uiNode_t::next, OPTION_VIDEO_RESOLUTIONS, OPTIONEXTRADATA, Q_streq, UI_GetOption(), and UI_RegisterOption().
Referenced by CL_InitLocal().
Print the configstrings to game console.
Definition at line 817 of file cl_main.cpp.
References CL_GetConfigString(), Com_Printf(), CS_MODELS, CS_POSITIONS, CS_TILES, i, and MAX_CONFIGSTRINGS.
Referenced by CL_InitLocal().
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 1220 of file cl_main.cpp.
References CIN_Shutdown(), CL_HTTP_Cleanup(), CL_LanguageShutdown(), CL_RContextCvarChange(), CL_RImagesCvarChange(), CL_ShutdownLua(), CLMN_Shutdown(), Con_SaveConsoleHistory(), Cvar_GetFirst(), CVAR_R_CONTEXT, CVAR_R_IMAGES, Cvar_UnRegisterChangeListener(), GAME_SetMode(), GAME_Shutdown(), GAME_UnloadGame(), Irc_Shutdown(), isdown, Key_WriteBindings(), cvar_s::next, R_Shutdown(), S_Shutdown(), SCR_Shutdown(), SEQ_Shutdown(), TOTD_Shutdown(), and UI_Shutdown().
Referenced by Com_Error(), Com_Quit(), Qcommon_Frame(), and Sys_Quit().
Definition at line 1109 of file cl_main.cpp.
References CL_LanguageTryToSet(), CL_Reconnect(), HUD_Update(), Irc_Logic_Frame(), cvar_s::modified, s_language, and cvar_s::string.
Referenced by Qcommon_Init().
Send the clc_teaminfo command to server.
Definition at line 475 of file cl_main.cpp.
References cl, CL_OnBattlescape(), GAME_SpawnSoldiers(), and clientBattleScape_s::spawned.
Referenced by CL_InitLocal().
Definition at line 487 of file cl_main.cpp.
References cl, GAME_StartMatch(), clientBattleScape_s::spawned, and clientBattleScape_s::started.
Referenced by CL_InitLocal().
Prints the current userinfo string to the game console.
Definition at line 464 of file cl_main.cpp.
References Com_Printf(), Cvar_Userinfo(), Info_Print(), and MAX_INFO_STRING.
Referenced by CL_InitLocal().
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 98 of file cl_main.cpp.
References dbuffer::add(), ca_connected, clc_stringcmd, Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Com_Printf(), NET_WriteByte(), NET_WriteMsg(), client_static_s::netStream, and client_static_s::state.
Referenced by Cmd_vExecuteString().
Definition at line 720 of file cl_main.cpp.
References Q_StringSort().
Referenced by CL_InitAfter().
|
static |
valid actorskin descriptors
Definition at line 694 of file cl_main.cpp.
|
static |
Definition at line 75 of file cl_main.cpp.
cvar_t* cl_fps |
Definition at line 71 of file cl_main.cpp.
Referenced by SCR_UpdateScreen().
memPool_t* cl_genericPool |
permanent client data - menu, fonts
Definition at line 86 of file cl_main.cpp.
Referenced by CIN_ROQ_DecodeInfo(), CL_ParseEvent(), CL_ParseLanguages(), CL_ParseSequence(), CL_ParseTipOfTheDay(), CL_ParticleAppear(), GAME_AllocInventoryMemory(), GAME_FreeAllInventory(), GAME_LoadTeam(), GAME_SaveTeam(), GAME_StrDup(), M_ParseMusic(), SEQ_ExecuteObj2D(), EventsTest::SetUpTestCase(), ParticleTest::SetUpTestCase(), ScriptTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), CampaignTest::SetUpTestCase(), and UI_DrawModelNode().
cvar_t* cl_leshowinvis |
Definition at line 72 of file cl_main.cpp.
|
static |
Definition at line 79 of file cl_main.cpp.
|
static |
Definition at line 78 of file cl_main.cpp.
|
static |
Definition at line 80 of file cl_main.cpp.
cvar_t* cl_selected |
Definition at line 73 of file cl_main.cpp.
Referenced by CL_ActorUpdate_f(), CL_ChangeSkin_f(), and UI_ContainerNodeAutoPlace().
cvar_t* cl_teamnum |
Definition at line 81 of file cl_main.cpp.
Referenced by SP_worldspawn().
client_static_t cls |
Definition at line 83 of file cl_main.cpp.
Referenced by CL_ActorAddToTeamList(), CL_ActorAppear(), CL_ActorAppearTime(), CL_ActorCheckAction(), CL_ActorCleanup(), CL_ActorConfirmAction_f(), CL_ActorDie(), CL_ActorDoShootTime(), CL_ActorGetMuzzle(), CL_ActorMoveMouse(), CL_ActorRevitalised(), CL_ActorStartShoot(), CL_ActorStateChange(), CL_AddActor(), CL_AddTargetingBox(), CL_AddUGV(), CL_AllocateActorSkin(), CL_CameraMove(), CL_CancelHTTPDownloads(), CL_CheckAndQueueDownload(), CL_CountVisibleEnemies(), CL_DoEndRound(), CL_EntPerish(), CL_ExecuteBattlescapeEvent(), CL_FinishHTTPDownload(), CL_GenerateCharacter(), CL_GetActorSkinByIDS(), CL_GetActorSkinCount(), CL_GetFreeDLHandle(), CL_GetPlayerNum(), CL_HTTP_Cleanup(), CL_HTTP_Progress(), CL_InvAdd(), CL_InvAmmo(), CL_InvDel(), CL_InvReload(), CL_NextAlien_f(), CL_NextAlienVisibleFromActor_f(), CL_NextRound_f(), CL_OnBattlescape(), CL_ParseResults(), CL_ParseServerMessage(), CL_ParticleRun2(), CL_PendingHTTPDownloads(), CL_PrevAlien_f(), CL_QueueHTTPDownload(), CL_Reset(), CL_ReVerifyHTTPQueue(), CL_RunHTTPDownloads(), CL_SetHTTPServer(), CL_SoundEvent(), CL_StartHTTPDownload(), CL_StartNextHTTPDownload(), CL_TargetingStraight(), CL_ViewPrecacheModels(), CL_ViewRender(), Con_Close(), Con_DrawInput(), Con_ToggleChat_f(), Con_ToggleConsole_f(), uiRadarNode::draw(), GAME_AppendTeamMember(), GAME_AutoTeam(), GAME_CollectItems(), GAME_DestroyInventory(), GAME_EndBattlescape(), GAME_EquipActor(), GAME_Frame(), GAME_GetCGameAPI(), GAME_GetCurrentSelectedMap(), GAME_GetCurrentTeam(), GAME_GetCurrentType(), GAME_GetNextUniqueCharacterNumber(), GAME_InitializeBattlescape(), GAME_LoadCharacter(), GAME_LoadDefaultTeam(), GAME_LoadGame(), GAME_LoadInventory(), GAME_LoadTeam_f(), GAME_NET_OOB_Printf2(), GAME_RemoveFromInventory(), GAME_SetMode(), GAME_SetNextUniqueCharacterNumber(), GAME_SetServerInfo(), GAME_Spawn(), GAME_SpawnSoldiers(), GAME_StartMatch(), GAME_SwitchCurrentSelectedMap(), GAME_UnloadGame(), HUD_DisplayActions(), HUD_Update(), IN_Frame(), IN_Parse(), IN_ToggleFullscreen(), INV_MoveItem(), INV_UnloadWeapon(), Key_Event(), Key_SetDest(), LE_CenterView(), LE_Cleanup(), LE_PlaceItem(), LE_Think(), LET_StartPathMove(), LM_AddToSceneOrder(), MSG_Write_PA(), R_EndFrame(), R_InitGraphics(), R_SetSDLIcon(), ResetInventoryList(), Rimp_Shutdown(), S_MumbleUpdate(), SCR_BeginLoadingPlaque(), SCR_DrawCursor(), SCR_DrawDownloading(), SCR_DrawLoading(), SCR_EndLoadingPlaque(), SCR_RunConsole(), SCR_TimeRefresh_f(), SCR_UpdateScreen(), SEQ_Render2D(), SEQ_Render3D(), SEQ_SetCamera(), ParticleTest::SetUpTestCase(), ScriptTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), CampaignTest::SetUpTestCase(), UI_ContainerNodeUpdateEquipment(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), UI_EnableFlashing(), UI_MapInfoGetNext(), UI_MaterialEditorStart_f(), UI_RadarNodeGetActorColor(), UI_SelectMap_f(), and VID_Minimize().
|
static |
Definition at line 84 of file cl_main.cpp.
Referenced by CL_Init(), and CL_Shutdown().
memPool_t* vid_genericPool |
also holds all the static models
Definition at line 87 of file cl_main.cpp.
Referenced by CIN_OGM_OpenCinematic(), CIN_ROQ_OpenCinematic(), R_SphereGenerate(), and VID_Init().
memPool_t* vid_imagePool |
Definition at line 88 of file cl_main.cpp.
Referenced by R_LoadImage(), R_LoadMaterials(), R_LoadShader(), R_PreprocessShaderR(), R_RenderToTexture(), R_ScreenShot(), R_SoftenTexture(), R_UploadData(), R_UploadTexture(), ParticleTest::SetUpTestCase(), UILevel2Test::SetUpTestCase(), ScriptTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), MapDefTest::SetUpTestCase(), CampaignTest::SetUpTestCase(), UI_MaterialEditorNewStage_f(), and VID_Init().
memPool_t* vid_lightPool |
lightmap - wiped with every new map
Definition at line 89 of file cl_main.cpp.
Referenced by R_BeginBuildingLightmaps(), R_BuildDefaultLightmap(), R_BuildLightmap(), R_ModLoadLighting(), R_ShutdownModels(), and VID_Init().
memPool_t* vid_modelPool |
modeldata - wiped with every new map
Definition at line 90 of file cl_main.cpp.
Referenced by R_CreateSurfaceFlare(), R_LoadActorSkinsFromModel(), R_LoadBspVertexArrays(), R_LoadObjModel(), R_LoadObjModelVertexArrays(), R_LoadObjSkin(), R_LoadSurfacesArrays_(), R_ModCalcUniqueNormalsAndTangents(), 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(), TEST_F(), and VID_Init().