|
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. | |
| 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_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. | |
| void | CL_Disconnect (void) |
Sets the cls.state to ca_disconnected and informs the server. | |
| static void | CL_ConnectionlessPacket (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 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. | |
| 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. | |
| bool | CL_ParseClientData (const char *type, const char *name, const char **text) |
| Called at client startup. | |
| static void | CL_ShowConfigstrings_f (void) |
| Print the configstrings to game console. | |
| 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. | |
| 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) |
| int | CL_GetClientState (void) |
| void | CL_SetClientState (connstate_t state) |
| Sets the client state. | |
| 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. | |
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 | |
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 550 of file cl_main.cpp.
References _, cl, CL_DownloadMap(), CL_GetConfigString(), CL_GetConfigStringInteger(), CL_PendingHTTPDownloads(), cls, 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, ERR_DISCONNECT, 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 cl, CL_ViewCalcFieldOfViewX(), LE_Cleanup(), r_numParticles, RDF_IRGOGGLES, and refdef.
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(), cls, Com_Printf(), Com_SetUserinfoModified(), Cvar_Userinfo(), MAX_INFO_STRING, NET_Connect(), NET_ConnectToLoopBack(), NET_OOB_Printf(), PROTOCOL_VERSION, 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 339 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, cls, Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Cmd_TokenizeString(), Com_DPrintf(), Com_Printf(), Com_sprintf(), Cvar_GetString(), Cvar_Set(), DEBUG_CLIENT, GAME_HandleServerCommand(), GAME_InitMissionBriefing(), i, NET_OOB_Printf(), NET_ReadString(), NET_ReadStringLine(), NET_STATE_NEW, NET_StreamIsLoopback(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), 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, 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 256 of file cl_main.cpp.
References ca_connecting, ca_disconnected, CL_ClearBattlescapeEvents(), CL_ClearState(), CL_SetClientState(), clc_stringcmd, cls, Com_Printf(), Com_ServerState(), GAME_EndBattlescape(), NET_STATE_DISCONNECT, NET_StreamFinished(), NET_Wait(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), R_FreeWorldImages(), R_ShutdownModels(), and S_Stop().
Referenced by CL_Drop(), CL_Quit_f(), CL_Reconnect(), GAME_GetImportData(), GAME_SetMode(), and cgame_import_t::void().
|
static |
Definition at line 529 of file cl_main.cpp.
References CL_CheckOrDownloadFile(), CL_DownloadUMPMap(), CL_GetConfigString(), CS_TILES, and va().
Referenced by CL_CanMultiplayerStart().
|
static |
Definition at line 498 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(), GAME_HandleResults(), and cgame_import_t::void().
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, cls, Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Com_Printf(), len, NET_WriteByte(), and NET_WriteMsg().
Referenced by CL_InitLocal().
Definition at line 1047 of file cl_main.cpp.
References ca_active, ca_connected, cl, CL_CameraMove(), CL_ParticleRun(), CL_ReadPackets(), CL_RunHTTPDownloads(), CL_SendCommand(), cls, data, GAME_Frame(), IN_Frame(), LE_Think(), S_Frame(), SCR_RunConsole(), SCR_UpdateScreen(), sys_affinity, Sys_Milliseconds(), sys_priority, and Sys_SetAffinityAndPriority().
Referenced by Qcommon_Init().
Definition at line 189 of file cl_main.cpp.
References cls, and Com_Printf().
Referenced by CL_Connect().
Definition at line 1007 of file cl_main.cpp.
References cls.
Referenced by GAME_GetImportData(), and cgame_import_t::int().
Definition at line 1141 of file cl_main.cpp.
References BASEDIRNAME, CIN_Init(), CL_ClearState(), CL_InitLocal(), CL_InitLua(), CL_InitMemPools(), CL_RContextCvarChange(), CL_RImagesCvarChange(), CL_ViewInit(), cls, Com_DPrintf(), Com_sprintf(), Con_Init(), Cvar_Get(), Cvar_GetFirst(), CVAR_R_CONTEXT, CVAR_R_IMAGES, Cvar_RegisterChangeListener(), DEBUG_CLIENT, FS_GetCwd(), fs_i18ndir, Irc_Init(), isdown, MAX_OSPATH, cvar_t::next, OBJZERO, Q_strncpyz(), S_Init(), SCR_DrawLoadingScreen(), SCR_Init(), 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 737 of file cl_main.cpp.
References CL_LanguageInit(), CL_ViewPrecacheModels(), CLMN_Init(), Com_MapDefSort(), csi, 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 854 of file cl_main.cpp.
References ACTOR_InitStartup(), ca_disconnected, CL_ActorTargetAlign_f(), CL_BattlescapeRadarInit(), CL_CameraInit(), cl_connecttimeout, CL_Env_f(), CL_ForwardToServer_f(), cl_fps, cl_le_debug, cl_leshowinvis, cl_log_battlescape_events, cl_map_debug, cl_msg, cl_name, CL_OpenURL_f(), CL_PRECACHE, CL_Precache_f(), CL_Quit_f(), cl_ready, cl_selected, CL_ServerEventsInit(), CL_SetClientState(), CL_SetRatioFilter_f(), CL_ShowConfigstrings_f(), CL_SPAWNSOLDIERS, CL_SpawnSoldiers_f(), CL_STARTMATCH, CL_StartMatch_f(), cl_teamnum, cl_trace_debug, CL_UserInfo_f(), cls, 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(), sv_maxclients, Sys_GetCurrentUser(), Sys_Milliseconds(), TEAM_InitStartup(), TOTD_InitStartup(), TUT_InitStartup(), UI_Init(), and WEB_InitStartup().
Referenced by CL_Init().
Definition at line 1122 of file cl_main.cpp.
References cl_genericPool, and Mem_CreatePool.
Referenced by CL_Init().
Definition at line 1207 of file cl_main.cpp.
References cls.
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(), cgame_import_t::int(), 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 838 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 702 of file cl_main.cpp.
References actorskin_vals, CL_AllocateActorSkin(), CL_GetActorSkinCount(), Com_Error(), Com_ParseBlock(), ERR_DROP, name, 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 770 of file cl_main.cpp.
References CL_ParseActorSkin(), CL_ParseLanguages(), CL_ParseParticle(), CL_ParseSequence(), CL_ParseTipOfTheDay(), GAME_ParseModes(), M_ParseMusic(), name, Q_streq, SCR_DrawLoadingScreen(), TUT_ParseTutorials(), type, 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 639 of file cl_main.cpp.
References CL_RequestNextDownload(), and cls.
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 1127 of file cl_main.cpp.
References _, data, and UI_DisplayNotice().
Referenced by CL_Init(), and CL_Shutdown().
Definition at line 446 of file cl_main.cpp.
References CL_ConnectionlessPacket(), CL_ParseServerMessage(), cls, NET_ReadByte(), NET_ReadMsg(), 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(), cls, and Com_Printf().
Referenced by CL_SlowFrame().
Definition at line 602 of file cl_main.cpp.
References ca_connected, cl, CL_CanMultiplayerStart(), CL_Milliseconds(), CL_ViewLoadMedia(), clc_stringcmd, cls, Com_Printf(), Com_ServerState(), NET_STATE_BEGIN, NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), S_MumbleLink(), SV_GetMapData(), and SV_GetMapTiles().
Referenced by CL_FinishHTTPDownload(), and CL_Precache_f().
|
static |
Definition at line 1132 of file cl_main.cpp.
References _, data, 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 943 of file cl_main.cpp.
References ca_connected, clc_userinfo, cls, Com_IsUserinfoModified(), Com_SetUserinfoModified(), Cvar_Userinfo(), MAX_INFO_STRING, NET_WriteByte(), NET_WriteMsg(), and NET_WriteString().
Referenced by CL_SendCommand().
Definition at line 962 of file cl_main.cpp.
References ca_connected, ca_connecting, ca_disconnected, Cbuf_Execute(), cl_connecttimeout, CL_Milliseconds(), CL_SendChangedUserinfos(), CL_SetClientState(), cls, Com_Error(), Com_ServerState(), Cvar_FixCheatVars(), ERR_DROP, GAME_IsMultiplayer(), IN_SendKeyEvents(), and SCR_DrawLoading().
Referenced by CL_Frame().
| void CL_SetClientState | ( | connstate_t | state | ) |
Sets the client state.
Definition at line 1015 of file cl_main.cpp.
References ca_active, ca_connected, ca_connecting, ca_disconnected, ca_uninitialized, CL_ClearState(), CL_Connect(), cls, Com_DPrintf(), Com_Error(), Cvar_Set(), DEBUG_CLIENT, and ERR_FATAL.
Referenced by CL_Disconnect(), CL_InitLocal(), CL_ParseServerData(), CL_Reconnect(), CL_SendCommand(), CL_StartGame(), GAME_GetImportData(), CampaignTest::SetUpTestCase(), and cgame_import_t::void().
Definition at line 646 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 816 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 1219 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_t::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 1108 of file cl_main.cpp.
References CL_LanguageTryToSet(), CL_Reconnect(), data, HUD_Update(), Irc_Logic_Frame(), and s_language.
Referenced by Qcommon_Init().
Send the clc_teaminfo command to server.
Definition at line 474 of file cl_main.cpp.
References cl, CL_OnBattlescape(), and GAME_SpawnSoldiers().
Referenced by CL_InitLocal().
Definition at line 486 of file cl_main.cpp.
References cl, and GAME_StartMatch().
Referenced by CL_InitLocal().
Prints the current userinfo string to the game console.
Definition at line 463 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, cls, Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Com_Printf(), NET_WriteByte(), and NET_WriteMsg().
Referenced by Cmd_ExecuteString(), and Cmd_vExecuteString().
Definition at line 719 of file cl_main.cpp.
References Q_StringSort().
Referenced by CL_InitAfter().
|
static |
valid actorskin descriptors
Definition at line 693 of file cl_main.cpp.
Referenced by CL_ParseActorSkin().
|
static |
Definition at line 75 of file cl_main.cpp.
Referenced by CL_InitLocal(), and CL_SendCommand().
| cvar_t* cl_fps |
Definition at line 71 of file cl_main.cpp.
Referenced by CL_InitLocal(), and 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_InitMemPools(), CL_ParseEvent(), CL_ParseLanguages(), CL_ParseSequence(), CL_ParseTipOfTheDay(), CL_ParticleAppear(), GAME_AllocInventoryMemory(), GAME_FreeAllInventory(), GAME_LoadTeam(), GAME_SaveTeam(), GAME_StrDup(), M_ParseMusic(), SEQ_ExecuteObj2D(), CampaignTest::SetUpTestCase(), EventsTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), ParticleTest::SetUpTestCase(), ScriptTest::SetUpTestCase(), and UI_DrawModelNode().
| cvar_t* cl_leshowinvis |
Definition at line 72 of file cl_main.cpp.
Referenced by CL_InitLocal().
|
static |
Definition at line 79 of file cl_main.cpp.
Referenced by CL_InitLocal().
|
static |
Definition at line 78 of file cl_main.cpp.
Referenced by CL_InitLocal().
|
static |
Definition at line 80 of file cl_main.cpp.
Referenced by CL_InitLocal().
| cvar_t* cl_selected |
Definition at line 73 of file cl_main.cpp.
Referenced by CL_ActorUpdate_f(), CL_ChangeSkin_f(), CL_InitLocal(), UI_ContainerNodeAutoPlace(), and UI_ContainerNodeAutoPlace().
| cvar_t* cl_teamnum |
Definition at line 81 of file cl_main.cpp.
Referenced by CL_InitLocal(), and 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_CanMultiplayerStart(), CL_CheckAndQueueDownload(), CL_Connect(), CL_ConnectionlessPacket(), CL_CountVisibleEnemies(), CL_Disconnect(), CL_DoEndRound(), CL_EntPerish(), CL_ExecuteBattlescapeEvent(), CL_FinishHTTPDownload(), CL_ForwardToServer_f(), CL_Frame(), CL_FreeClientStream(), CL_GenerateCharacter(), CL_GetActorSkinByIDS(), CL_GetActorSkinCount(), CL_GetClientState(), CL_GetFreeDLHandle(), CL_GetPlayerNum(), CL_HTTP_Cleanup(), CL_HTTP_Progress(), CL_Init(), CL_InitLocal(), CL_InvAdd(), CL_InvAmmo(), CL_InvDel(), CL_InvReload(), CL_Milliseconds(), CL_NextAlien_f(), CL_NextAlienVisibleFromActor_f(), CL_NextRound_f(), CL_OnBattlescape(), CL_ParseResults(), CL_ParseServerMessage(), CL_ParticleRun2(), CL_PendingHTTPDownloads(), CL_Precache_f(), CL_PrevAlien_f(), CL_QueueHTTPDownload(), CL_ReadPackets(), CL_Reconnect(), CL_RequestNextDownload(), CL_Reset(), CL_ReVerifyHTTPQueue(), CL_RunHTTPDownloads(), CL_SendChangedUserinfos(), CL_SendCommand(), CL_SetClientState(), CL_SetHTTPServer(), CL_SoundEvent(), CL_StartHTTPDownload(), CL_StartNextHTTPDownload(), CL_TargetingStraight(), CL_ViewPrecacheModels(), CL_ViewRender(), Cmd_ForwardToServer(), 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_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(), CampaignTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), ParticleTest::SetUpTestCase(), ScriptTest::SetUpTestCase(), UI_ContainerNodeUpdateEquipment(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), UI_EnableFlashing(), UI_MapInfo(), 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 main(), R_LoadImage(), R_LoadImageData(), R_LoadMaterials(), R_LoadShader(), R_PreprocessShaderR(), R_RenderToTexture(), R_ScreenShot(), R_SoftenTexture(), R_UploadData(), R_UploadTexture(), CampaignTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), ParticleTest::SetUpTestCase(), ScriptTest::SetUpTestCase(), UILevel2Test::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 LoadModel(), main(), 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(), TEST_F(), and VID_Init().