![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include <server.h>
qbool server_t::active |
false if only a net client
Definition at line 66 of file server.h.
Referenced by CL_BeginDownloads(), CL_KeepaliveMessage(), CL_ParseServerInfo(), CL_Startdemos_f(), Cvar_SetQuick_Internal(), FS_GameDir_f(), Host_Frame(), Host_Init(), M_GameOptions_Key(), M_Main_Key(), M_Menu_Main_f(), M_Menu_Save_f(), M_SinglePlayer_Key(), M_Transfusion_Skill_Key(), ModList_Enable(), Net_Heartbeat_f(), NetConn_ClientFrame(), NetConn_Heartbeat(), NetConn_IsLocalGame(), NetConn_ServerParsePacket(), NetConn_sv_netport_Callback(), PrintStats(), QW_CL_RequestNextDownload(), R_DrawDebugModel(), Sbar_ShowFPS(), SCR_DrawNetGraph(), SCR_SetUpToDrawConsole(), SV_Changelevel_f(), SV_DropClient(), SV_Frame(), SV_IsLocalServer(), SV_Kick_f(), SV_Loadgame_f(), SV_Map_f(), SV_MaxPlayers_f(), SV_Ping_f(), SV_Restart_f(), SV_SaveEntFile_f(), SV_Savegame_f(), SV_SendCvar_f(), SV_Shutdown(), SV_SpawnServer(), SV_Status_f(), SV_ThreadFunc(), SV_Viewframe_f(), SV_Viewmodel_f(), SV_Viewnext_f(), SV_Viewprev_f(), Sys_Error(), VM_bprint(), VM_changelevel(), VM_isserver(), VM_M_WriteDest(), and VM_sprint().
server_floodaddress_t server_t::connectfloodaddresses[MAX_CONNECTFLOODADDRESSES] |
connection flood blocking note this is in server_t rather than server_static_t so that it is reset on each map command (such as New Game in singleplayer)
Definition at line 140 of file server.h.
Referenced by NetConn_Close(), and NetConn_ServerParsePacket().
int server_t::csqc_progcrc |
Definition at line 101 of file server.h.
Referenced by SV_Prepare_CSQC(), and SV_SendServerinfo().
char server_t::csqc_progname[MAX_QPATH] |
Definition at line 103 of file server.h.
Referenced by SV_Download_f(), SV_Prepare_CSQC(), and SV_SendServerinfo().
int server_t::csqc_progsize |
Definition at line 102 of file server.h.
Referenced by SV_Download_f(), SV_Prepare_CSQC(), SV_SendClientDatagram(), and SV_SendServerinfo().
unsigned char server_t::csqcentityversion[MAX_EDICTS] |
legacy support for self.Version based csqc entity networking
Definition at line 168 of file server.h.
Referenced by SV_PrepareEntityForSending(), and SVVM_free_edict().
sizebuf_t server_t::datagram |
Definition at line 126 of file server.h.
Referenced by SV_FlushBroadcastMessages(), SV_SpawnServer(), SV_StartEffect(), SV_StartParticle(), SV_StartPointSound(), SV_StartSound(), VM_M_WriteDest(), VM_SV_pointparticles(), VM_SV_te_beam(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion(), VM_SV_te_explosion2(), VM_SV_te_explosionquad(), VM_SV_te_explosionrgb(), VM_SV_te_flamejet(), VM_SV_te_gunshot(), VM_SV_te_gunshotquad(), VM_SV_te_knightspike(), VM_SV_te_lavasplash(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_plasmaburn(), VM_SV_te_smallflash(), VM_SV_te_spark(), VM_SV_te_spike(), VM_SV_te_spikequad(), VM_SV_te_superspike(), VM_SV_te_superspikequad(), VM_SV_te_tarexplosion(), VM_SV_te_teleport(), VM_SV_te_wizspike(), VM_SV_trailparticles(), and WriteDest().
unsigned char server_t::datagram_buf[NET_MAXMESSAGE] |
Definition at line 127 of file server.h.
Referenced by SV_SpawnServer().
double server_t::frametime |
Definition at line 77 of file server.h.
Referenced by DropPunchAngle(), PRVM_GarbageCollection(), SV_Accelerate(), SV_AirAccelerate(), SV_ExecuteClientMoves(), SV_Frame(), SV_Gravity(), SV_Physics(), SV_Physics_ClientEntity(), SV_Physics_ClientEntity_NoThink(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientMove(), SV_Physics_Entity(), SV_Physics_Pusher(), SV_Physics_Step(), SV_Physics_Toss(), SV_ReadClientMove(), SV_RunThink(), SV_SpawnServer(), SV_ThreadFunc(), SV_UserFriction(), SV_WalkMove(), and SV_WaterMove().
server_floodaddress_t server_t::getstatusfloodaddresses[MAX_GETSTATUSFLOODADDRESSES] |
Definition at line 141 of file server.h.
Referenced by NetConn_ServerParsePacket().
int server_t::lastcheck |
Definition at line 97 of file server.h.
Referenced by VM_SV_checkclient().
double server_t::lastchecktime |
Definition at line 98 of file server.h.
Referenced by VM_SV_checkclient().
char server_t::lightstyles[MAX_LIGHTSTYLES][64] |
Definition at line 122 of file server.h.
Referenced by SV_Loadgame_f(), SV_Savegame_to(), SV_Spawn_f(), and VM_SV_lightstyle().
qbool server_t::loadgame |
handle connections specially
Definition at line 71 of file server.h.
Referenced by SV_Begin_f(), SV_ConnectClient(), SV_DropClient(), SV_Loadgame_f(), and SV_Spawn_f().
char server_t::model_precache[MAX_MODELS][MAX_QPATH] |
Definition at line 116 of file server.h.
Referenced by SV_Loadgame_f(), SV_ModelIndex(), SV_Savegame_to(), SV_SendServerinfo(), SV_SpawnServer(), VM_SV_modelnameforindex(), VM_SV_setmodel(), and VM_SV_setmodelindex().
struct model_s* server_t::models[MAX_MODELS] |
Definition at line 117 of file server.h.
Referenced by CL_BeginDownloads(), SV_GetModelByIndex(), SV_GetModelFromEdict(), SV_Loadgame_f(), SV_ModelIndex(), SV_PrepareEntityForSending(), and SV_SpawnServer().
int server_t::numsendentities |
Definition at line 159 of file server.h.
Referenced by SV_PrepareEntitiesForSending(), and SV_WriteEntitiesToClient().
char server_t::particleeffectname[MAX_PARTICLEEFFECTNAME][MAX_QPATH] |
Definition at line 144 of file server.h.
Referenced by SV_ParticleEffectIndex().
qbool server_t::particleeffectnamesloaded |
Definition at line 143 of file server.h.
Referenced by SV_ParticleEffectIndex().
qbool server_t::paused |
Definition at line 68 of file server.h.
Referenced by SV_Begin_f(), SV_DropClient(), SV_Frame(), SV_Loadgame_f(), SV_Pause_f(), SV_SpawnServer(), SV_ThreadFunc(), and VM_SV_setpause().
double server_t::pausedstart |
Definition at line 69 of file server.h.
Referenced by SV_Frame(), SV_ThreadFunc(), and VM_SV_setpause().
float server_t::perf_acc_lost |
Definition at line 90 of file server.h.
Referenced by SV_Frame(), and SV_ThreadFunc().
float server_t::perf_acc_offset |
Definition at line 91 of file server.h.
Referenced by SV_Frame(), and SV_ThreadFunc().
float server_t::perf_acc_offset_max |
Definition at line 93 of file server.h.
Referenced by SV_Frame(), and SV_ThreadFunc().
int server_t::perf_acc_offset_samples |
Definition at line 94 of file server.h.
Referenced by SV_Frame(), and SV_ThreadFunc().
float server_t::perf_acc_offset_squared |
Definition at line 92 of file server.h.
Referenced by SV_Frame(), and SV_ThreadFunc().
float server_t::perf_acc_realtime |
Definition at line 88 of file server.h.
Referenced by SV_Frame(), and SV_ThreadFunc().
float server_t::perf_acc_sleeptime |
Definition at line 89 of file server.h.
Referenced by SV_Frame(), and SV_ThreadFunc().
float server_t::perf_cpuload |
Definition at line 82 of file server.h.
Referenced by SV_Frame(), SV_ThreadFunc(), and SV_TimingReport().
float server_t::perf_lost |
Definition at line 83 of file server.h.
Referenced by SV_Frame(), SV_ThreadFunc(), and SV_TimingReport().
float server_t::perf_offset_avg |
Definition at line 84 of file server.h.
Referenced by SV_Frame(), SV_ThreadFunc(), and SV_TimingReport().
float server_t::perf_offset_max |
Definition at line 85 of file server.h.
Referenced by SV_Frame(), SV_ThreadFunc(), and SV_TimingReport().
float server_t::perf_offset_sdev |
Definition at line 86 of file server.h.
Referenced by SV_Frame(), SV_ThreadFunc(), and SV_TimingReport().
protocolversion_t server_t::protocol |
one of the PROTOCOL_ values
Definition at line 74 of file server.h.
Referenced by EntityFrame5_WriteFrame(), EntityFrameQuake_WriteFrame(), EntityState_WriteFields(), NetConn_ServerParsePacket(), PrintStats(), Protocol_WriteStatsReliable(), SV_CreateBaseline(), SV_DropClient(), SV_MarkWriteEntityStateToClient(), SV_ModelIndex(), SV_Pings_f(), SV_ReadClientMessage(), SV_ReadClientMove(), SV_SendClientDatagram(), SV_SendClientMessages(), SV_SendServerinfo(), SV_SoundIndex(), SV_Spawn_f(), SV_SpawnServer(), SV_StartEffect(), SV_StartParticle(), SV_StartPointSound(), SV_StartSound(), SV_Status_f(), SV_VM_Setup(), SV_WriteClientdataToMessage(), VM_M_WriteAngle(), VM_M_WriteCoord(), VM_SV_ambientsound(), VM_SV_makestatic(), VM_SV_pointparticles(), VM_SV_te_beam(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion(), VM_SV_te_explosion2(), VM_SV_te_explosionquad(), VM_SV_te_explosionrgb(), VM_SV_te_flamejet(), VM_SV_te_gunshot(), VM_SV_te_gunshotquad(), VM_SV_te_knightspike(), VM_SV_te_lavasplash(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_plasmaburn(), VM_SV_te_smallflash(), VM_SV_te_spark(), VM_SV_te_spike(), VM_SV_te_spikequad(), VM_SV_te_superspike(), VM_SV_te_superspikequad(), VM_SV_te_tarexplosion(), VM_SV_te_teleport(), VM_SV_te_wizspike(), VM_SV_trailparticles(), VM_SV_WriteAngle(), and VM_SV_WriteCoord().
sizebuf_t server_t::reliable_datagram |
Definition at line 130 of file server.h.
Referenced by Cvar_SetQuick_Internal(), SV_Color_f(), SV_DropClient(), SV_ModelIndex(), SV_Name(), SV_Pause_f(), SV_SoundIndex(), SV_SpawnServer(), SV_StartSound(), SV_UpdateToReliableMessages(), VM_M_WriteDest(), VM_SV_setcolor(), VM_SV_setpause(), and WriteDest().
unsigned char server_t::reliable_datagram_buf[NET_MAXMESSAGE] |
Definition at line 131 of file server.h.
Referenced by SV_SpawnServer().
entity_state_t server_t::sendentities[MAX_EDICTS] |
Definition at line 160 of file server.h.
Referenced by SV_PrepareEntitiesForSending(), and SV_WriteEntitiesToClient().
entity_state_t* server_t::sendentitiesindex[MAX_EDICTS] |
Definition at line 161 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_PrepareEntitiesForSending().
int server_t::sententities[MAX_EDICTS] |
Definition at line 164 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
int server_t::sententitiesconsideration[MAX_EDICTS] |
Definition at line 165 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient().
int server_t::sententitiesmark |
Definition at line 163 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
sizebuf_t server_t::signon |
Definition at line 133 of file server.h.
Referenced by SV_CreateBaseline(), SV_PreSpawn_f(), SV_SpawnServer(), VM_M_WriteDest(), VM_SV_ambientsound(), VM_SV_makestatic(), and WriteDest().
unsigned char server_t::signon_buf[NET_MAXMESSAGE] |
LadyHavoc: increased signon message buffer from 8192.
Definition at line 135 of file server.h.
Referenced by SV_SpawnServer().
char server_t::sound_precache[MAX_SOUNDS][MAX_QPATH] |
Definition at line 121 of file server.h.
Referenced by SV_Loadgame_f(), SV_Savegame_to(), SV_SendServerinfo(), SV_SoundIndex(), and SV_SpawnServer().
unsigned int server_t::spawnframe |
Definition at line 79 of file server.h.
Referenced by SV_Frame(), and SV_SpawnServer().
server_state_t server_t::state |
some actions are only valid during load
Definition at line 124 of file server.h.
Referenced by SV_ModelIndex(), SV_SoundIndex(), SV_SpawnServer(), and VM_SV_lightstyle().
double server_t::time |
Definition at line 76 of file server.h.
Referenced by EntityState5_WriteUpdate(), PRVM_ED_CallPostspawnFunction(), PRVM_ED_CallPrespawnFunction(), PRVM_ED_CallSpawnFunction(), SV_AirMove(), SV_CheckContentsTransition(), SV_Color_f(), SV_ConnectClient(), SV_DropClient(), SV_ExecuteClientMoves(), SV_Frame(), SV_GetEntityLocalTagMatrix(), SV_GetTagMatrix(), SV_Impact(), SV_Kill_f(), SV_LinkEdict(), SV_LinkEdict_TouchAreaGrid_Call(), SV_Loadgame_f(), SV_MarkWriteEntityStateToClient(), SV_Physics(), SV_Physics_ClientEntity(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), SV_Physics_Entity(), SV_Physics_Pusher(), SV_Physics_Step(), SV_PlayerPhysics(), SV_PushMove(), SV_ReadClientMessage(), SV_ReadClientMove(), SV_RunThink(), SV_Savegame_to(), SV_SaveSpawnparms(), SV_SendClientDatagram(), SV_SendServerinfo(), SV_Spawn_f(), SV_SpawnServer(), SV_ThreadFunc(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_VM_ConsoleCommand(), SV_VM_Shutdown(), SV_WaterJump(), VM_SV_checkclient(), VM_SV_gettaginfo(), and VM_SV_skel_build().
world_t server_t::world |
collision culling data
Definition at line 106 of file server.h.
Referenced by SV_AreaStats_f(), SV_EntitiesInBox(), SV_LinkEdict(), SV_Loadgame_f(), SV_Physics(), SV_SpawnServer(), SV_VM_ConsoleCommand(), SVVM_begin_increase_edicts(), SVVM_free_edict(), and SVVM_reset_cmd().
char server_t::worldbasename[MAX_QPATH] |
Definition at line 109 of file server.h.
Referenced by NetConn_BuildStatusResponse(), NetConn_ServerParsePacket(), SV_Restart_f(), SV_Savegame_to(), SV_SendServerinfo(), SV_SpawnServer(), and SV_Status_f().
struct model_s* server_t::worldmodel |
Definition at line 112 of file server.h.
Referenced by droptofloor_bsp_failcond(), PHYS_NudgeOutOfSolid(), PHYS_TestEntityPosition(), SV_CanSeeBox(), SV_MarkWriteEntityStateToClient(), SV_PointSuperContents(), SV_PrepareEntityForSending(), SV_SaveEntFile_f(), SV_SpawnServer(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_WriteEntitiesToClient(), VM_SV_checkclient(), VM_SV_checkpvs(), VM_SV_droptofloor(), VM_SV_getlight(), and VM_SV_newcheckclient().
char server_t::worldname[MAX_QPATH] |
Definition at line 110 of file server.h.
Referenced by SV_Loadgame_f(), SV_ModelIndex(), and SV_SpawnServer().
char server_t::worldnamenoextension[MAX_QPATH] |
Definition at line 111 of file server.h.
Referenced by SV_ParticleEffectIndex(), SV_SaveEntFile_f(), and SV_SpawnServer().
int server_t::writeentitiestoclient_cliententitynumber |
Definition at line 150 of file server.h.
Referenced by EntityFrameCSQC_WriteFrame(), SV_MarkWriteEntityStateToClient(), SV_PrepareEntityForSending(), and SV_WriteEntitiesToClient().
int server_t::writeentitiestoclient_clientnumber |
Definition at line 151 of file server.h.
Referenced by EntityFrameCSQC_WriteFrame(), SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
unsigned short server_t::writeentitiestoclient_csqcsendstates[MAX_EDICTS] |
Definition at line 157 of file server.h.
Referenced by SV_WriteEntitiesToClient().
vec3_t server_t::writeentitiestoclient_eyes[MAX_CLIENTNETWORKEYES] |
Definition at line 153 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
sizebuf_t* server_t::writeentitiestoclient_msg |
Definition at line 152 of file server.h.
Referenced by SV_WriteEntitiesToClient(), and WriteDest().
int server_t::writeentitiestoclient_numeyes |
Definition at line 154 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
unsigned char* server_t::writeentitiestoclient_pvs |
Definition at line 155 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
const entity_state_t* server_t::writeentitiestoclient_sendstates[MAX_EDICTS] |
Definition at line 156 of file server.h.
Referenced by SV_WriteEntitiesToClient().
int server_t::writeentitiestoclient_stats_culled_pvs |
Definition at line 146 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
int server_t::writeentitiestoclient_stats_culled_trace |
Definition at line 147 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
int server_t::writeentitiestoclient_stats_totalentities |
Definition at line 149 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().
int server_t::writeentitiestoclient_stats_visibleentities |
Definition at line 148 of file server.h.
Referenced by SV_MarkWriteEntityStateToClient(), and SV_WriteEntitiesToClient().