Go to the source code of this file.
Classes | |
struct | sizebuf_s |
struct | netadr_t |
struct | netchan_t |
Macros | |
#define | VERSION 3.21 |
#define | BASEDIRNAME "baseq2" |
#define | BUILDSTRING "NON-WIN32" |
#define | CPUSTRING "NON-WIN32" |
#define | PROTOCOL_VERSION 34 |
#define | PORT_MASTER 27900 |
#define | PORT_CLIENT 27901 |
#define | PORT_SERVER 27910 |
#define | UPDATE_BACKUP 16 |
#define | UPDATE_MASK (UPDATE_BACKUP-1) |
#define | PS_M_TYPE (1<<0) |
#define | PS_M_ORIGIN (1<<1) |
#define | PS_M_VELOCITY (1<<2) |
#define | PS_M_TIME (1<<3) |
#define | PS_M_FLAGS (1<<4) |
#define | PS_M_GRAVITY (1<<5) |
#define | PS_M_DELTA_ANGLES (1<<6) |
#define | PS_VIEWOFFSET (1<<7) |
#define | PS_VIEWANGLES (1<<8) |
#define | PS_KICKANGLES (1<<9) |
#define | PS_BLEND (1<<10) |
#define | PS_FOV (1<<11) |
#define | PS_WEAPONINDEX (1<<12) |
#define | PS_WEAPONFRAME (1<<13) |
#define | PS_RDFLAGS (1<<14) |
#define | CM_ANGLE1 (1<<0) |
#define | CM_ANGLE2 (1<<1) |
#define | CM_ANGLE3 (1<<2) |
#define | CM_FORWARD (1<<3) |
#define | CM_SIDE (1<<4) |
#define | CM_UP (1<<5) |
#define | CM_BUTTONS (1<<6) |
#define | CM_IMPULSE (1<<7) |
#define | SND_VOLUME (1<<0) |
#define | SND_ATTENUATION (1<<1) |
#define | SND_POS (1<<2) |
#define | SND_ENT (1<<3) |
#define | SND_OFFSET (1<<4) |
#define | DEFAULT_SOUND_PACKET_VOLUME 1.0 |
#define | DEFAULT_SOUND_PACKET_ATTENUATION 1.0 |
#define | U_ORIGIN1 (1<<0) |
#define | U_ORIGIN2 (1<<1) |
#define | U_ANGLE2 (1<<2) |
#define | U_ANGLE3 (1<<3) |
#define | U_FRAME8 (1<<4) |
#define | U_EVENT (1<<5) |
#define | U_REMOVE (1<<6) |
#define | U_MOREBITS1 (1<<7) |
#define | U_NUMBER16 (1<<8) |
#define | U_ORIGIN3 (1<<9) |
#define | U_ANGLE1 (1<<10) |
#define | U_MODEL (1<<11) |
#define | U_RENDERFX8 (1<<12) |
#define | U_EFFECTS8 (1<<14) |
#define | U_MOREBITS2 (1<<15) |
#define | U_SKIN8 (1<<16) |
#define | U_FRAME16 (1<<17) |
#define | U_RENDERFX16 (1<<18) |
#define | U_EFFECTS16 (1<<19) |
#define | U_MODEL2 (1<<20) |
#define | U_MODEL3 (1<<21) |
#define | U_MODEL4 (1<<22) |
#define | U_MOREBITS3 (1<<23) |
#define | U_OLDORIGIN (1<<24) |
#define | U_SKIN16 (1<<25) |
#define | U_SOUND (1<<26) |
#define | U_SOLID (1<<27) |
#define | EXEC_NOW 0 |
#define | EXEC_INSERT 1 |
#define | EXEC_APPEND 2 |
#define | PORT_ANY -1 |
#define | MAX_MSGLEN 1400 |
#define | PACKET_HEADER 10 |
#define | OLD_AVG 0.99 |
#define | MAX_LATENT 32 |
#define | ERR_FATAL 0 |
#define | ERR_DROP 1 |
#define | ERR_QUIT 2 |
#define | EXEC_NOW 0 |
#define | EXEC_INSERT 1 |
#define | EXEC_APPEND 2 |
#define | PRINT_ALL 0 |
#define | PRINT_DEVELOPER 1 |
#define | NUMVERTEXNORMALS 162 |
Typedefs | |
typedef struct sizebuf_s | sizebuf_t |
typedef void(* | xcommand_t) (void) |
Enumerations | |
enum | svc_ops_e { svc_bad, svc_muzzleflash, svc_muzzleflash2, svc_temp_entity, svc_layout, svc_inventory, svc_nop, svc_disconnect, svc_reconnect, svc_sound, svc_print, svc_stufftext, svc_serverdata, svc_configstring, svc_spawnbaseline, svc_centerprint, svc_download, svc_playerinfo, svc_packetentities, svc_deltapacketentities, svc_frame } |
enum | clc_ops_e { clc_bad, clc_nop, clc_move, clc_userinfo, clc_stringcmd } |
enum | netadrtype_t { NA_LOOPBACK, NA_BROADCAST, NA_IP, NA_IPX, NA_BROADCAST_IPX } |
enum | netsrc_t { NS_CLIENT, NS_SERVER } |
#define UPDATE_MASK (UPDATE_BACKUP-1) |
enum clc_ops_e |
enum netadrtype_t |
enum netsrc_t |
enum svc_ops_e |
Definition at line 220 of file qcommon.h.
float BigFloat | ( | float | l | ) |
Definition at line 949 of file q_shared.c.
Definition at line 947 of file q_shared.c.
short BigShort | ( | short | l | ) |
Definition at line 945 of file q_shared.c.
Referenced by CL_CheckForResend(), CL_Packet_f(), CL_PingServers_f(), CL_Rcon_f(), CL_SendConnectPacket(), and SV_SetMaster_f().
void Cbuf_AddText | ( | char * | text | ) |
Definition at line 90 of file cmd.c.
Referenced by Cbuf_AddEarlyCommands(), Cbuf_AddLateCommands(), Cbuf_ExecuteText(), Cbuf_InsertText(), CL_ConnectionlessPacket(), CL_ParseServerMessage(), Con_ToggleConsole_f(), ConsoleFunc(), ControlsResetDefaultsFunc(), FS_ExecAutoexec(), FS_SetGamedir(), JoinServerFunc(), Key_Console(), Key_Event(), Key_Message(), LoadGameCallback(), Qcommon_Frame(), Qcommon_Init(), SaveGameCallback(), StartGame(), StartServerActionFunc(), SV_InitGameProgs(), and SV_Nextserver().
Definition at line 194 of file cmd.c.
Referenced by CL_Init(), CL_ParseServerMessage(), CL_SendCommand(), ControlsResetDefaultsFunc(), Qcommon_Frame(), and Qcommon_Init().
Definition at line 78 of file cmd.c.
Referenced by Qcommon_Init().
Definition at line 159 of file cmd.c.
Referenced by SV_Begin_f().
void Cbuf_InsertText | ( | char * | text | ) |
Definition at line 114 of file cmd.c.
Referenced by Cbuf_ExecuteText(), Cbuf_InsertFromDefer(), Cmd_Exec_f(), Cmd_ExecuteString(), and Keys_MenuKey().
Definition at line 1831 of file cl_main.c.
Referenced by Com_Error(), Com_Quit(), Sys_Error(), and Sys_Quit().
Definition at line 1662 of file cmodel.c.
Referenced by PF_inPHS(), PF_inPVS(), SV_BuildClientFrame(), SV_InitGameProgs(), and SV_Multicast().
trace_t CM_BoxTrace | ( | vec3_t | start, |
vec3_t | end, | ||
vec3_t | mins, | ||
vec3_t | maxs, | ||
int | headnode, | ||
int | brushmask | ||
) |
Definition at line 1350 of file cmodel.c.
Referenced by CL_PMTrace(), CM_TransformedBoxTrace(), and SV_Trace().
Definition at line 1584 of file cmodel.c.
Referenced by PF_inPHS(), SV_BuildClientFrame(), and SV_Multicast().
Definition at line 1575 of file cmodel.c.
Referenced by PF_inPVS(), SV_FatPVS(), and SV_Multicast().
char* CM_EntityString | ( | void | ) |
Definition at line 662 of file cmodel.c.
Referenced by SV_SpawnServer().
Definition at line 775 of file cmodel.c.
Referenced by CL_ClipMoveToEntities(), and SV_HullForEntity().
Definition at line 1748 of file cmodel.c.
Referenced by CM_HeadnodeVisible(), and SV_BuildClientFrame().
cmodel_t* CM_InlineModel | ( | char * | name | ) |
Definition at line 639 of file cmodel.c.
Referenced by CL_ParseConfigString(), CL_PrepRefresh(), PF_setmodel(), and SV_SpawnServer().
Definition at line 681 of file cmodel.c.
Referenced by PF_inPHS(), PF_inPVS(), SV_BuildClientFrame(), SV_LinkEdict(), and SV_Multicast().
Definition at line 674 of file cmodel.c.
Referenced by PF_inPHS(), PF_inPVS(), SV_BuildClientFrame(), SV_FatPVS(), SV_LinkEdict(), and SV_Multicast().
Definition at line 548 of file cmodel.c.
Referenced by CL_Precache_f(), CL_RequestNextDownload(), and SV_SpawnServer().
Definition at line 652 of file cmodel.c.
Referenced by SV_FatPVS().
Definition at line 657 of file cmodel.c.
Referenced by SV_SpawnServer().
Definition at line 917 of file cmodel.c.
Referenced by CL_PMpointcontents(), and SV_PointContents().
Definition at line 826 of file cmodel.c.
Referenced by PF_inPHS(), PF_inPVS(), SV_BuildClientFrame(), and SV_Multicast().
void CM_ReadPortalState | ( | FILE * | f | ) |
Definition at line 1734 of file cmodel.c.
Referenced by SV_ReadLevelFile().
trace_t CM_TransformedBoxTrace | ( | vec3_t | start, |
vec3_t | end, | ||
vec3_t | mins, | ||
vec3_t | maxs, | ||
int | headnode, | ||
int | brushmask, | ||
vec3_t | origin, | ||
vec3_t | angles | ||
) |
Definition at line 1451 of file cmodel.c.
Referenced by CL_ClipMoveToEntities(), and SV_ClipMoveToEntities().
Definition at line 937 of file cmodel.c.
Referenced by CL_PMpointcontents(), and SV_PointContents().
void CM_WritePortalState | ( | FILE * | f | ) |
Definition at line 1721 of file cmodel.c.
Referenced by SV_WriteLevelFile().
void Cmd_AddCommand | ( | char * | cmd_name, |
xcommand_t | function | ||
) |
Definition at line 691 of file cmd.c.
Referenced by CDAudio_Init(), CL_InitInput(), CL_InitLocal(), Cmd_Init(), Con_Init(), Cvar_Init(), FS_InitFilesystem(), IN_Init(), Key_Init(), M_Init(), Miniaudio_Init(), Qcommon_Init(), S_Init(), SCR_Init(), SV_InitOperatorCommands(), V_Init(), VID_Init(), and VID_LoadRefresh().
Definition at line 507 of file cmd.c.
Referenced by CD_f(), CL_Connect_f(), CL_Download_f(), CL_ForwardToServer_f(), CL_Packet_f(), CL_Precache_f(), CL_Rcon_f(), CL_Record_f(), CL_Setenv_f(), Cmd_Alias_f(), Cmd_Echo_f(), Cmd_Exec_f(), Cmd_ExecuteString(), Cmd_ForwardToServer(), Con_Dump_f(), Cvar_Command(), Cvar_Set_f(), FS_Dir_f(), FS_Link_f(), Key_Bind_f(), Key_Unbind_f(), Miniaudio_f(), S_Play(), SCR_Sky_f(), SCR_TimeRefresh_f(), SV_BeginDownload_f(), SV_ConSay_f(), SV_DumpUser_f(), SV_GameMap_f(), SV_InitGameProgs(), SV_Kick_f(), SV_Loadgame_f(), SV_Savegame_f(), SV_ServerRecord_f(), SV_SetMaster_f(), SV_SetPlayer(), SVC_RemoteCommand(), V_Gun_Model_f(), and VID_LoadRefresh().
char* Cmd_Args | ( | void | ) |
Definition at line 531 of file cmd.c.
Referenced by CL_ForwardToServer_f(), Cmd_ForwardToServer(), SV_ConSay_f(), and SV_InitGameProgs().
char* Cmd_Argv | ( | int | arg | ) |
Definition at line 517 of file cmd.c.
Referenced by CD_f(), CL_Connect_f(), CL_ConnectionlessPacket(), CL_Download_f(), CL_ForwardToServer_f(), CL_Packet_f(), CL_Precache_f(), CL_Rcon_f(), CL_Record_f(), CL_Setenv_f(), Cmd_Alias_f(), Cmd_Echo_f(), Cmd_Exec_f(), Cmd_ForwardToServer(), Com_Error_f(), Con_Dump_f(), Cvar_Command(), Cvar_Set_f(), FS_Dir_f(), FS_Link_f(), IN_Impulse(), Key_Bind_f(), Key_Unbind_f(), KeyDown(), KeyUp(), Miniaudio_f(), Rcon_Validate(), S_Play(), SCR_Sky_f(), SV_Baselines_f(), SV_Begin_f(), SV_BeginDownload_f(), SV_Configstrings_f(), SV_ConnectionlessPacket(), SV_DemoMap_f(), SV_ExecuteUserCommand(), SV_GameMap_f(), SV_InitGameProgs(), SV_Loadgame_f(), SV_Map_f(), SV_Nextserver_f(), SV_Savegame_f(), SV_ServerRecord_f(), SV_SetMaster_f(), SV_SetPlayer(), SVC_DirectConnect(), SVC_Info(), SVC_RemoteCommand(), V_Gun_Model_f(), and VID_LoadRefresh().
char* Cmd_CompleteCommand | ( | char * | partial | ) |
void Cmd_ExecuteString | ( | char * | text | ) |
Definition at line 811 of file cmd.c.
Referenced by Cbuf_Execute(), Cbuf_ExecuteText(), Cmd_ExecuteString(), and SVC_RemoteCommand().
void Cmd_RemoveCommand | ( | char * | cmd_name | ) |
Definition at line 724 of file cmd.c.
Referenced by Miniaudio_Shutdown(), S_Shutdown(), and VID_LoadRefresh().
Definition at line 620 of file cmd.c.
Referenced by CL_ConnectionlessPacket(), Cmd_ExecuteString(), SV_ConnectionlessPacket(), and SV_ExecuteUserCommand().
void COM_AddParm | ( | char * | parm | ) |
Definition at line 968 of file common.c.
Referenced by Cbuf_AddEarlyCommands(), and Cbuf_AddLateCommands().
char* COM_Argv | ( | int | arg | ) |
Definition at line 973 of file common.c.
Referenced by Cbuf_AddEarlyCommands(), and Cbuf_AddLateCommands().
Definition at line 213 of file md4.c.
Referenced by CM_LoadMap(), COM_BlockSequenceCheckByte(), and FS_LoadPackFile().
Definition at line 1338 of file common.c.
Referenced by CL_SendCmd(), and SV_ExecuteClientMessage().
int COM_CheckParm | ( | char * | parm | ) |
void Com_DPrintf | ( | char * | fmt, |
... | |||
) |
Definition at line 157 of file common.c.
Referenced by CDAudio_CloseDoor(), CDAudio_Eject(), CDAudio_GetAudioDiskInfo(), CDAudio_MessageHandler(), CDAudio_Pause(), CDAudio_Play2(), CDAudio_Resume(), CDAudio_Shutdown(), CDAudio_Stop(), CL_ParseServerData(), CL_ParseServerMessage(), CL_ReadPackets(), CM_DecompressVis(), CopyFile(), DS_CreateBuffers(), DS_DestroyBuffers(), FreeSound(), FS_FOpenFile(), NET_SendPacket(), PM_InitialSnapPosition(), S_LoadSound(), S_Update_(), SNDDMA_InitDirect(), SNDDMA_InitWav(), SNDDMA_Submit(), SV_Baselines_f(), SV_Begin_f(), SV_BeginDownload_f(), SV_BuildClientFrame(), SV_ClientThink(), SV_Configstrings_f(), SV_ConnectionlessPacket(), SV_CopySaveGame(), SV_ExecuteClientMessage(), SV_GameMap_f(), SV_LinkEdict(), SV_New_f(), SV_Nextserver_f(), SV_ReadLevelFile(), SV_ReadServerFile(), SV_ServerRecord_f(), SV_SpawnServer(), SV_WipeSavegame(), SV_WriteLevelFile(), SV_WriteServerFile(), SVC_DirectConnect(), Sys_GetGameAPI(), and VID_Printf().
Definition at line 181 of file common.c.
Referenced by CalcFov(), Cbuf_ExecuteText(), CL_Disconnect_f(), CL_GetEntitySoundOrigin(), CL_ParseConfigString(), CL_ParseFrame(), CL_ParseMuzzleFlash(), CL_ParseMuzzleFlash2(), CL_ParsePacketEntities(), CL_ParseServerData(), CL_ParseServerMessage(), CL_ParseStartSoundPacket(), CL_ParseTEnt(), CL_RequestNextDownload(), CL_SetLightstyle(), CM_AreasConnected(), CM_InitBoxHull(), CM_InlineModel(), CM_LeafArea(), CM_LeafCluster(), CM_LeafContents(), CM_LoadMap(), CM_SetAreaPortalState(), CMod_LoadAreaPortals(), CMod_LoadAreas(), CMod_LoadBrushes(), CMod_LoadBrushSides(), CMod_LoadEntityString(), CMod_LoadLeafBrushes(), CMod_LoadLeafs(), CMod_LoadNodes(), CMod_LoadPlanes(), CMod_LoadSubmodels(), CMod_LoadSurfaces(), CMod_LoadVisibility(), COM_AddParm(), Com_Error_f(), COM_InitArgv(), FloodArea_r(), FS_FOpenFile(), FS_LoadPackFile(), FS_Read(), GetWavinfo(), Key_Event(), M_PopMenu(), M_PushMenu(), MSG_ReadDir(), MSG_WriteByte(), MSG_WriteChar(), MSG_WriteDeltaEntity(), MSG_WriteShort(), NET_GetPacket(), NET_Init(), NET_OpenIP(), NET_SendPacket(), PF_Configstring(), PF_cprintf(), PF_error(), PF_setmodel(), S_AliasName(), S_FindName(), S_PickChannel(), SCR_ExecuteLayoutString(), SCR_ReadNextFrame(), StartServer_MenuInit(), SV_BeginDemoserver(), SV_FatPVS(), SV_FindIndex(), SV_HullForEntity(), SV_InitGameProgs(), SV_Multicast(), SV_SendClientMessages(), SV_StartSound(), Sys_CopyProtect(), Sys_GetGameAPI(), Sys_UnloadGame(), SZ_GetSpace(), V_AddLightStyle(), VID_CheckChanges(), VID_Error(), VID_FreeReflib(), VID_LoadRefresh(), Z_Free(), and Z_TagMalloc().
Definition at line 235 of file common.c.
Referenced by CL_Quit_f(), MainWndProc(), Qcommon_Init(), and WinMain().
Definition at line 256 of file common.c.
Referenced by CL_CheckForResend(), CL_Connect_f(), CL_ParseServerData(), CL_Pause_f(), Con_ToggleConsole_f(), Cvar_Set2(), M_Menu_SaveGame_f(), M_PushMenu(), and StartServerActionFunc().
Definition at line 266 of file common.c.
Referenced by SV_Shutdown(), and SV_SpawnServer().
void Con_Print | ( | char * | text | ) |
char* CopyString | ( | char * | in | ) |
Definition at line 1038 of file common.c.
Referenced by Cmd_Alias_f(), Cvar_FullSet(), Cvar_Get(), Cvar_Set2(), and FS_Link_f().
float crand | ( | void | ) |
Definition at line 1380 of file common.c.
Referenced by CL_BlasterParticles(), CL_BlasterParticles2(), CL_BlasterTrail(), CL_BlasterTrail2(), CL_BubbleTrail(), CL_BubbleTrail2(), CL_DiminishingTrail(), CL_FlagTrail(), CL_FlameEffects(), CL_ForceWall(), CL_GenericParticleEffect(), CL_ItemRespawnParticles(), CL_LogoutEffect(), CL_MonsterPlasma_Shell(), CL_Nukeblast(), CL_ParticleEffect(), CL_ParticleEffect2(), CL_ParticleEffect3(), CL_ParticleSmokeEffect(), CL_ParticleSteamEffect(), CL_ParticleSteamEffect2(), CL_QuadTrail(), CL_RailTrail(), CL_RocketTrail(), CL_SmokeTrail(), CL_TagTrail(), CL_TeleporterParticles(), CL_Tracker_Explode(), CL_Tracker_Shell(), CL_TrapParticles(), CL_Widowbeamout(), and CL_WidowSplash().
void CRC_Init | ( | unsigned short * | crcvalue | ) |
Definition at line 67 of file crc.c.
Referenced by CRC_Block().
unsigned short CRC_Value | ( | unsigned short | crcvalue | ) |
char* Cvar_CompleteVariable | ( | char * | partial | ) |
cvar_t* Cvar_ForceSet | ( | char * | var_name, |
char * | value | ||
) |
Definition at line 268 of file cvar.c.
Referenced by EasyGameFunc(), HardGameFunc(), MediumGameFunc(), SV_InitGameProgs(), and SV_ReadServerFile().
Definition at line 288 of file cvar.c.
Referenced by Cvar_Set_f(), FS_SetGamedir(), SV_InitGame(), and SV_SpawnServer().
Definition at line 127 of file cvar.c.
Referenced by AddressBook_MenuInit(), CDAudio_Init(), CL_FixCvarCheats(), CL_InitInput(), CL_InitLocal(), CL_PingServers_f(), CM_LoadMap(), Con_Init(), Cvar_FullSet(), Cvar_Set2(), FS_InitFilesystem(), IN_Init(), IN_StartupJoystick(), IN_StartupMouse(), Miniaudio_Init(), NET_Init(), NET_OpenIP(), NET_OpenIPX(), Netchan_Init(), Options_MenuInit(), PlayerConfig_MenuInit(), Qcommon_Init(), S_Init(), SCR_Init(), SNDDMA_Init(), SV_Init(), SV_InitGameProgs(), V_Init(), VID_Init(), VID_LoadRefresh(), and VID_MenuInit().
char* Cvar_Serverinfo | ( | void | ) |
Definition at line 510 of file cvar.c.
Referenced by SV_Serverinfo_f(), SV_ShowServerinfo_f(), and SV_StatusString().
cvar_t* Cvar_Set | ( | char * | var_name, |
char * | value | ||
) |
Definition at line 278 of file cvar.c.
Referenced by AddressBook_MenuKey(), ApplyChanges(), CL_FixCvarCheats(), CL_FixUpGender(), CL_ParseServerData(), Con_ToggleConsole_f(), Cvar_Command(), Cvar_Set_f(), Cvar_SetValue(), Key_Event(), M_ForceMenuOff(), M_PushMenu(), PlayerConfig_MenuKey(), SCR_CalcVrect(), StartServerActionFunc(), SV_InitGameProgs(), SV_Map(), SV_Nextserver(), SV_SetMaster_f(), SV_SpawnServer(), VID_CheckChanges(), VID_LoadRefresh(), and VID_NewWindow().
void Cvar_SetValue | ( | char * | var_name, |
float | value | ||
) |
Definition at line 317 of file cvar.c.
Referenced by AlwaysRunFunc(), ApplyChanges(), BrightnessCallback(), CL_Pause_f(), ControlsSetMenuItemValues(), CrosshairFunc(), DMFlagCallback(), DownloadCallback(), FreeLookFunc(), HandednessCallback(), InvertMouseFunc(), JoystickFunc(), LookspringFunc(), LookstrafeFunc(), MainWndProc(), MouseSpeedFunc(), NoAltTabFunc(), PlayerConfig_MenuInit(), RateCallback(), SCR_PlayCinematic(), SCR_SizeDown_f(), SCR_SizeUp_f(), SCR_UpdateScreen(), ScreenSizeCallback(), StartGame(), StartServerActionFunc(), UpdateCDVolumeFunc(), UpdateSoundQualityFunc(), UpdateVolumeFunc(), and VID_LoadRefresh().
char* Cvar_Userinfo | ( | void | ) |
Definition at line 504 of file cvar.c.
Referenced by CL_SendCmd(), CL_SendConnectPacket(), and CL_Userinfo_f().
char* Cvar_VariableString | ( | char * | var_name | ) |
Definition at line 79 of file cvar.c.
Referenced by CL_PingServers_f(), Cmd_AddCommand(), Cmd_MacroExpandString(), FS_ExecAutoexec(), StartServer_MenuInit(), SV_New_f(), SV_Nextserver(), and SV_ServerRecord_f().
float Cvar_VariableValue | ( | char * | var_name | ) |
Definition at line 63 of file cvar.c.
Referenced by CDAudio_Play2(), CL_Pause_f(), CL_SendConnectPacket(), CM_LoadMap(), Con_ToggleConsole_f(), ControlsSetMenuItemValues(), DMFlagCallback(), DMOptions_MenuInit(), DownloadOptions_MenuInit(), IN_Frame(), M_PushMenu(), Miniaudio_Init(), Miniaudio_Play(), NET_OpenIP(), NET_OpenIPX(), Options_MenuInit(), PlayerConfig_MenuInit(), SCR_PlayCinematic(), StartServer_MenuInit(), SV_CheckForSavegame(), SV_InitGame(), SV_Map(), SV_Nextserver(), SV_Savegame_f(), and SV_SpawnServer().
void Cvar_WriteVariables | ( | char * | path | ) |
float frand | ( | void | ) |
Definition at line 1375 of file common.c.
Referenced by CL_BFGExplosionParticles(), CL_BigTeleportParticles(), CL_BlasterParticles(), CL_BlasterParticles2(), CL_BlasterTrail(), CL_BlasterTrail2(), CL_BubbleTrail(), CL_BubbleTrail2(), CL_ColorExplosionParticles(), CL_DiminishingTrail(), CL_ExplosionParticles(), CL_FlagTrail(), CL_FlameEffects(), CL_ForceWall(), CL_GenericParticleEffect(), CL_IonripperTrail(), CL_ItemRespawnParticles(), CL_LogoutEffect(), CL_ParseTEnt(), CL_ParticleEffect(), CL_ParticleEffect2(), CL_ParticleEffect3(), CL_ParticleSmokeEffect(), CL_ParticleSteamEffect(), CL_ParticleSteamEffect2(), CL_QuadTrail(), CL_RailTrail(), CL_RocketTrail(), CL_SmokeTrail(), CL_TagTrail(), CL_TrapParticles(), and CL_WidowSplash().
void FS_CreatePath | ( | char * | path | ) |
Definition at line 125 of file files.c.
Referenced by CL_ParseDownload(), CL_Record_f(), Con_Dump_f(), SV_CopySaveGame(), SV_GameMap_f(), and SV_ServerRecord_f().
Definition at line 572 of file files.c.
Referenced by CL_Init(), Cvar_GetLatchedVars(), and Cvar_Set2().
void FS_FCloseFile | ( | FILE * | f | ) |
Definition at line 149 of file files.c.
Referenced by S_RegisterSexedSound().
int FS_FOpenFile | ( | char * | filename, |
FILE ** | file | ||
) |
Definition at line 206 of file files.c.
Referenced by FS_LoadFile(), S_RegisterSexedSound(), SCR_PlayCinematic(), and SV_BeginDemoserver().
Definition at line 437 of file files.c.
Referenced by CL_RequestNextDownload(), CM_LoadMap(), Cmd_Exec_f(), M_Credits_Key(), S_LoadSound(), SCR_LoadPCX(), StartServer_MenuInit(), SV_BeginDownload_f(), SV_DropClient(), SV_NextDownload_f(), and VID_LoadRefresh().
char* FS_Gamedir | ( | void | ) |
Definition at line 559 of file files.c.
Referenced by CL_DownloadFileName(), CL_Record_f(), CL_WriteConfiguration(), Com_Printf(), Con_Dump_f(), Create_Savestrings(), Miniaudio_Play(), StartServer_MenuInit(), SV_CheckForSavegame(), SV_CopySaveGame(), SV_GameMap_f(), SV_Loadgame_f(), SV_ReadLevelFile(), SV_ReadServerFile(), SV_ServerRecord_f(), SV_WipeSavegame(), SV_WriteLevelFile(), SV_WriteServerFile(), and VID_LoadRefresh().
Definition at line 398 of file files.c.
Referenced by CL_CheckOrDownloadFile(), CL_Download_f(), CL_RequestNextDownload(), CM_LoadMap(), Cmd_Exec_f(), M_Menu_Credits_f(), S_LoadSound(), SCR_LoadPCX(), StartServer_MenuInit(), SV_BeginDownload_f(), SV_Map_f(), and VID_LoadRefresh().
char* FS_NextPath | ( | char * | prevpath | ) |
Definition at line 821 of file files.c.
Referenced by FS_Dir_f(), PlayerConfig_ScanDirectories(), and Sys_GetGameAPI().
Definition at line 350 of file files.c.
Referenced by CM_ReadPortalState(), Create_Savestrings(), FS_LoadFile(), Huff1TableInit(), SCR_PlayCinematic(), SCR_ReadNextFrame(), SV_ReadLevelFile(), and SV_ReadServerFile().
void FS_SetGamedir | ( | char * | dir | ) |
Definition at line 595 of file files.c.
Referenced by Cvar_GetLatchedVars(), Cvar_Set2(), and FS_InitFilesystem().
void Info_Print | ( | char * | s | ) |
Definition at line 1049 of file common.c.
Referenced by CL_Userinfo_f(), SV_DumpUser_f(), SV_Serverinfo_f(), and SV_ShowServerinfo_f().
float LittleFloat | ( | float | l | ) |
Definition at line 950 of file q_shared.c.
Referenced by CMod_LoadPlanes(), CMod_LoadSubmodels(), COM_BlockSequenceCheckByte(), Mod_LoadAliasModel(), Mod_LoadPlanes(), Mod_LoadSubmodels(), Mod_LoadTexinfo(), and Mod_LoadVertexes().
Definition at line 948 of file q_shared.c.
Referenced by CL_Record_f(), CL_RequestNextDownload(), CL_WriteDemoMessage(), CM_LoadMap(), CMod_LoadAreaPortals(), CMod_LoadAreas(), CMod_LoadBrushes(), CMod_LoadLeafs(), CMod_LoadNodes(), CMod_LoadPlanes(), CMod_LoadSubmodels(), CMod_LoadSurfaces(), CMod_LoadVisibility(), COM_BlockSequenceCheckByte(), Draw_GetPalette(), FS_LoadPackFile(), GL_LoadWal(), Mod_ForName(), Mod_LoadAliasModel(), Mod_LoadBrushModel(), Mod_LoadFaces(), Mod_LoadLeafs(), Mod_LoadNodes(), Mod_LoadPlanes(), Mod_LoadSpriteModel(), Mod_LoadSubmodels(), Mod_LoadSurfedges(), Mod_LoadTexinfo(), Mod_LoadVisibility(), MSG_ReadFloat(), MSG_WriteFloat(), R_LoadWal(), SCR_PlayCinematic(), SCR_ReadNextFrame(), SV_RecordDemoMessage(), SV_SendClientMessages(), SV_ServerRecord_f(), and Vk_LoadWal().
short LittleShort | ( | short | l | ) |
Definition at line 946 of file q_shared.c.
Referenced by CMod_LoadBrushSides(), CMod_LoadLeafBrushes(), CMod_LoadLeafs(), LoadPCX(), LoadTGA(), Mod_LoadAliasModel(), Mod_LoadEdges(), Mod_LoadFaces(), Mod_LoadLeafs(), Mod_LoadMarksurfaces(), Mod_LoadNodes(), ResampleSfx(), S_RawSamples(), and WritePCXfile().
Definition at line 684 of file common.c.
Referenced by CL_ConnectionlessPacket(), Netchan_Process(), SV_ConnectionlessPacket(), and SV_ReadPackets().
float MSG_ReadAngle | ( | sizebuf_t * | sb | ) |
Definition at line 825 of file common.c.
Referenced by CL_ParseDelta().
float MSG_ReadAngle16 | ( | sizebuf_t * | sb | ) |
Definition at line 830 of file common.c.
Referenced by CL_ParsePlayerstate().
Definition at line 703 of file common.c.
Referenced by CL_ParseDelta(), CL_ParseDownload(), CL_ParseEntityBits(), CL_ParseFrame(), CL_ParseMuzzleFlash(), CL_ParseMuzzleFlash2(), CL_ParseParticles(), CL_ParsePlayerstate(), CL_ParseServerData(), CL_ParseServerMessage(), CL_ParseStartSoundPacket(), CL_ParseSteam(), CL_ParseTEnt(), MSG_ReadData(), MSG_ReadDeltaUsercmd(), MSG_ReadDir(), and SV_ExecuteClientMessage().
Definition at line 690 of file common.c.
Referenced by CL_ParsePlayerstate(), MSG_ReadAngle(), MSG_ReadString(), and MSG_ReadStringLine().
float MSG_ReadCoord | ( | sizebuf_t * | sb | ) |
Definition at line 813 of file common.c.
Referenced by CL_ParseDelta().
Definition at line 464 of file common.c.
Referenced by CL_ParseParticles(), CL_ParseSteam(), and CL_ParseTEnt().
Definition at line 731 of file common.c.
Referenced by CL_ConnectionlessPacket(), CL_ParseDelta(), CL_ParseFrame(), CL_ParsePlayerstate(), CL_ParseServerData(), CL_ParseSteam(), Netchan_Process(), SV_ConnectionlessPacket(), SV_ExecuteClientMessage(), and SV_ReadPackets().
Definition at line 818 of file common.c.
Referenced by CL_ParseBeam(), CL_ParseBeam2(), CL_ParseDelta(), CL_ParseLaser(), CL_ParseLightning(), CL_ParseNuke(), CL_ParseParticles(), CL_ParsePlayerBeam(), CL_ParseStartSoundPacket(), CL_ParseSteam(), CL_ParseTEnt(), and CL_ParseWidow().
Definition at line 716 of file common.c.
Referenced by CL_ParseBeam(), CL_ParseBeam2(), CL_ParseConfigString(), CL_ParseDelta(), CL_ParseDownload(), CL_ParseEntityBits(), CL_ParseInventory(), CL_ParseLightning(), CL_ParseMuzzleFlash(), CL_ParseMuzzleFlash2(), CL_ParsePlayerBeam(), CL_ParsePlayerstate(), CL_ParseServerData(), CL_ParseStartSoundPacket(), CL_ParseSteam(), CL_ParseTEnt(), CL_ParseWidow(), MSG_ReadAngle16(), MSG_ReadCoord(), MSG_ReadDeltaUsercmd(), MSG_ReadPos(), Netchan_Process(), and SV_ReadPackets().
char* MSG_ReadString | ( | sizebuf_t * | sb | ) |
Definition at line 773 of file common.c.
Referenced by CL_ConnectionlessPacket(), CL_ParseConfigString(), CL_ParseServerData(), CL_ParseServerMessage(), CL_ParseStatusMessage(), and SV_ExecuteClientMessage().
char* MSG_ReadStringLine | ( | sizebuf_t * | sb | ) |
Definition at line 793 of file common.c.
Referenced by CL_ConnectionlessPacket(), and SV_ConnectionlessPacket().
Definition at line 376 of file common.c.
Referenced by MSG_WriteDeltaEntity(), and PF_WriteAngle().
Definition at line 381 of file common.c.
Referenced by SV_WritePlayerstateToClient().
Definition at line 303 of file common.c.
Referenced by CL_CheckOrDownloadFile(), CL_Download_f(), CL_ForwardToServer_f(), CL_ParseDownload(), CL_Record_f(), CL_RequestNextDownload(), CL_SendCmd(), Cmd_ForwardToServer(), MSG_WriteAngle(), MSG_WriteDeltaEntity(), MSG_WriteDeltaUsercmd(), MSG_WriteDir(), PF_centerprintf(), PF_WriteByte(), SCR_FinishCinematic(), SV_Baselines_f(), SV_BeginDownload_f(), SV_BroadcastCommand(), SV_BroadcastPrintf(), SV_ClientPrintf(), SV_Configstrings_f(), SV_DropClient(), SV_EmitPacketEntities(), SV_FinalMessage(), SV_FlushRedirect(), SV_New_f(), SV_NextDownload_f(), SV_RecordDemoMessage(), SV_ServerRecord_f(), SV_StartSound(), SV_WriteFrameToClient(), and SV_WritePlayerstateToClient().
Definition at line 290 of file common.c.
Referenced by CL_ConnectionlessPacket(), CL_Reconnect_f(), PF_Configstring(), PF_WriteChar(), SV_FindIndex(), and SV_WritePlayerstateToClient().
Definition at line 364 of file common.c.
Referenced by MSG_WriteDeltaEntity().
void MSG_WriteDeltaEntity | ( | struct entity_state_s * | from, |
struct entity_state_s * | to, | ||
sizebuf_t * | msg, | ||
qboolean | force, | ||
qboolean | newentity | ||
) |
Definition at line 483 of file common.c.
Referenced by CL_Record_f(), SV_Baselines_f(), SV_EmitPacketEntities(), and SV_RecordDemoMessage().
Definition at line 330 of file common.c.
Referenced by CL_Record_f(), CL_SendCmd(), MSG_WriteDeltaEntity(), Netchan_OutOfBand(), Netchan_Transmit(), PF_WriteLong(), SV_New_f(), SV_RecordDemoMessage(), SV_ServerRecord_f(), SV_WriteFrameToClient(), and SV_WritePlayerstateToClient().
Definition at line 316 of file common.c.
Referenced by CL_Record_f(), MSG_WriteAngle16(), MSG_WriteCoord(), MSG_WriteDeltaEntity(), MSG_WriteDeltaUsercmd(), MSG_WritePos(), Netchan_Transmit(), PF_Configstring(), PF_WriteShort(), SV_BeginDownload_f(), SV_Configstrings_f(), SV_EmitPacketEntities(), SV_FindIndex(), SV_New_f(), SV_NextDownload_f(), SV_RecordDemoMessage(), SV_ServerRecord_f(), SV_StartSound(), and SV_WritePlayerstateToClient().
Definition at line 356 of file common.c.
Referenced by CL_CheckOrDownloadFile(), CL_ConnectionlessPacket(), CL_Download_f(), CL_Reconnect_f(), CL_Record_f(), CL_RequestNextDownload(), CL_SendCmd(), PF_centerprintf(), PF_Configstring(), PF_WriteString(), SV_Baselines_f(), SV_BroadcastCommand(), SV_BroadcastPrintf(), SV_ClientPrintf(), SV_Configstrings_f(), SV_FinalMessage(), SV_FindIndex(), SV_FlushRedirect(), SV_New_f(), and SV_ServerRecord_f().
char* NET_AdrToString | ( | netadr_t | a | ) |
Definition at line 161 of file net_wins.c.
Referenced by CL_ConnectionlessPacket(), CL_ReadPackets(), JoinServerFunc(), Master_Heartbeat(), Master_Shutdown(), NET_GetPacket(), NET_SendPacket(), Netchan_Process(), Netchan_Transmit(), SV_ConnectionlessPacket(), SV_SetMaster_f(), SV_Status_f(), SVC_Ack(), SVC_DirectConnect(), and SVC_RemoteCommand().
Definition at line 136 of file net_wins.c.
Referenced by SV_ReadPackets(), SVC_DirectConnect(), and SVC_GetChallenge().
Definition at line 695 of file net_wins.c.
Referenced by CL_Connect_f(), CL_Packet_f(), CL_PingServers_f(), CL_Rcon_f(), NET_Shutdown(), SV_InitGame(), and SV_KillServer_f().
Definition at line 336 of file net_wins.c.
Referenced by CL_DumpPackets(), CL_ReadPackets(), and SV_ReadPackets().
Definition at line 282 of file net_wins.c.
Referenced by CL_ConnectionlessPacket(), and SVC_DirectConnect().
Definition at line 400 of file net_wins.c.
Referenced by CL_Packet_f(), CL_Rcon_f(), Netchan_OutOfBand(), and Netchan_Transmit().
Definition at line 793 of file net_wins.c.
Definition at line 262 of file net_wins.c.
Referenced by CL_CheckForResend(), CL_Packet_f(), CL_PingServers_f(), CL_Rcon_f(), CL_SendConnectPacket(), SV_InitGame(), and SV_SetMaster_f().
Definition at line 175 of file net_chan.c.
Definition at line 132 of file net_chan.c.
Referenced by CL_CheckForResend(), CL_ConnectionlessPacket(), CL_PingServers_f(), CL_SendConnectPacket(), Master_Heartbeat(), Master_Shutdown(), SV_FlushRedirect(), SV_SetMaster_f(), SVC_DirectConnect(), SVC_GetChallenge(), SVC_Info(), SVC_Ping(), and SVC_Status().
Definition at line 152 of file net_chan.c.
Referenced by CL_ConnectionlessPacket(), and SVC_DirectConnect().
Definition at line 213 of file net_chan.c.
Referenced by CL_Disconnect(), CL_SendCmd(), SV_FinalMessage(), SV_SendClientDatagram(), and SV_SendClientMessages().
Definition at line 1240 of file pmove.c.
Referenced by CL_PredictMovement(), and SV_InitGameProgs().
Definition at line 562 of file cl_scrn.c.
Referenced by CL_Changing_f(), SCR_RunCinematic(), SV_InitGame(), and SV_Map().
Definition at line 1035 of file sv_main.c.
Referenced by CL_Connect_f(), Com_Error(), Com_Quit(), SV_InitGame(), and SV_KillServer_f().
Definition at line 467 of file sys_win.c.
Referenced by CL_ConnectionlessPacket().
char* Sys_ConsoleInput | ( | void | ) |
void Sys_ConsoleOutput | ( | char * | string | ) |
void Sys_Error | ( | char * | error, |
... | |||
) |
Definition at line 68 of file sys_win.c.
Referenced by COM_BlockSequenceCheckByte(), COM_BlockSequenceCRCByte(), Com_Error(), Hunk_Alloc(), Hunk_Begin(), Hunk_End(), Qcommon_Init(), QVk_BeginFrame(), QVk_EndFrame(), QVk_GetStagingBuffer(), and Sys_FindFirst().
char* Sys_GetClipboardData | ( | void | ) |
Definition at line 406 of file sys_win.c.
Referenced by CL_PrepRefresh(), CL_RegisterSounds(), CL_SendCommand(), CL_Skins_f(), and Key_GetKey().
Definition at line 488 of file sys_win.c.
Referenced by SV_ShutdownGameProgs(), and Sys_GetGameAPI().
Definition at line 892 of file common.c.
Referenced by Cbuf_InsertText(), CL_ClearState(), PF_Configstring(), PF_Unicast(), SV_FinalMessage(), SV_FindIndex(), SV_Multicast(), SV_RecordDemoMessage(), SV_SendClientDatagram(), SV_SendClientMessages(), and SZ_GetSpace().
Definition at line 898 of file common.c.
Referenced by MSG_WriteByte(), MSG_WriteChar(), MSG_WriteLong(), MSG_WriteShort(), SZ_Print(), and SZ_Write().
Definition at line 885 of file common.c.
Referenced by Cbuf_Init(), CL_Record_f(), CL_SendCmd(), Netchan_OutOfBand(), Netchan_Setup(), Netchan_Transmit(), SV_Init(), SV_RecordDemoMessage(), SV_SendClientDatagram(), SV_ServerRecord_f(), SV_SpawnServer(), and SVC_DirectConnect().
Definition at line 926 of file common.c.
Referenced by CL_ForwardToServer_f(), CL_ParseDownload(), Cmd_ForwardToServer(), and SCR_FinishCinematic().
Definition at line 921 of file common.c.
Referenced by Cbuf_AddText(), Cbuf_InsertText(), MSG_WriteFloat(), MSG_WriteString(), Netchan_OutOfBand(), Netchan_Transmit(), PF_Unicast(), SV_Multicast(), SV_NextDownload_f(), SV_RecordDemoMessage(), SV_SendClientDatagram(), and SV_WriteFrameToClient().
Definition at line 1122 of file common.c.
Referenced by Cbuf_AddLateCommands(), Cbuf_InsertText(), Cmd_Alias_f(), Cmd_Exec_f(), Cmd_RemoveCommand(), Cmd_TokenizeString(), Cvar_FullSet(), Cvar_GetLatchedVars(), Cvar_Set2(), FS_FreeFile(), FS_Link_f(), FS_SetGamedir(), Key_SetBinding(), S_EndRegistration(), S_Shutdown(), SCR_LoadPCX(), SCR_PlayCinematic(), SCR_RunCinematic(), SCR_StopCinematic(), SV_InitGameProgs(), SV_Shutdown(), and Z_FreeTags().
Definition at line 1200 of file common.c.
Referenced by Cbuf_AddLateCommands(), Cbuf_InsertText(), Cmd_AddCommand(), Cmd_Alias_f(), Cmd_Exec_f(), Cmd_TokenizeString(), CopyString(), Cvar_Get(), FS_AddGameDirectory(), FS_Link_f(), FS_LoadFile(), FS_LoadPackFile(), Huff1Decompress(), Huff1TableInit(), Key_SetBinding(), S_AliasName(), S_LoadSound(), SCR_LoadPCX(), and SV_InitGame().
qboolean bigendien |
Definition at line 934 of file q_shared.c.
Referenced by Swap_Init().
vec3_t bytedirs[NUMVERTEXNORMALS] |
Definition at line 281 of file common.c.
Referenced by CL_BfgParticles(), CL_FlyParticles(), COM_BlockSequenceCheckByte(), MSG_ReadDir(), and MSG_WriteDir().
cvar_t* cvar_vars |
Definition at line 24 of file cvar.c.
Referenced by Cvar_BitInfo(), Cvar_CompleteVariable(), Cvar_FindVar(), Cvar_Get(), Cvar_GetLatchedVars(), Cvar_List_f(), Cvar_WriteVariables(), and SV_WriteServerFile().
cvar_t* developer |
Definition at line 42 of file common.c.
Referenced by Com_DPrintf(), Qcommon_Init(), and SCR_BeginLoadingPlaque().
cvar_t* host_speeds |
Definition at line 40 of file common.c.
Referenced by CL_Frame(), Qcommon_Frame(), Qcommon_Init(), and SV_RunGameFrame().
cvar_t* log_stats |
Definition at line 41 of file common.c.
Referenced by CL_Frame(), Qcommon_Frame(), Qcommon_Init(), and V_RenderView().
FILE* log_stats_file |
Definition at line 38 of file common.c.
Referenced by CL_Frame(), Qcommon_Frame(), and V_RenderView().
netadr_t net_from |
Definition at line 81 of file net_chan.c.
sizebuf_t net_message |
Definition at line 82 of file net_chan.c.
byte net_message_buffer[MAX_MSGLEN] |
Definition at line 83 of file net_chan.c.
float pm_airaccelerate |
Definition at line 57 of file pmove.c.
Referenced by CL_PredictMovement(), PM_AirMove(), and SV_SpawnServer().
int time_after_game |
Definition at line 55 of file common.c.
Referenced by Qcommon_Frame(), SV_Frame(), and SV_RunGameFrame().
int time_after_ref |
Definition at line 57 of file common.c.
Referenced by CL_Frame(), and Qcommon_Frame().
int time_before_game |
Definition at line 54 of file common.c.
Referenced by Qcommon_Frame(), SV_Frame(), and SV_RunGameFrame().
int time_before_ref |
Definition at line 56 of file common.c.
Referenced by CL_Frame(), and Qcommon_Frame().
qboolean userinfo_modified |
Definition at line 485 of file cvar.c.
Referenced by CL_SendCmd(), CL_SendConnectPacket(), Cvar_FullSet(), and Cvar_Set2().