|
UFO: Alien Invasion
|
Server initialisation stuff. More...
#include "server.h"#include "sv_rma.h"#include "../shared/parse.h"#include "../shared/scopedmutex.h"
Go to the source code of this file.
Functions | |
| static const char * | SV_GetMapTitle (const char *asmTitle, const char *const mapname) |
| Get the map title for a given map. | |
| static void | SV_DiscoveryCallback (struct datagram_socket *s, const char *buf, int len, struct sockaddr *from) |
| static void | SV_InitGame (void) |
| A brand new game has been started. | |
| void | SV_Map (bool day, const char *levelstring, const char *assembly, bool verbose) |
| Change the server to a new map, taking all connected clients along with it. | |
Variables | |
| serverInstanceStatic_t | svs |
| serverInstanceGame_t * | sv |
Server initialisation stuff.
Definition in file sv_init.cpp.
|
static |
Definition at line 64 of file sv_init.cpp.
References len, and NET_DatagramSend().
Referenced by SV_InitGame().
|
static |
Get the map title for a given map.
Definition at line 43 of file sv_init.cpp.
References Com_Printf().
Referenced by SV_Map().
A brand new game has been started.
Definition at line 76 of file sv_init.cpp.
References CVAR_LATCH, Cvar_UpdateLatchedVars(), Mem_PoolAllocTypeN, NET_DatagramSocketNew(), port, sv_dedicated, SV_DiscoveryCallback(), sv_genericPool, SV_Heartbeat_f(), SV_InitGameProgs(), sv_maxclients, sv_public, SV_ReadPacket(), SV_SetMaster_f(), SV_Start(), svs, and Sys_Error().
Referenced by SV_Map().
| void SV_Map | ( | bool | day, |
| const char * | levelstring, | ||
| const char * | assembly, | ||
| bool | verbose ) |
Change the server to a new map, taking all connected clients along with it.
Definition at line 113 of file sv_init.cpp.
References Cbuf_CopyToDefer(), cl, CM_InlineModel(), CM_LoadMap(), Com_DPrintf(), Com_GetScriptChecksum(), Com_Printf(), Com_SetServerState(), cs_connected, CS_ENTITYSTRING, CS_LIGHTMAP, CS_MAPCHECKSUM, CS_MAPTITLE, CS_MAPZONE, CS_NAME, CS_OBJECTAMOUNT, CS_POSITIONS, cs_spawning, CS_TILES, CS_UFOCHECKSUM, CS_VERSION, csi, Cvar_FullSet(), Cvar_GetString(), CVAR_NOSET, CVAR_SERVERINFO, DEBUG_SERVER, i, MAX_VAR, Q_strncpyz(), Q_strstart(), Q_strvalid, SCR_BeginLoadingPlaque(), ss_game, ss_loading, ss_restart, sv, SV_AssembleMapAndTitle(), SV_ClearWorld(), SV_GetConfigString(), SV_GetConfigStringInteger(), SV_GetMapTitle(), SV_GetNextClient(), SV_InitGame(), sv_mapname, SV_SetClientState(), SV_SetConfigString, svs, UFO_VERSION, and va().
Referenced by SV_Frame(), SV_Map_f(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), GameTest::testCountSpawnpointsForMapInMultiplayerMode(), and GameTest::testCountSpawnpointsForMapInSingleplayerMode().
server data per game/map
Definition at line 36 of file sv_init.cpp.
Referenced by Com_SetServerState(), GameTest::SetUp(), SV_AbortEvents(), SV_AddEvent(), SV_AreaEdicts(), SV_CanActorStandHere(), SV_CheckSpawnSoldiers(), SV_CheckStartMatch(), SV_ClearWorld(), SV_ClipMoveToEntities(), SV_CreateWorldSector(), SV_EndEvents(), SV_ExecuteClientMessage(), SV_Frame(), SV_FreeTags(), SV_GetConfigString(), SV_GetEvent(), SV_GetEventEdict(), SV_GetInlineModelAABB(), SV_GetMapData(), SV_GetMapTiles(), SV_GetServerDataForEdict(), SV_GetServerState(), SV_GetVisibility(), SV_GridCalcPathing(), SV_GridFall(), SV_GridFindPath(), SV_GridIsOnMap(), SV_GridPosToVec(), SV_HullForEntity(), SV_Init(), SV_InitGameProgs(), SV_LinkEdict(), SV_LoadModelAABB(), SV_Map(), SV_NextMapcycle(), SV_PointContents(), SV_QueueEvent(), SV_QueueWriteByte(), SV_QueueWritePos(), SV_QueueWriteShort(), SV_QueueWriteString(), SV_ReadAngle(), SV_ReadByte(), SV_ReadChar(), SV_ReadData(), SV_ReadDir(), SV_ReadFormat(), SV_ReadGPos(), SV_ReadLong(), SV_ReadPos(), SV_ReadShort(), SV_ReadString(), SV_RecalcRouting(), SV_RunGameFrame(), SV_RunGameFrameThread(), SV_SendQueuedEvents(), SV_SetConfigString(), SV_SetInlineModelOrientation(), SV_SetModel(), SV_SetServerState(), SV_Shutdown(), SV_ShutdownGameProgs(), SV_Status_f(), SV_TagAlloc(), SV_TestLine(), SV_TestLineWithEnt(), SV_Trace(), SV_WriteAngle(), SV_WriteByte(), SV_WriteChar(), SV_WriteDir(), SV_WriteFormat(), SV_WriteGPos(), SV_WriteLong(), SV_WritePos(), SV_WriteShort(), SV_WriteString(), SVC_DirectConnect(), SVC_Info(), TEST_F(), TEST_F(), and TexinfoForBrushTexture().
persistant server instance info
Definition at line 35 of file sv_init.cpp.
Referenced by Master_Heartbeat(), SV_Begin_f(), SV_CheckTimeouts(), SV_CountPlayers(), SV_DropClient(), SV_ExecuteClientMessage(), SV_ExecuteUserCommand(), SV_Frame(), SV_GetClient(), SV_GetGameAPI(), SV_GetNextClient(), SV_Heartbeat_f(), SV_Init(), SV_InitGame(), SV_InitGameProgs(), SV_Kick_f(), SV_KillServer_f(), SV_LinkEdict(), SV_Map(), SV_PingPlayers(), SV_RunGameFrame(), SV_RunGameFrameThread(), SV_ServerCommand_f(), SV_Shutdown(), SV_ShutdownGameProgs(), SV_ShutdownWhenEmpty(), SV_StartMatch_f(), SV_Status_f(), SV_UnloadGame(), SV_UserInfo_f(), SV_UserinfoChanged(), SVC_DirectConnect(), SVC_Status(), SVC_TeamInfo(), TEST_F(), and TEST_F().