DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
qdefs.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CACHEPICHASHSIZE   256
 number of hash buckets for accelerating 2D pic name lookups
 
#define CL_MAX_USERCMDS   128
 max number of predicted input packets in queue
 
#define CMD_TOKENIZELENGTH   (MAX_INPUTLINE + MAX_ARGS)
 maximum tokenizable commandline length (counting trailing 0)
 
#define CMDBUFSIZE   655360
 maximum script size that can be loaded by the exec command (8192 in Quake)
 
#define CON_MAXLINES   16384
 max scrollback buffer lines in console
 
#define CON_TEXTSIZE   1048576
 max scrollback buffer characters in console
 
#define CRYPTO_HOSTKEY_HASHSIZE   8192
 number of hash buckets for accelerating host key lookups
 
#define CVAR_HASHSIZE   65536
 number of hash buckets for accelerating cvar name lookups
 
#define DOUBLE_IS_TRUE_FOR_INT(x)
 
#define DOUBLE_LOSSLESS_FORMAT   "%.17g"
 
#define DOUBLE_VECTOR_LOSSLESS_FORMAT   "%.17g %.17g %.17g"
 
#define DP_FUNC_ALWAYS_INLINE   inline
 
#define DP_FUNC_NORETURN
 
#define DP_FUNC_PRINTF(n)
 
#define DP_FUNC_PURE
 
#define FLOAT_IS_TRUE_FOR_INT(x)
 
#define FLOAT_LOSSLESS_FORMAT   "%.9g"
 
#define FLOAT_VECTOR_LOSSLESS_FORMAT   "%.9g %.9g %.9g"
 
#define HIST_MAXLINES   4096
 max command history buffer lines in console
 
#define HIST_TEXTSIZE   262144
 max command history buffer characters in console
 
#define INT_LOSSLESS_FORMAT_CONVERT_S(x)
 
#define INT_LOSSLESS_FORMAT_CONVERT_U(x)
 
#define INT_LOSSLESS_FORMAT_SIZE   "j"
 
#define INTOVERFLOW_ADD(a, b)
 
#define INTOVERFLOW_DIV(a, b)
 
#define INTOVERFLOW_MAX   2147483647
 
#define INTOVERFLOW_MUL(a, b)
 
#define INTOVERFLOW_NORMALIZE(a)
 
#define INTOVERFLOW_SUB(a, b)
 
#define ISCOMMENT(ch, pos)
 
#define ISWHITESPACE(ch)
 
#define ISWHITESPACEORCONTROL(ch)
 
#define M_MAX_EDICTS   32768
 max objects in menu vm
 
#define MAX_ALIAS_NAME   32
 
#define MAX_ARGS   80
 maximum number of parameters to a console command or alias
 
#define MAX_BEAMS   256
 limit on size of cl.beams
 
#define MAX_BINDMAPS   8
 
#define MAX_CACHED_PICS   2048
 max number of 2D pics loaded at once
 
#define MAX_CHANNELS   (8192 + 4)
 
#define MAX_CLIENTNETWORKEYES   16
 max number of locations that can be added to pvs when culling network entities (must be at least 2 for prediction)
 
#define MAX_CUBEMAPS   1024
 max number of cubemap textures loaded for light filters
 
#define MAX_DECALSYSTEM_QUEUE   1024
 
#define MAX_DEMONAME   32
 max demo name length for demos command
 
#define MAX_DEMOS   8
 max demos provided to demos command
 
#define MAX_DLIGHTS   256
 max number of dynamic lights (rocket flashes, etc) in scene at once
 
#define MAX_DYNAMIC_CHANNELS   512
 
#define MAX_DYNAMIC_TEXTURE_COUNT   64
 maximum number of dynamic textures (web browsers, playvideo, etc)
 
#define MAX_EDICTS   32768
 max number of objects in game world at once (32768 protocol limit)
 
#define MAX_EFFECTS   256
 limit on size of cl.effects
 
#define MAX_ENTITIES_INITIAL   256
 initial size of cl.entities
 
#define MAX_EXPLOSIONS   64
 max number of explosion shell effects active at once (not particle related)
 
#define MAX_FAVORITESERVERS   256
 
#define MAX_INPUTLINE   16384
 maximum size of console commandline, QuakeC strings, and many other text processing buffers
 
#define MAX_LEVELNETWORKEYES   512
 max number of locations that can be added to pvs when culling network entities (must be at least 2 for prediction)
 
#define MAX_LIGHTSTYLES   256
 max flickering light styles in level (note: affects savegame format)
 
#define MAX_LOCALINFO_STRING   32768
 max length of server-local infostring for PROTOCOL_QUAKEWORLD (32768 in QuakeWorld)
 
#define MAX_MODELS   8192
 max number of models loaded at once (including during level transitions)
 
#define MAX_NETWM_ICON   352822
 
#define MAX_NUM_ARGVS   50
 
#define MAX_OCCLUSION_QUERIES   4096
 max number of query objects that can be used in one frame
 
#define MAX_OSPATH   1024
 max length of a filesystem pathname
 
#define MAX_PACKETFRAGMENT   1024
 max length of packet fragment
 
#define MAX_PARTICLEEFFECTINFO   8192
 maximum number of unique particle effects (each name may associate with several of these)
 
#define MAX_PARTICLEEFFECTNAME   4096
 maximum number of unique names of particle effects (for particleeffectnum)
 
#define MAX_PARTICLES   1048576
 upper limit on cl.particles size
 
#define MAX_PARTICLES_INITIAL   8192
 initial allocation for cl.particles
 
#define MAX_PARTICLETEXTURES   256
 maximum number of unique particle textures in the particle font
 
#define MAX_QPATH   128
 max length of a quake game pathname
 
#define MAX_SAVEGAMES   12
 max savegames listed in savegame menu
 
#define MAX_SCOREBOARD   255
 max number of players in game at once (255 protocol limit)
 
#define MAX_SCOREBOARDNAME   128
 max length of player name in game
 
#define MAX_SERVERINFO_STRING   1280
 max length of server infostring for PROTOCOL_QUAKEWORLD (512 in QuakeWorld)
 
#define MAX_SOUNDS   4096
 max number of sounds loaded at once
 
#define MAX_STATICENTITIES   4096
 limit on size of cl.static_entities
 
#define MAX_STYLESTRING   64
 max length of flicker pattern for light style
 
#define MAX_TEMPENTITIES   4096
 max number of temporary models visible per frame (certain sprite effects, certain types of CSQC entities also use this)
 
#define MAX_USERINFO_STRING   1280
 max length of infostring for PROTOCOL_QUAKEWORLD (196 in QuakeWorld)
 
#define MAX_WATERPLANES   16
 max number of water planes visible (each one causes additional view renders)
 
#define MAXCLVIDEOS   65
 maximum number of video streams being played back at once (1 is reserved for the playvideo command)
 
#define MAXTRACKS   256
 max CD track index
 
#define MODLIST_TOTALSIZE   256
 
#define NET_MAXMESSAGE   65536
 max reliable packet size (sent as multiple fragments of MAX_PACKETFRAGMENT)
 
#define NET_MINRATE   1000
 limits "rate" and "sv_maxrate" cvars
 
#define ON_EPSILON   0.1
 point on plane side epsilon
 
#define PAINTBUFFER_SIZE   2048
 
#define SAVEGAME_COMMENT_LENGTH   39
 max comment length of savegame in menu
 
#define SERVERLIST_ANDMASKCOUNT   16
 max items in server list AND mask
 
#define SERVERLIST_ORMASKCOUNT   16
 max items in server list OR mask
 
#define SERVERLIST_TOTALSIZE   2048
 max servers in the server list
 

Macro Definition Documentation

◆ CACHEPICHASHSIZE

#define CACHEPICHASHSIZE   256

number of hash buckets for accelerating 2D pic name lookups

Definition at line 134 of file qdefs.h.

Referenced by Draw_CachePic_Flags(), Draw_FreePic(), and Draw_NewPic().

◆ CL_MAX_USERCMDS

#define CL_MAX_USERCMDS   128

max number of predicted input packets in queue

Definition at line 115 of file qdefs.h.

Referenced by CL_ClientMovement_Replay(), CL_RotateMoves(), CL_SendMove(), SV_ReadClientMove(), and VM_CL_getinputstate().

◆ CMD_TOKENIZELENGTH

#define CMD_TOKENIZELENGTH   (MAX_INPUTLINE + MAX_ARGS)

maximum tokenizable commandline length (counting trailing 0)

Definition at line 166 of file qdefs.h.

Referenced by Cmd_TokenizeString().

◆ CMDBUFSIZE

#define CMDBUFSIZE   655360

maximum script size that can be loaded by the exec command (8192 in Quake)

Definition at line 100 of file qdefs.h.

Referenced by Cmd_Init().

◆ CON_MAXLINES

#define CON_MAXLINES   16384

max scrollback buffer lines in console

Definition at line 96 of file qdefs.h.

Referenced by Con_Init().

◆ CON_TEXTSIZE

#define CON_TEXTSIZE   1048576

max scrollback buffer characters in console

Definition at line 95 of file qdefs.h.

Referenced by Con_Init(), Con_PrintToHistory(), and Key_Parse_CommonKeys().

◆ CRYPTO_HOSTKEY_HASHSIZE

#define CRYPTO_HOSTKEY_HASHSIZE   8192

number of hash buckets for accelerating host key lookups

Definition at line 126 of file qdefs.h.

Referenced by Crypto_ClearHostKey(), Crypto_ClearHostKeys(), Crypto_HostKeys_f(), Crypto_InitHostKeys(), Crypto_RetrieveHostKey(), and Crypto_StoreHostKey().

◆ CVAR_HASHSIZE

#define CVAR_HASHSIZE   65536

number of hash buckets for accelerating cvar name lookups

Definition at line 116 of file qdefs.h.

Referenced by Cvar_FindVar(), Cvar_FindVarLink(), Cvar_Link(), and Cvar_RegisterVirtual().

◆ DOUBLE_IS_TRUE_FOR_INT

#define DOUBLE_IS_TRUE_FOR_INT ( x)
Value:
((x) & 0x7FFFFFFFFFFFFFFF)
GLint GLenum GLint x
Definition glquake.h:651

Definition at line 189 of file qdefs.h.

◆ DOUBLE_LOSSLESS_FORMAT

#define DOUBLE_LOSSLESS_FORMAT   "%.17g"

Definition at line 190 of file qdefs.h.

◆ DOUBLE_VECTOR_LOSSLESS_FORMAT

#define DOUBLE_VECTOR_LOSSLESS_FORMAT   "%.17g %.17g %.17g"

Definition at line 191 of file qdefs.h.

◆ DP_FUNC_ALWAYS_INLINE

#define DP_FUNC_ALWAYS_INLINE   inline

Definition at line 20 of file qdefs.h.

◆ DP_FUNC_NORETURN

#define DP_FUNC_NORETURN

Definition at line 16 of file qdefs.h.

◆ DP_FUNC_PRINTF

#define DP_FUNC_PRINTF ( n)

Definition at line 14 of file qdefs.h.

◆ DP_FUNC_PURE

#define DP_FUNC_PURE

Definition at line 15 of file qdefs.h.

◆ FLOAT_IS_TRUE_FOR_INT

#define FLOAT_IS_TRUE_FOR_INT ( x)
Value:
((x) & 0x7FFFFFFF)

Definition at line 193 of file qdefs.h.

Referenced by while().

◆ FLOAT_LOSSLESS_FORMAT

#define FLOAT_LOSSLESS_FORMAT   "%.9g"

Definition at line 194 of file qdefs.h.

◆ FLOAT_VECTOR_LOSSLESS_FORMAT

#define FLOAT_VECTOR_LOSSLESS_FORMAT   "%.9g %.9g %.9g"

Definition at line 195 of file qdefs.h.

◆ HIST_MAXLINES

#define HIST_MAXLINES   4096

max command history buffer lines in console

Definition at line 98 of file qdefs.h.

Referenced by Key_History_f(), Key_History_Find_All(), Key_History_Find_Backwards(), Key_History_Find_Forwards(), and Key_History_Init().

◆ HIST_TEXTSIZE

#define HIST_TEXTSIZE   262144

max command history buffer characters in console

Definition at line 97 of file qdefs.h.

Referenced by Key_History_Init().

◆ INT_LOSSLESS_FORMAT_CONVERT_S

#define INT_LOSSLESS_FORMAT_CONVERT_S ( x)
Value:
((intmax_t)(x))

Definition at line 205 of file qdefs.h.

Referenced by VM_sprintf().

◆ INT_LOSSLESS_FORMAT_CONVERT_U

#define INT_LOSSLESS_FORMAT_CONVERT_U ( x)
Value:
((uintmax_t)(x))

Definition at line 206 of file qdefs.h.

Referenced by VM_sprintf().

◆ INT_LOSSLESS_FORMAT_SIZE

#define INT_LOSSLESS_FORMAT_SIZE   "j"

Definition at line 204 of file qdefs.h.

Referenced by VM_sprintf().

◆ INTOVERFLOW_ADD

#define INTOVERFLOW_ADD ( a,
b )
Value:
(((a) < INTOVERFLOW_MAX && (b) < INTOVERFLOW_MAX && (a) < INTOVERFLOW_MAX - (b)) ? ((a) + (b)) : INTOVERFLOW_MAX)
#define INTOVERFLOW_MAX
Definition qdefs.h:218
dp_FragColor b
ret a

Definition at line 220 of file qdefs.h.

Referenced by R_LoadTextureDDSFile().

◆ INTOVERFLOW_DIV

#define INTOVERFLOW_DIV ( a,
b )
Value:
(((a) < INTOVERFLOW_MAX && (b) < INTOVERFLOW_MAX && (b) > 0) ? ((a) / (b)) : INTOVERFLOW_MAX)

Definition at line 223 of file qdefs.h.

Referenced by R_LoadTextureDDSFile().

◆ INTOVERFLOW_MAX

#define INTOVERFLOW_MAX   2147483647

Definition at line 218 of file qdefs.h.

◆ INTOVERFLOW_MUL

#define INTOVERFLOW_MUL ( a,
b )
Value:
(((a) < INTOVERFLOW_MAX && (b) < INTOVERFLOW_MAX && (a) < INTOVERFLOW_MAX / (b)) ? ((a) * (b)) : INTOVERFLOW_MAX)

Definition at line 222 of file qdefs.h.

Referenced by R_LoadTextureDDSFile().

◆ INTOVERFLOW_NORMALIZE

#define INTOVERFLOW_NORMALIZE ( a)
Value:
(((a) < INTOVERFLOW_MAX) ? (a) : (INTOVERFLOW_MAX - 1))

Definition at line 225 of file qdefs.h.

Referenced by R_LoadTextureDDSFile().

◆ INTOVERFLOW_SUB

#define INTOVERFLOW_SUB ( a,
b )
Value:
(((a) < INTOVERFLOW_MAX && (b) < INTOVERFLOW_MAX && (b) <= (a)) ? ((a) - (b)) : INTOVERFLOW_MAX)

Definition at line 221 of file qdefs.h.

◆ ISCOMMENT

#define ISCOMMENT ( ch,
pos )
Value:
ch[pos] == '/' && ch[pos + 1] == '/' && (pos == 0 || ISWHITESPACE(ch[pos - 1]))
#define ISWHITESPACE(ch)
Definition qdefs.h:184

Definition at line 185 of file qdefs.h.

◆ ISWHITESPACE

◆ ISWHITESPACEORCONTROL

#define ISWHITESPACEORCONTROL ( ch)
Value:
((signed char) (ch) <= (signed char) ' ')

Definition at line 187 of file qdefs.h.

Referenced by SV_Savegame_to().

◆ M_MAX_EDICTS

#define M_MAX_EDICTS   32768

max objects in menu vm

Definition at line 117 of file qdefs.h.

Referenced by MP_Init().

◆ MAX_ALIAS_NAME

#define MAX_ALIAS_NAME   32

Definition at line 99 of file qdefs.h.

Referenced by Cmd_Alias_f().

◆ MAX_ARGS

#define MAX_ARGS   80

maximum number of parameters to a console command or alias

Definition at line 101 of file qdefs.h.

Referenced by Cmd_TokenizeString().

◆ MAX_BEAMS

#define MAX_BEAMS   256

limit on size of cl.beams

Definition at line 158 of file qdefs.h.

Referenced by CL_ClearState().

◆ MAX_BINDMAPS

◆ MAX_CACHED_PICS

#define MAX_CACHED_PICS   2048

max number of 2D pics loaded at once

Definition at line 133 of file qdefs.h.

Referenced by Draw_CachePic_Flags(), and Draw_NewPic().

◆ MAX_CHANNELS

#define MAX_CHANNELS   (8192 + 4)

Definition at line 147 of file qdefs.h.

Referenced by S_Init(), S_StaticSound(), and S_StopAllSounds().

◆ MAX_CLIENTNETWORKEYES

#define MAX_CLIENTNETWORKEYES   16

max number of locations that can be added to pvs when culling network entities (must be at least 2 for prediction)

Definition at line 122 of file qdefs.h.

◆ MAX_CUBEMAPS

#define MAX_CUBEMAPS   1024

max number of cubemap textures loaded for light filters

Definition at line 130 of file qdefs.h.

Referenced by R_GetCubemap().

◆ MAX_DECALSYSTEM_QUEUE

#define MAX_DECALSYSTEM_QUEUE   1024

Definition at line 150 of file qdefs.h.

Referenced by R_DecalSystem_SplatEntities().

◆ MAX_DEMONAME

#define MAX_DEMONAME   32

max demo name length for demos command

Definition at line 119 of file qdefs.h.

◆ MAX_DEMOS

#define MAX_DEMOS   8

max demos provided to demos command

Definition at line 118 of file qdefs.h.

Referenced by CL_NextDemo(), and CL_Startdemos_f().

◆ MAX_DLIGHTS

#define MAX_DLIGHTS   256

max number of dynamic lights (rocket flashes, etc) in scene at once

Definition at line 132 of file qdefs.h.

Referenced by CL_ClearState(), CL_LinkNetworkEntity(), CL_NewParticlesFromEffectinfo(), CL_ParticleEffect_Fallback(), CL_RelinkBeams(), CL_RelinkLightFlashes(), and VM_CL_R_AddDynamicLight().

◆ MAX_DYNAMIC_CHANNELS

#define MAX_DYNAMIC_CHANNELS   512

◆ MAX_DYNAMIC_TEXTURE_COUNT

#define MAX_DYNAMIC_TEXTURE_COUNT   64

maximum number of dynamic textures (web browsers, playvideo, etc)

Definition at line 139 of file qdefs.h.

◆ MAX_EDICTS

#define MAX_EDICTS   32768

max number of objects in game world at once (32768 protocol limit)

Definition at line 105 of file qdefs.h.

Referenced by animatemodel(), CL_Cache_TraceLineSurfaces(), CL_ClearState(), CL_ExpandCSQCRenderEntities(), CL_ExpandEntities(), CL_Init(), CL_NewBeam(), CL_ParseBeam(), CL_ParseServerMessage(), CL_ParseStartSoundPacket(), CL_ParseTrailParticles(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), CL_VM_GetEntitySoundOrigin(), CL_VM_GetViewEntity(), CSQC_AddRenderEdict(), EntityFrame5_LostFrame(), EntityFrame_CL_ReadFrame(), EntityFrameCSQC_LostFrame(), EntityFrameQuake_ReadEntity(), EntityState5_ReadUpdate(), MVM_init_cmd(), R_GetCurrentTexture(), R_Mod_DrawAddWaterPlanes(), R_Shadow_DrawLightShadowMaps(), R_Shadow_PrepareLight(), R_Water_ProcessPlanes(), SND_Spatialize_WithSfx(), SV_CanSeeBox(), SV_LinkEdict_TouchAreaGrid(), SV_Loadgame_f(), SV_PointSuperContents(), SV_PushMove(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_VM_Setup(), VM_CL_findbox(), VM_CL_findradius(), VM_CL_pointsound(), VM_CL_skel_build(), VM_CL_skel_copybones(), VM_CL_skel_create(), VM_CL_skel_delete(), VM_CL_skel_find_bone(), VM_CL_skel_get_boneabs(), VM_CL_skel_get_bonename(), VM_CL_skel_get_boneparent(), VM_CL_skel_get_bonerel(), VM_CL_skel_get_numbones(), VM_CL_skel_mul_bone(), VM_CL_skel_mul_bones(), VM_CL_skel_set_bone(), VM_CL_sound(), VM_getsoundtime(), VM_SV_findbox(), VM_SV_findradius(), VM_SV_skel_build(), VM_SV_skel_copybones(), VM_SV_skel_create(), VM_SV_skel_delete(), VM_SV_skel_find_bone(), VM_SV_skel_get_boneabs(), VM_SV_skel_get_bonename(), VM_SV_skel_get_boneparent(), VM_SV_skel_get_bonerel(), VM_SV_skel_get_numbones(), VM_SV_skel_mul_bone(), VM_SV_skel_mul_bones(), VM_SV_skel_set_bone(), and VM_UpdateEdictSkeleton().

◆ MAX_EFFECTS

#define MAX_EFFECTS   256

limit on size of cl.effects

Definition at line 157 of file qdefs.h.

Referenced by CL_ClearState().

◆ MAX_ENTITIES_INITIAL

#define MAX_ENTITIES_INITIAL   256

initial size of cl.entities

Definition at line 155 of file qdefs.h.

Referenced by CL_ClearState().

◆ MAX_EXPLOSIONS

#define MAX_EXPLOSIONS   64

max number of explosion shell effects active at once (not particle related)

Definition at line 131 of file qdefs.h.

Referenced by R_NewExplosion().

◆ MAX_FAVORITESERVERS

#define MAX_FAVORITESERVERS   256

Definition at line 149 of file qdefs.h.

◆ MAX_INPUTLINE

#define MAX_INPUTLINE   16384

maximum size of console commandline, QuakeC strings, and many other text processing buffers

Definition at line 94 of file qdefs.h.

Referenced by CL_ExaminePrintString(), CL_ForwardToServer_f(), CL_IPLog_Load(), CL_Locs_Reload_f(), CL_Locs_Save_f(), CL_NextDemo(), CL_ParseEntityLump(), Cmd_Alias_f(), Cmd_ExecuteAlias(), Cmd_GetCvarValue(), Cmd_PreprocessAndExecuteString(), Cmd_StuffCmds_f(), COM_Init_Commands(), Con_CenterPrintf(), Con_CompleteCommandLine(), Con_DPrintf(), Con_DrawInput(), Con_Init(), Con_MaskPrint(), Con_MaskPrintf(), Con_Printf(), ConBuffer_GetLine(), Crypto_ClientParsePacket(), Crypto_ServerParsePacket(), Crypto_ServerParsePacket_Internal(), CSQC_AddPrintText(), Cvar_SetValue(), Cvar_SetValueQuick(), Cvar_WriteVariables(), dpvsnprintf(), FS_ListDirectory(), FS_Rescan(), FS_VPrintf(), GL_Backend_CompileProgram(), GL_Backend_CompileShader(), GL_CheckExtension(), Host_Error(), InfoString_Print(), InfoString_SetValue(), Key_AddChar(), Key_Bind_f(), Key_History_Init(), Key_In_Bind_f(), Key_Parse_CommonKeys(), Key_PrintBindList(), Key_WriteBindings(), M_Keys_Draw(), Mod_Q3BSP_LoadEntities(), MVM_error_cmd(), NetConn_ClientParsePacket(), NetConn_ServerParsePacket(), PRVM_ED_EdictGet_f(), PRVM_ED_GlobalGet_f(), PRVM_ED_ParseGlobals(), PRVM_ED_Print(), PRVM_ED_Write(), PRVM_ED_WriteGlobals(), PRVM_Fields_f(), PRVM_Global_f(), PRVM_GlobalString(), PRVM_PO_Load(), PRVM_PrintStatement(), PRVM_Prog_Load(), R_LoadSkyBox(), R_Shadow_EditLights_Edit_f(), R_Shadow_LoadWorldLightsFromMap_LightArghliteTyrlite(), R_Shadow_SaveWorldLights(), RCon_Authenticate(), SCR_Centerprint_f(), SV_BroadcastPrintf(), SV_ClientCommands(), SV_ClientPrintf(), SV_Savegame_to(), SV_Tell_f(), Sys_ConsoleInput(), Sys_Error(), Sys_Printf(), Sys_SDL_GetClipboardData(), VM_getentityfieldstring(), VM_sprintf(), VM_tokenizebyseparator(), and VM_Warning().

◆ MAX_LEVELNETWORKEYES

#define MAX_LEVELNETWORKEYES   512

max number of locations that can be added to pvs when culling network entities (must be at least 2 for prediction)

Definition at line 123 of file qdefs.h.

◆ MAX_LIGHTSTYLES

#define MAX_LIGHTSTYLES   256

max flickering light styles in level (note: affects savegame format)

Definition at line 108 of file qdefs.h.

Referenced by CL_ClearState(), R_Shadow_BounceGrid_AssignPhotons_Task(), R_Shadow_PrepareLight(), R_Shadow_PrepareLights(), SV_Loadgame_f(), SV_Savegame_to(), SV_Spawn_f(), VM_CL_R_AddDynamicLight(), and VM_SV_lightstyle().

◆ MAX_LOCALINFO_STRING

#define MAX_LOCALINFO_STRING   32768

max length of server-local infostring for PROTOCOL_QUAKEWORLD (32768 in QuakeWorld)

Definition at line 114 of file qdefs.h.

◆ MAX_MODELS

◆ MAX_NETWM_ICON

#define MAX_NETWM_ICON   352822

Definition at line 127 of file qdefs.h.

◆ MAX_NUM_ARGVS

#define MAX_NUM_ARGVS   50

Definition at line 24 of file qdefs.h.

Referenced by COM_Init_Commands().

◆ MAX_OCCLUSION_QUERIES

#define MAX_OCCLUSION_QUERIES   4096

max number of query objects that can be used in one frame

Definition at line 124 of file qdefs.h.

Referenced by R_Shadow_DrawCoronas().

◆ MAX_OSPATH

◆ MAX_PACKETFRAGMENT

#define MAX_PACKETFRAGMENT   1024

max length of packet fragment

Definition at line 104 of file qdefs.h.

Referenced by NetConn_ReceivedMessage(), NetConn_SendUnreliableMessage(), SV_StartEffect(), SV_StartParticle(), SV_StartPointSound(), and SV_StartSound().

◆ MAX_PARTICLEEFFECTINFO

#define MAX_PARTICLEEFFECTINFO   8192

maximum number of unique particle effects (each name may associate with several of these)

Definition at line 136 of file qdefs.h.

Referenced by CL_NewParticlesFromEffectinfo(), and CL_Particles_ParseEffectInfo().

◆ MAX_PARTICLEEFFECTNAME

#define MAX_PARTICLEEFFECTNAME   4096

maximum number of unique names of particle effects (for particleeffectnum)

Definition at line 135 of file qdefs.h.

Referenced by CL_NewParticlesFromEffectinfo(), CL_ParticleEffectIndexForName(), CL_ParticleEffectNameForIndex(), CL_Particles_ParseEffectInfo(), and SV_ParticleEffectIndex().

◆ MAX_PARTICLES

#define MAX_PARTICLES   1048576

upper limit on cl.particles size

Definition at line 154 of file qdefs.h.

Referenced by R_DrawParticles().

◆ MAX_PARTICLES_INITIAL

#define MAX_PARTICLES_INITIAL   8192

initial allocation for cl.particles

Definition at line 153 of file qdefs.h.

Referenced by CL_ClearState().

◆ MAX_PARTICLETEXTURES

#define MAX_PARTICLETEXTURES   256

maximum number of unique particle textures in the particle font

Definition at line 137 of file qdefs.h.

Referenced by R_InitParticleTexture().

◆ MAX_QPATH

#define MAX_QPATH   128

max length of a quake game pathname

Definition at line 169 of file qdefs.h.

Referenced by CDAudio_Play_byName(), CDAudio_StartPlaylist(), CL_BeginDownloads(), CL_Locs_Reload_f(), CL_Locs_Save_f(), CL_ParseServerInfo(), CL_Particles_LoadEffectInfo(), CL_PlayDemo(), CL_PlayVideo_f(), CL_ReadPointFile_f(), CL_StopDownload(), CompressedImageCache_Add(), Con_CompleteCommandLine(), Font_LoadFile(), Font_LoadMap(), FS_OpenReadFile(), GetMapList(), gl_main_newmap(), Image_FixTransparentPixels_f(), Image_GetStockPicSize(), LoadFont(), LoadFont_f(), loadimagepixelsbgra(), LoadSubtitles(), Mod_BuildAliasSkinsFromSkinFiles(), Mod_Decompile_f(), Mod_Decompile_OBJ(), Mod_IDP0_Load(), Mod_IDS2_Load(), Mod_LoadSkinFiles(), Mod_OBJ_Load(), Mod_PSKMODEL_Load(), Mod_Q1BSP_LoadLighting(), Mod_Q1BSP_LoadMapBrushes(), Mod_Q1BSP_LoadTextures(), Mod_Q2BSP_LoadTexinfo(), Mod_Q3BSP_LoadLightmaps(), Mod_Sprite_SharedSetup(), Mod_UnloadModel(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), R_Envmap_f(), R_InitParticleTexture(), R_InitShaderModeInfo(), R_LoadQWSkin(), R_ResetSkyBox(), R_Shadow_LoadLightsFile(), R_Shadow_LoadWorldLights(), R_Shadow_SaveWorldLights(), R_SkinFrame_Find(), R_SkinFrame_FindNextByName(), R_SkinFrame_LoadExternal_SkinFrame(), S_LoadSound(), S_Play_Common(), Sbar_ShowFPS(), SCR_DrawScreen(), SCR_ScreenShot_f(), SV_Download_f(), SV_Loadgame_f(), SV_ModelIndex(), SV_ParticleEffectIndex(), SV_Savegame_f(), SV_SendServerinfo(), SV_SoundIndex(), SV_StartDemoRecording(), and VM_loadfont().

◆ MAX_SAVEGAMES

#define MAX_SAVEGAMES   12

max savegames listed in savegame menu

Definition at line 120 of file qdefs.h.

Referenced by M_Load_Draw(), M_Load_Key(), M_Save_Draw(), M_Save_Key(), and M_ScanSaves().

◆ MAX_SCOREBOARD

#define MAX_SCOREBOARD   255

max number of players in game at once (255 protocol limit)

Definition at line 110 of file qdefs.h.

Referenced by CL_ParseServerInfo(), M_Menu_GameOptions_f(), M_NetStart_Change(), Sbar_PrintScoreboardItem(), SV_MaxPlayers_f(), and SV_ServerOptions().

◆ MAX_SCOREBOARDNAME

#define MAX_SCOREBOARDNAME   128

max length of player name in game

Definition at line 111 of file qdefs.h.

Referenced by CL_Name_f(), Nicks_CompleteCountPossible(), and SV_WriteNetnameIntoDemo().

◆ MAX_SERVERINFO_STRING

#define MAX_SERVERINFO_STRING   1280

max length of server infostring for PROTOCOL_QUAKEWORLD (512 in QuakeWorld)

Definition at line 113 of file qdefs.h.

◆ MAX_SOUNDS

◆ MAX_STATICENTITIES

#define MAX_STATICENTITIES   4096

limit on size of cl.static_entities

Definition at line 156 of file qdefs.h.

Referenced by CL_ClearState().

◆ MAX_STYLESTRING

#define MAX_STYLESTRING   64

max length of flicker pattern for light style

Definition at line 109 of file qdefs.h.

Referenced by CL_ParseServerMessage(), and VM_CL_lightstyle().

◆ MAX_TEMPENTITIES

#define MAX_TEMPENTITIES   4096

max number of temporary models visible per frame (certain sprite effects, certain types of CSQC entities also use this)

Definition at line 159 of file qdefs.h.

Referenced by CL_Init().

◆ MAX_USERINFO_STRING

#define MAX_USERINFO_STRING   1280

max length of infostring for PROTOCOL_QUAKEWORLD (196 in QuakeWorld)

Definition at line 112 of file qdefs.h.

◆ MAX_WATERPLANES

#define MAX_WATERPLANES   16

max number of water planes visible (each one causes additional view renders)

Definition at line 129 of file qdefs.h.

Referenced by R_Water_StartFrame().

◆ MAXCLVIDEOS

#define MAXCLVIDEOS   65

maximum number of video streams being played back at once (1 is reserved for the playvideo command)

Definition at line 138 of file qdefs.h.

Referenced by FindUnusedVid().

◆ MAXTRACKS

#define MAXTRACKS   256

max CD track index

Definition at line 142 of file qdefs.h.

Referenced by CD_f(), CDAudio_Init(), and CDAudio_Play_byName().

◆ MODLIST_TOTALSIZE

#define MODLIST_TOTALSIZE   256

Definition at line 148 of file qdefs.h.

Referenced by ModList_RebuildList().

◆ NET_MAXMESSAGE

#define NET_MAXMESSAGE   65536

◆ NET_MINRATE

#define NET_MINRATE   1000

limits "rate" and "sv_maxrate" cvars

Definition at line 180 of file qdefs.h.

Referenced by M_NetStart_Change(), and SV_SendClientDatagram().

◆ ON_EPSILON

#define ON_EPSILON   0.1

point on plane side epsilon

Definition at line 178 of file qdefs.h.

Referenced by SV_SetIdealPitch().

◆ PAINTBUFFER_SIZE

#define PAINTBUFFER_SIZE   2048

Definition at line 151 of file qdefs.h.

Referenced by S_MixToBuffer(), and SCR_CaptureVideo_Avi_SoundFrame().

◆ SAVEGAME_COMMENT_LENGTH

#define SAVEGAME_COMMENT_LENGTH   39

max comment length of savegame in menu

Definition at line 121 of file qdefs.h.

Referenced by M_ScanSaves(), and SV_Savegame_to().

◆ SERVERLIST_ANDMASKCOUNT

#define SERVERLIST_ANDMASKCOUNT   16

max items in server list AND mask

Definition at line 161 of file qdefs.h.

Referenced by VM_M_setserverlistmasknumber(), and VM_M_setserverlistmaskstring().

◆ SERVERLIST_ORMASKCOUNT

#define SERVERLIST_ORMASKCOUNT   16

max items in server list OR mask

Definition at line 162 of file qdefs.h.

Referenced by VM_M_setserverlistmasknumber(), and VM_M_setserverlistmaskstring().

◆ SERVERLIST_TOTALSIZE

#define SERVERLIST_TOTALSIZE   2048

max servers in the server list

Definition at line 160 of file qdefs.h.

Referenced by NetConn_ClientParsePacket().