defines.h File Reference

Defined CONSTANTS (Macros are elsewhere). More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PLANESIDE_EPSILON   0.001
#define MAX_ACTIVETEAM   8
#define LEAFNODE   -1
#define PLANENUM_LEAF   -1
#define TEXINFO_NODE   -1
#define MAXEDGES   20
#define TEAM_DEFAULT   1
#define DEBUG_ALL   0x07FE
#define DEBUG_SHARED   0x02
#define DEBUG_ENGINE   0x04
#define DEBUG_SYSTEM   0x08
#define DEBUG_COMMANDS   0x10
#define DEBUG_CLIENT   0x20
#define DEBUG_SERVER   0x40
#define DEBUG_GAME   0x80
#define DEBUG_RENDERER   0x0100
#define DEBUG_SOUND   0x0200
#define DEBUG_EVENTSYS   0x0400
#define DEBUG_PATHING   0x0800
#define DEBUG_ROUTING   0x1000
#define NONE   -1
#define NONE_AMMO   0
#define MAX_ROUTE   33
#define MAX_MOVELENGTH   60
#define TU_CROUCH   3
#define TU_TURN   1
#define TU_MOVE_STRAIGHT   2
#define TU_MOVE_DIAGONAL   3
#define TU_MOVE_CLIMB   4
#define TU_MOVE_FALL   0
#define TU_DOOR_ACTION   1
#define TU_CROUCH_MOVING_FACTOR   1.5
#define TU_FLYING_MOVING_FACTOR   2
#define TU_GET_RELOAD(containerOut, containerIn, weapon)   (csi.ids[(containerOut)].out + (weapon)->reload + csi.ids[(containerIn)].in)
#define STATE_OPENED   0
#define STATE_CLOSED   1
#define MAX_STRING_CHARS   1024
#define MAX_STRING_TOKENS   80
#define MAX_TEXPATH   32
#define MAX_TILESTRINGS   25
#define MAX_TEAMS   8
#define MAX_CLIENTS   256
#define MAX_EDICTS   1024
#define MAX_MODELS   256
#define MAX_GENERAL   (MAX_CLIENTS*2)
#define MAX_HP   100
#define PRINT_NONE   -1
#define PRINT_CHAT   0
#define PRINT_HUD   1
#define PRINT_CONSOLE   2
#define ERR_FATAL   0
#define ERR_DROP   1
#define ERR_DISCONNECT   2
#define GROUND_DELTA   28
#define UNIT_SIZE   32
#define UNIT_HEIGHT   64
#define PLAYER_HEIGHT   (UNIT_HEIGHT - 16)
#define QUANT   4
#define WALL_SIZE   5
#define MAX_MAP_MODELS   1024
#define MAX_MAP_BRUSHES   16384
#define MAX_MAP_ENTITIES   2048
#define MAX_MAP_ENTSTRING   0x40000
#define MAX_MAP_TEXINFO   16384
#define MAX_MAP_PLANES   65536
#define MAX_MAP_NODES   65536
#define MAX_MAP_BRUSHSIDES   65536
#define MAX_MAP_LEAFS   65536
#define MAX_MAP_VERTS   65536
#define MAX_MAP_FACES   65536
#define MAX_MAP_LEAFBRUSHES   65536
#define MAX_MAP_EDGES   128000
#define MAX_MAP_SURFEDGES   256000
#define MAX_MAP_LIGHTING   0x1000000
#define MAX_MAP_ROUTING   0x100000
#define MAX_LEAFS   1024
#define MAX_MOD_KNOWN   512
#define MAX_KEY   32
#define MAX_VALUE   1024
#define LUMP_ENTITIES   0
#define LUMP_PLANES   1
#define LUMP_VERTEXES   2
#define LUMP_ROUTING   3
#define LUMP_NODES   4
#define LUMP_TEXINFO   5
#define LUMP_FACES   6
#define LUMP_LIGHTING_NIGHT   7
#define LUMP_LIGHTING_DAY   8
#define LUMP_LEAFS   9
#define LUMP_LEAFBRUSHES   10
#define LUMP_EDGES   11
#define LUMP_SURFEDGES   12
#define LUMP_MODELS   13
#define LUMP_BRUSHES   14
#define LUMP_BRUSHSIDES   15
#define LUMP_NORMALS   16
#define HEADER_LUMPS   17
#define SIDE_FRONT   0
#define SIDE_ON   2
#define SIDE_BACK   1
#define PLANE_X   0
#define PLANE_Y   1
#define PLANE_Z   2
#define PLANE_ANYX   3
#define PLANE_ANYY   4
#define PLANE_ANYZ   5
#define PLANE_NONE   6
#define AXIAL(p)   ((p)->type < PLANE_ANYX)
#define ANGLE_UP   -1
#define ANGLE_DOWN   -2
#define CONTENTS_SOLID   0x0001
#define CONTENTS_WINDOW   0x0002
#define CONTENTS_LADDER   0x0004
#define CONTENTS_WATER   0x0020
#define LAST_VISIBLE_CONTENTS   0x80
#define CONTENTS_LEVEL_ALL   0xFF00
#define CONTENTS_LEVEL_1   0x0100
#define CONTENTS_LEVEL_2   0x0200
#define CONTENTS_LEVEL_3   0x0400
#define CONTENTS_LEVEL_4   0x0800
#define CONTENTS_LEVEL_5   0x1000
#define CONTENTS_LEVEL_6   0x2000
#define CONTENTS_LEVEL_7   0x4000
#define CONTENTS_LEVEL_8   0x8000
#define CONTENTS_ACTORCLIP   0x00010000
#define CONTENTS_PASSABLE   0x00020000
#define CONTENTS_TERRAIN   0x00040000
#define CONTENTS_LIGHTCLIP   0x00080000
#define CONTENTS_ACTOR   0x00800000
#define CONTENTS_ORIGIN   0x01000000
#define CONTENTS_WEAPONCLIP   0x02000000
#define CONTENTS_DEADACTOR   0x04000000
#define CONTENTS_DETAIL   0x08000000
#define CONTENTS_TRANSLUCENT   0x10000000
#define SURF_LIGHT   0x00000001
#define SURF_SLICK   0x00000002
#define SURF_WARP   0x00000008
#define SURF_BLEND33   0x00000010
#define SURF_BLEND66   0x00000020
#define SURF_FLOWING   0x00000040
#define SURF_NODRAW   0x00000080
#define SURF_HINT   0x00000100
#define SURF_SKIP   0x00000200
#define SURF_PHONG   0x00000400
#define SURF_BURN   0x00000800
#define SURF_FOOTSTEP   0x00001000
#define SURF_ORIGIN   0x00002000
#define SURF_ALPHATEST   0x02000000
#define MASK_ALL   (-1)
#define MASK_SOLID   (CONTENTS_SOLID | CONTENTS_WINDOW)
#define MASK_IMPASSABLE   (MASK_SOLID | CONTENTS_ACTORCLIP)
#define MASK_PASSABLE   (CONTENTS_PASSABLE | CONTENTS_WATER)
#define MASK_SHOT   (CONTENTS_SOLID | CONTENTS_ACTOR | CONTENTS_WEAPONCLIP | CONTENTS_WINDOW | CONTENTS_DEADACTOR)
#define MASK_VISIBILILITY   (CONTENTS_SOLID | CONTENTS_WATER)
#define MASK_CLIP   (CONTENTS_ACTORCLIP | CONTENTS_WEAPONCLIP | CONTENTS_LIGHTCLIP)
#define ROUTING_NOT_REACHABLE   0xFF
#define ROUTING_UNREACHABLE   -1
#define MAX_WORLD_WIDTH   4096
 -MAX_WORLD_WIDTH up tp +MAX_WORLD_WIDTH
#define GRID_WIDTH   (MAX_WORLD_WIDTH / UNIT_SIZE)
 absolute max - -GRID_WIDTH up tp +GRID_WIDTH
#define PATHFINDING_WIDTH   (GRID_WIDTH * 2)
 absolute max
#define PATHFINDING_HEIGHT   8
 15 max, adjusting above 8 will require a rewrite to the DV code
#define CELL_HEIGHT   (UNIT_HEIGHT / QUANT)
 A cell's height in QUANT sized units.
#define ACTOR_SIZE_INVALID   0
#define ACTOR_SIZE_NORMAL   1
#define ACTOR_SIZE_2x2   2
#define ACTOR_MAX_SIZE   (ACTOR_SIZE_2x2)
#define PATHFINDING_MAX_FALL   16
#define PATHFINDING_LEGROOMHEIGHT   4
#define PATHFINDING_MIN_STEPUP   2
#define PATHFINDING_MAX_STEPUP   4
#define PATHFINDING_NO_STEPUP   (2 * CELL_HEIGHT)
#define PATHFINDING_BIG_STEPUP   0x80
#define PATHFINDING_BIG_STEPDOWN   0x40
#define PATHFINDING_MIN_OPENING   6
#define PATHFINDING_MICROSTEP_SIZE   4
 The size (in model units) of a microstep. Must be a power of 2 and less than UNIT_SIZE.
#define PATHFINDING_MICROSTEP_SKIP   2
 The number of microsteps that can be stepped over by an actor. Used to allow an actor to stepup when the floor is not level or consitent.
#define DIRECTION_FALL   13
#define DIRECTION_CLIMB_UP   8
#define DIRECTION_CLIMB_DOWN   9
#define DIRECTION_STAND_UP   10
#define DIRECTION_CROUCH   11
#define ACTOR_MAX_STATES   2
#define LEVEL_LASTVISIBLE   255
#define LEVEL_LIGHTCLIP   256
#define LEVEL_LASTLIGHTBLOCKING   256
#define LEVEL_WEAPONCLIP   257
#define LEVEL_ACTORCLIP   258
#define LEVEL_MAX   259
#define NUM_REGULAR_MODELS   (LEVEL_ACTORCLIP + 1)
#define TL_FLAG_NONE   0x0000
#define TL_FLAG_REGULAR_LEVELS   0x00FF
#define TL_FLAG_ACTORCLIP   0x0100
#define TL_FLAG_WEAPONCLIP   0x0200
#define TL_FLAG_ALL   0x0300
#define LIGHTMAP_NIGHT   0
#define LIGHTMAP_DAY   1
#define LIGHTMAP_MAX   2
#define PSIDE_FRONT   1
#define PSIDE_BACK   2
#define PSIDE_BOTH   (PSIDE_FRONT|PSIDE_BACK)
#define PSIDE_FACING   4
#define MAX_TOKEN_CHARS   256
#define ON_EPSILON   0.1
#define DIST_EPSILON   (0.03125)
#define DIST_EPSILON2   (0.0625125)
#define MAP_DIST_EPSILON   0.01
#define NORMAL_EPSILON   0.00001
#define MAX_MAP_SIDES   (MAX_MAP_BRUSHES*6)
#define MAX_MAP_TEXTURES   1024
#define MAX_MAP_LIGHTMAP   (512 * 512)
#define MAP_SIZE_OFFSET   100

Detailed Description

Defined CONSTANTS (Macros are elsewhere).

Definition in file defines.h.


Define Documentation

#define ACTOR_MAX_SIZE   (ACTOR_SIZE_2x2)
#define ACTOR_MAX_STATES   2

Definition at line 341 of file defines.h.

Referenced by Grid_MoveCalc().

#define ACTOR_SIZE_2x2   2
#define ACTOR_SIZE_INVALID   0
#define ACTOR_SIZE_NORMAL   1
#define ANGLE_DOWN   -2

Definition at line 212 of file defines.h.

Referenced by BuildLights().

#define ANGLE_UP   -1

planes (x & ~1) and (x & ~1) + 1 are always opposites

Definition at line 211 of file defines.h.

Referenced by BuildLights().

#define AXIAL (  )     ((p)->type < PLANE_ANYX)
#define CELL_HEIGHT   (UNIT_HEIGHT / QUANT)
#define CONTENTS_ACTOR   0x00800000

should never be on a brush, only in game

Definition at line 253 of file defines.h.

Referenced by CL_ActorAppear().

#define CONTENTS_ACTORCLIP   0x00010000

remaining contents are non-visible, and don't eat brushes

Definition at line 249 of file defines.h.

Referenced by Check_SurfProp(), Check_SurfProps(), CheckFlags(), CheckMixedFaceContents(), CheckTexturesBasedOnFlags(), IsInLevel(), ParseBrush(), and SetImpliedFlags().

#define CONTENTS_DEADACTOR   0x04000000

Definition at line 256 of file defines.h.

#define CONTENTS_DETAIL   0x08000000

brushes to be added after vis leafs also used for debugging local entities

Definition at line 257 of file defines.h.

Referenced by BrushGE(), CheckPropagateParserContentFlags(), LE_AddToScene(), ParseBrush(), and SelectSplitSide().

#define CONTENTS_LADDER   0x0004

Definition at line 231 of file defines.h.

Referenced by Check_SurfProp(), Check_SurfProps(), and SetImpliedFlags().

#define CONTENTS_LEVEL_1   0x0100

Definition at line 239 of file defines.h.

Referenced by Check_CalculateLevelFlagFill().

#define CONTENTS_LEVEL_2   0x0200

Definition at line 240 of file defines.h.

#define CONTENTS_LEVEL_3   0x0400

Definition at line 241 of file defines.h.

#define CONTENTS_LEVEL_4   0x0800

Definition at line 242 of file defines.h.

#define CONTENTS_LEVEL_5   0x1000

Definition at line 243 of file defines.h.

#define CONTENTS_LEVEL_6   0x2000

Definition at line 244 of file defines.h.

#define CONTENTS_LEVEL_7   0x4000

Definition at line 245 of file defines.h.

#define CONTENTS_LEVEL_8   0x8000

Definition at line 246 of file defines.h.

Referenced by Check_CalculateLevelFlagFill().

#define CONTENTS_LEVEL_ALL   0xFF00

Definition at line 238 of file defines.h.

Referenced by Check_LevelForNodraws(), CheckLevelFlags(), and CheckZFighting().

#define CONTENTS_LIGHTCLIP   0x00080000

used for special brushes to cast shade

Definition at line 252 of file defines.h.

Referenced by Check_SurfProp(), Check_SurfProps(), CheckFlags(), CheckTexturesBasedOnFlags(), IsInLevel(), ParseBrush(), and SetImpliedFlags().

#define CONTENTS_ORIGIN   0x01000000
#define CONTENTS_PASSABLE   0x00020000

Definition at line 250 of file defines.h.

Referenced by CheckFlags(), LeafNode(), SetImpliedFlags(), and TR_MakeTracingNode().

#define CONTENTS_SOLID   0x0001
Note:
contents flags are separate bits a given brush can contribute multiple content bits multiple brushes can be in a single leaf. Please update DisplayContentFlags, if these are updated.
See also:
DisplayContentFlags lower bits are stronger, and will eat weaker brushes completely an eye is never valid in a solid

Definition at line 229 of file defines.h.

Referenced by BeginBSPFile(), BrushGE(), CheckFlags(), CL_AddBrushModel(), CL_HullForEntity(), CMod_LoadLeafs(), G_ShootSingle(), LE_AddToScene(), LeafNode(), MakeFaces_r(), ParseBrush(), PruneNodes_r(), R_RecursiveWorldNode(), and TR_MakeTracingNode().

#define CONTENTS_TERRAIN   0x00040000

Definition at line 251 of file defines.h.

Referenced by AdjustBrushesForOrigin(), GenerateMaterialFile(), and ParseBrush().

#define CONTENTS_TRANSLUCENT   0x10000000

auto set if any surface has trans

Definition at line 258 of file defines.h.

Referenced by Check_IsOptimisable(), CheckPropagateParserContentFlags(), and ParseBrush().

#define CONTENTS_WATER   0x0020
#define CONTENTS_WEAPONCLIP   0x02000000
#define CONTENTS_WINDOW   0x0002

translucent, but not watery

Definition at line 230 of file defines.h.

Referenced by FaceFromPortal(), and ParseBrush().

#define DEBUG_ALL   0x07FE
See also:
Com_DeveloperSet_f

Definition at line 55 of file defines.h.

#define DEBUG_CLIENT   0x20

Definition at line 60 of file defines.h.

Referenced by AC_AlienClick(), AC_AlienClick_f(), AC_KillOne_f(), AII_CollectingItems(), AII_CollectItem(), AIM_AddEmployeeFromMenu(), AIM_AircraftStart_f(), AIR_AddToAircraftTeam(), AIR_AircraftGetFromIDX(), AIR_AircraftReturnToBase(), AIR_GetDestinationFindRoot(), AIR_GetDestinationWhilePursuing(), AIR_IsInAircraftTeam(), AIR_Move(), AIR_MoveAircraftIntoNewHomebase(), AIR_MoveEmployeeInventoryIntoStorage(), AIR_NewAircraft(), AIR_ParseAircraft(), AIR_RemoveEmployee(), AIR_RemoveFromAircraftTeam(), AIR_SendAircraftPursuingUFO(), AIR_UpdateHangarCapForAll(), AIRFIGHT_ActionsAfterAirfight(), AIRFIGHT_AddProjectile(), AIRFIGHT_ProbabilityToHit(), AL_AddAliens(), AL_FillInContainment(), B_AddBuildingToBasePos(), B_AssembleMap_f(), B_BuildingClick_f(), B_BuildingDestroy(), B_CheckBuildingConstruction(), B_CheckUpdateBuilding(), B_ConstructBuilding(), B_NewBuilding(), B_PackInitialEquipment(), B_ParseBuildings(), B_RemoveItemsExceedingCapacity(), B_ResetAllStatusAndCapacities(), B_SelectBase(), B_SetBuildingByClick(), B_SetBuildingStatus(), B_SetUpFirstBase(), B_UpdateBaseCapacities(), B_UpdateStorageAndCapacity(), BS_Autosell_f(), BS_BuyItem_f(), BS_SellAircraft_f(), BS_SellItem_f(), CL_ActorDoorAction(), CL_ActorDoorAction_f(), CL_ActorDoShoot(), CL_ActorGetChr(), CL_ActorPlaySound(), CL_ActorReservedTUs(), CL_ActorResetClientAction(), CL_ActorUseDoor(), CL_AddEdict(), CL_AddMapParticle(), CL_CleanupAircraftCrew(), CL_ConnectionlessPacket(), CL_DisplayPopupInterceptUFO(), CL_DoorClose(), CL_DoorOpen(), CL_EntAppear(), CL_EntPerish(), CL_GameAutoGo(), CL_GetComponentsByItem(), CL_GetLocaleID(), CL_HandleNationData(), CL_Init(), CL_InvAmmo(), CL_LanguageInit(), CL_LanguageTest(), CL_LanguageTryToSet(), CL_NetSendItem(), CL_ParseCampaignEvents(), CL_ParseCities(), CL_ParseComponents(), CL_ParseConfigString(), CL_ParseEventMails(), CL_ParseNations(), CL_ParseResearchableCampaignStates(), CL_ParseResearchedCampaignItems(), CL_ParseResults(), CL_ParseServerData(), CL_ParseServerInfoMessage(), CL_ParseServerMessage(), CL_ParseTeamInfoMessage(), CL_ParticleSpawn(), CL_PingServer(), CL_PingServers_f(), CL_PopupAircraftClick_f(), CL_PopupChangeHomebase_f(), CL_ProcessPingReply(), CL_QueryMasterServerThread(), CL_ReadSinglePlayerData(), CL_SetClientState(), CL_TeamNum_f(), CL_UpdateActorAircraftVar(), CL_UpdateCharacterStats(), CL_ViewPrecacheModels(), Com_GetActorSound(), Com_GetMapDefinitionByID(), Com_ParseDamageTypes(), Com_ParseTeam(), CP_AddItemAsCollected_f(), CP_AddWeaponAmmo(), CP_BaseAttackStartMission(), CP_BuildBaseSetUpBase(), CP_CampaignExit(), CP_ChooseMap(), CP_CountMissionActive(), CP_ExecuteMissionTrigger(), CP_GetRandomPosOnGeoscape(), CP_GetRandomPosOnGeoscapeWithParameters(), CP_GetWinProbabilty(), CP_LoadXML(), CP_MissionEnd(), CP_MissionRemove(), CP_MissionStageEnd(), CP_SetAlienEquipmentByInterest(), CP_SetMissionVars(), CP_SpawnAlienBaseMission(), CP_SpawnNewMissions(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplySetStayAtBase(), CP_TerrorMissionGo(), E_CreateEmployeeAtIndex(), E_DeleteAllEmployees(), E_DeleteEmployee(), E_EmployeeDelete_f(), E_EmployeeHire_f(), E_GetHiredRobot(), E_HireForBuilding(), E_ResetEmployees(), E_UnhireEmployee(), GAME_CP_MissionAutoCheck_f(), GAME_CP_MissionAutoGo_f(), GAME_SendCurrentTeamSpawningInfo(), HOS_UpdateMenu(), HUD_DisplayFiremodes(), IN_StartupJoystick(), INS_DestroyInstallation_f(), INS_FinishInstallation(), INS_InitStartup(), INS_ParseInstallations(), INS_SelectInstallation(), INS_SetUpInstallation(), Irc_Client_CmdPrivmsg(), Irc_Input_Activate_f(), Irc_Logic_AddChannelName(), Irc_Proto_Msg(), Irc_Proto_ProcessServerMsg(), Key_Message(), Key_SetBinding(), LE_Cleanup(), MAP_GetMissionModel(), MAP_GetNation(), MAP_MultiSelectExecuteAction_f(), MP_LoadTeamMultiplayerInfo(), MP_SaveTeamMultiplayerInfo(), NAT_UpdateHappinessForAllNations(), PR_CalculateProductionPercentDone(), PR_DisassembleItem(), PR_ProductionListClick_f(), PR_ProductionListRightClick_f(), PR_UpdateProductionList(), RS_AssignScientist(), RS_AssignScientist_f(), RS_ChangeScientist_f(), RS_Collected_(), RS_GetTechByProvided(), RS_InitGUI(), RS_InitTree(), RS_MarkOneResearchable(), RS_MarkResearchable(), RS_MarkResearched(), RS_ParseTechnologies(), RS_RequirementsMet(), RS_ResearchStart_f(), SAV_GameLoad_f(), SAV_VerifyHeader(), SEQ_ExecuteModel(), SEQ_ExecutePrecache(), TR_CargoList(), TR_CargoListSelect_f(), TR_TransferAlienAfterMissionStart(), TR_TransferStart(), UFO_AddToGeoscape(), UFO_RemoveFromGeoscape(), UI_ButtonNodeLoaded(), UI_ContainerNodeAutoPlace(), UI_FireInit_f(), UI_ImageNodeLoaded(), UI_PanelNodeLoaded(), UI_ParseFont(), UI_ParseNode(), UI_ParseUIModel(), UI_TextScrollEnd(), UI_VScrollbarNodeLoaded(), UI_WindowNodeDraw(), UI_WindowNodeLoaded(), UP_FindEntry_f(), UR_DialogSelectSellNation_f(), and US_StoreUFO().

#define DEBUG_COMMANDS   0x10

Definition at line 59 of file defines.h.

Referenced by Cbuf_AddText(), Cmd_AddCommand(), Cmd_Close_f(), Cmd_ExecuteString(), and Cmd_Open_f().

#define DEBUG_ENGINE   0x04
#define DEBUG_EVENTSYS   0x0400
#define DEBUG_GAME   0x80
#define DEBUG_PATHING   0x0800
#define DEBUG_RENDERER   0x0100
#define DEBUG_ROUTING   0x1000

Definition at line 68 of file defines.h.

Referenced by CMod_LoadRouting(), and Grid_RecalcRouting().

#define DEBUG_SERVER   0x40
#define DEBUG_SHARED   0x02
#define DEBUG_SOUND   0x0200
#define DEBUG_SYSTEM   0x08

Definition at line 58 of file defines.h.

Referenced by SetWorkingDirectory(), and SV_LoadGame().

#define DIRECTION_CLIMB_DOWN   9

Definition at line 336 of file defines.h.

Referenced by Grid_MoveMark().

#define DIRECTION_CLIMB_UP   8

Definition at line 335 of file defines.h.

Referenced by Grid_MoveMark().

#define DIRECTION_CROUCH   11

Definition at line 338 of file defines.h.

Referenced by Grid_MoveMark().

#define DIRECTION_FALL   13

Definition at line 334 of file defines.h.

Referenced by G_EventActorFall(), Grid_MoveMark(), and LE_ActorGetStepTime().

#define DIRECTION_STAND_UP   10

Definition at line 337 of file defines.h.

Referenced by Grid_MoveMark().

#define DIST_EPSILON   (0.03125)
#define DIST_EPSILON2   (0.0625125)

Definition at line 381 of file defines.h.

#define ERR_DISCONNECT   2

Definition at line 121 of file defines.h.

Referenced by CL_CanMultiplayerStart(), and Com_Error().

#define ERR_DROP   1

Definition at line 120 of file defines.h.

#define ERR_FATAL   0

Definition at line 119 of file defines.h.

#define GRID_WIDTH   (MAX_WORLD_WIDTH / UNIT_SIZE)

absolute max - -GRID_WIDTH up tp +GRID_WIDTH

See also:
PATHFINDING_WIDTH

Definition at line 293 of file defines.h.

#define GROUND_DELTA   28
#define HEADER_LUMPS   17

Definition at line 190 of file defines.h.

#define LAST_VISIBLE_CONTENTS   0x80

max 16 bit please - otherwise change EV_ACTOR_MOVE to send a long and not a short

Definition at line 236 of file defines.h.

Referenced by ParseBrush(), and VisibleContents().

#define LEAFNODE   -1
#define LEVEL_ACTORCLIP   258

Definition at line 355 of file defines.h.

Referenced by DoRouting(), IsInLevel(), MakeTracingNodes(), TR_TileTestLine(), and TR_TileTestLineDM().

#define LEVEL_LASTLIGHTBLOCKING   256

Definition at line 353 of file defines.h.

Referenced by LightWorld(), and TR_TestLineSingleTile().

#define LEVEL_LASTVISIBLE   255
Note:
The bsp trees are generated based on the levels that a given brush is supposed to be in. So a brush that is tagged for viewing in levels 1, 2, and 3 will be in bsp tree 7 (1 + 2 + 4) a brush that is viewable in all levels will be in bsp tree level 255, and a bush that is not tagged for viewing by level will be in tree 0. Also, a brush will only be in one bsp tree - the brush tagged for levels 1, 2, and 3 will only be in tree 7, saving memory

Definition at line 351 of file defines.h.

Referenced by R_GetLevelSurfaceLists(), and TR_TileBoxTrace().

#define LEVEL_LIGHTCLIP   256

Definition at line 352 of file defines.h.

Referenced by IsInLevel(), MakeTracingNodes(), and TR_TileTestLine().

#define LEVEL_MAX   259

Definition at line 356 of file defines.h.

Referenced by CM_MakeTracingNodes(), and MakeTracingNodes().

#define LEVEL_WEAPONCLIP   257

Definition at line 354 of file defines.h.

Referenced by IsInLevel(), TR_TileTestLine(), and TR_TileTestLineDM().

#define LIGHTMAP_DAY   1

Definition at line 367 of file defines.h.

Referenced by LoadBSPFile(), R_ModLoadSurfaces(), and U2M_SetDefaultConfigValues().

#define LIGHTMAP_MAX   2

Definition at line 368 of file defines.h.

Referenced by EmitFace(), and SwapBSPFile().

#define LIGHTMAP_NIGHT   0

Definition at line 366 of file defines.h.

Referenced by LoadBSPFile(), R_ModLoadSurfaces(), and U2M_SetDefaultConfigValues().

#define LUMP_BRUSHES   14

Definition at line 187 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), and WriteBSPFile().

#define LUMP_BRUSHSIDES   15

Definition at line 188 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), and WriteBSPFile().

#define LUMP_EDGES   11

Definition at line 184 of file defines.h.

Referenced by LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_ENTITIES   0

Lump ID constants (directory in the bsp header)

Definition at line 173 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), and WriteBSPFile().

#define LUMP_FACES   6

Definition at line 179 of file defines.h.

Referenced by LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_LEAFBRUSHES   10

Definition at line 183 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), and WriteBSPFile().

#define LUMP_LEAFS   9

Definition at line 182 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_LIGHTING_DAY   8

Definition at line 181 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_LIGHTING_NIGHT   7

Definition at line 180 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_MODELS   13

Definition at line 186 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_NODES   4

Definition at line 177 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_NORMALS   16

Definition at line 189 of file defines.h.

Referenced by LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_PLANES   1

Definition at line 174 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_ROUTING   3

Definition at line 176 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), and WriteBSPFile().

#define LUMP_SURFEDGES   12

Definition at line 185 of file defines.h.

Referenced by LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_TEXINFO   5

Definition at line 178 of file defines.h.

Referenced by CM_AddMapTile(), LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define LUMP_VERTEXES   2

Definition at line 175 of file defines.h.

Referenced by LoadBSPFile(), R_ModAddMapTile(), and WriteBSPFile().

#define MAP_DIST_EPSILON   0.01

Definition at line 383 of file defines.h.

Referenced by PlaneEqual(), and SnapPlane().

#define MAP_SIZE_OFFSET   100

Definition at line 391 of file defines.h.

Referenced by CL_ActorMouseTrace(), and UI_InitRadar().

#define MASK_ALL   (-1)

Definition at line 276 of file defines.h.

Referenced by CM_EntTestLineDM(), SV_PointContents(), and TR_TraceToLeaf().

#define MASK_CLIP   (CONTENTS_ACTORCLIP | CONTENTS_WEAPONCLIP | CONTENTS_LIGHTCLIP)
#define MASK_IMPASSABLE   (MASK_SOLID | CONTENTS_ACTORCLIP)

Definition at line 278 of file defines.h.

#define MASK_PASSABLE   (CONTENTS_PASSABLE | CONTENTS_WATER)

Definition at line 279 of file defines.h.

#define MASK_SHOT   (CONTENTS_SOLID | CONTENTS_ACTOR | CONTENTS_WEAPONCLIP | CONTENTS_WINDOW | CONTENTS_DEADACTOR)
#define MASK_SOLID   (CONTENTS_SOLID | CONTENTS_WINDOW)
#define MASK_VISIBILILITY   (CONTENTS_SOLID | CONTENTS_WATER)

Definition at line 281 of file defines.h.

Referenced by CM_EntTestLine().

#define MAX_ACTIVETEAM   8
#define MAX_CLIENTS   256

Definition at line 105 of file defines.h.

Referenced by CL_ParseConfigString(), and CL_PlayerGetName().

#define MAX_EDICTS   1024
#define MAX_GENERAL   (MAX_CLIENTS*2)

Definition at line 108 of file defines.h.

#define MAX_HP   100
#define MAX_KEY   32

key / value pair sizes

Definition at line 169 of file defines.h.

Referenced by ParseEpair().

#define MAX_LEAFS   1024

Definition at line 158 of file defines.h.

Referenced by TR_BoxTrace().

#define MAX_MAP_BRUSHES   16384
#define MAX_MAP_BRUSHSIDES   65536
#define MAX_MAP_EDGES   128000

Definition at line 152 of file defines.h.

Referenced by GetEdge().

#define MAX_MAP_ENTITIES   2048

Definition at line 142 of file defines.h.

Referenced by ParseEntity(), and ParseMapEntity().

#define MAX_MAP_ENTSTRING   0x40000

Definition at line 143 of file defines.h.

Referenced by CMod_LoadEntityString().

#define MAX_MAP_FACES   65536

Definition at line 150 of file defines.h.

Referenced by BuildFacelights(), BuildLights(), EmitFace(), FreePatches(), and SubdividePatches().

#define MAX_MAP_LEAFBRUSHES   65536

Definition at line 151 of file defines.h.

Referenced by CM_InitBoxHull(), CMod_LoadLeafBrushes(), and EmitLeaf().

#define MAX_MAP_LEAFS   65536

Definition at line 148 of file defines.h.

Referenced by CMod_LoadLeafs(), and EmitLeaf().

#define MAX_MAP_LIGHTING   0x1000000

Definition at line 154 of file defines.h.

Referenced by FinalLightFace().

#define MAX_MAP_LIGHTMAP   (512 * 512)

Definition at line 389 of file defines.h.

Referenced by CalcLightinfoExtents().

#define MAX_MAP_MODELS   1024

upper design bounds leafbrushes, planes, and verts are still bounded by 16 bit short limits

Definition at line 140 of file defines.h.

Referenced by BeginModel(), and CMod_LoadSubmodels().

#define MAX_MAP_NODES   65536
#define MAX_MAP_PLANES   65536
#define MAX_MAP_ROUTING   0x100000

Definition at line 156 of file defines.h.

Referenced by DoRouting().

#define MAX_MAP_SIDES   (MAX_MAP_BRUSHES*6)

Definition at line 386 of file defines.h.

Referenced by Check_FindCompositeSides(), and LoadMapFile().

#define MAX_MAP_SURFEDGES   256000

Definition at line 153 of file defines.h.

Referenced by EmitFace(), and R_ModLoadSurfedges().

#define MAX_MAP_TEXINFO   16384

Definition at line 144 of file defines.h.

Referenced by CMod_LoadSurfaces(), and TexinfoForBrushTexture().

#define MAX_MAP_TEXTURES   1024

Definition at line 387 of file defines.h.

Referenced by FindMiptex().

#define MAX_MAP_VERTS   65536

Definition at line 149 of file defines.h.

Referenced by EmitFaceVertexes(), and GetVertexnum().

#define MAX_MOD_KNOWN   512

Definition at line 166 of file defines.h.

Referenced by R_ModAddMapTile(), R_ModForName(), and SV_LoadModelMinsMaxs().

#define MAX_MODELS   256
#define MAX_MOVELENGTH   60

Definition at line 75 of file defines.h.

Referenced by Grid_MoveMark().

#define MAX_ROUTE   33

Definition at line 74 of file defines.h.

Referenced by CL_ActorConditionalMoveCalc(), and Grid_MoveCalc().

#define MAX_STRING_CHARS   1024
#define MAX_STRING_TOKENS   80

Definition at line 96 of file defines.h.

Referenced by Cmd_TokenizeString().

#define MAX_TEAMS   8
#define MAX_TEXPATH   32

max length of filename relative to gamedir, any longer makes the bsp files unnecessarily long

Definition at line 99 of file defines.h.

Referenced by ParseBrush().

#define MAX_TILESTRINGS   25
#define MAX_TOKEN_CHARS   256
#define MAX_VALUE   1024

Definition at line 170 of file defines.h.

Referenced by ParseEpair().

#define MAX_WORLD_WIDTH   4096

-MAX_WORLD_WIDTH up tp +MAX_WORLD_WIDTH

Definition at line 291 of file defines.h.

Referenced by FindEdgeVerts(), LoadMapFile(), MakeBrushWindings(), MakeTreePortals_r(), ProcessLevel(), ProcessSubModel(), R_Setup3D(), SplitBrush(), and WindingIsHuge().

#define MAXEDGES   20

Definition at line 50 of file defines.h.

Referenced by FaceFromSuperverts().

#define NONE   -1
#define NONE_AMMO   0
#define NORMAL_EPSILON   0.00001

Definition at line 384 of file defines.h.

Referenced by PlaneEqual(), and SnapVector().

#define NUM_REGULAR_MODELS   (LEVEL_ACTORCLIP + 1)
#define ON_EPSILON   0.1
#define PATHFINDING_BIG_STEPDOWN   0x40

Definition at line 322 of file defines.h.

Referenced by Grid_MoveMark(), RT_TraceOnePassage(), and RT_UpdateConnection().

#define PATHFINDING_BIG_STEPUP   0x80

Definition at line 320 of file defines.h.

Referenced by Grid_MoveMark(), RT_TraceOnePassage(), and RT_UpdateConnection().

#define PATHFINDING_HEIGHT   8
#define PATHFINDING_LEGROOMHEIGHT   4

Definition at line 310 of file defines.h.

Referenced by RT_CheckCell().

#define PATHFINDING_MAX_FALL   16

Definition at line 308 of file defines.h.

Referenced by CL_AddPathingBox(), and Grid_MoveMark().

#define PATHFINDING_MAX_STEPUP   4

Definition at line 316 of file defines.h.

Referenced by Grid_MoveMark(), and RT_TraceOnePassage().

#define PATHFINDING_MICROSTEP_SIZE   4

The size (in model units) of a microstep. Must be a power of 2 and less than UNIT_SIZE.

Definition at line 328 of file defines.h.

Referenced by RT_MicroTrace().

#define PATHFINDING_MICROSTEP_SKIP   2

The number of microsteps that can be stepped over by an actor. Used to allow an actor to stepup when the floor is not level or consitent.

Definition at line 331 of file defines.h.

Referenced by RT_MicroTrace().

#define PATHFINDING_MIN_OPENING   6
#define PATHFINDING_MIN_STEPUP   2

Definition at line 313 of file defines.h.

Referenced by RT_CalcNewZ(), RT_FindOpening(), RT_MicroTrace(), and RT_TraceOnePassage().

#define PATHFINDING_NO_STEPUP   (2 * CELL_HEIGHT)
#define PATHFINDING_WIDTH   (GRID_WIDTH * 2)
#define PLANE_ANYX   3

3-5 are non-axial planes snapped to the nearest

Definition at line 202 of file defines.h.

Referenced by CM_InitBoxHull(), and PlaneTypeForNormal().

#define PLANE_ANYY   4

Definition at line 203 of file defines.h.

Referenced by PlaneTypeForNormal().

#define PLANE_ANYZ   5

Definition at line 204 of file defines.h.

Referenced by PlaneTypeForNormal(), and R_SetupFrustum().

#define PLANE_NONE   6

Definition at line 205 of file defines.h.

Referenced by TR_BuildTracingNode_r(), TR_TestLine_r(), and TR_TestLineDist_r().

#define PLANE_X   0

0-2 are axial planes

Definition at line 197 of file defines.h.

Referenced by PlaneTypeForNormal(), SV_CreateWorldSector(), TR_TestLine_r(), and TR_TestLineDist_r().

#define PLANE_Y   1
#define PLANE_Z   2

Definition at line 199 of file defines.h.

Referenced by PlaneTypeForNormal(), TR_TestLine_r(), and TR_TestLineDist_r().

#define PLANENUM_LEAF   -1
#define PLANESIDE_EPSILON   0.001
Note:
The comment line specifying files has the following syntax: [parent dir/filename] OR [parent dir] OR {project name}

Definition at line 39 of file defines.h.

Referenced by TR_BoxOnPlaneSide().

#define PLAYER_HEIGHT   (UNIT_HEIGHT - 16)

Definition at line 131 of file defines.h.

Referenced by Grid_MoveMark().

#define PRINT_CHAT   0

Definition at line 115 of file defines.h.

Referenced by CL_ParseServerMessage(), G_CheckFlood(), G_Say_f(), and SV_DropClient().

#define PRINT_CONSOLE   2
#define PRINT_HUD   1
#define PRINT_NONE   -1

Definition at line 114 of file defines.h.

Referenced by SV_PlayerPrintf().

#define PSIDE_BACK   2
#define PSIDE_BOTH   (PSIDE_FRONT|PSIDE_BACK)

Definition at line 372 of file defines.h.

Referenced by SelectSplitSide(), SplitBrushList(), and TestBrushToPlanenum().

#define PSIDE_FACING   4

Definition at line 373 of file defines.h.

Referenced by SelectSplitSide(), SplitBrushList(), and TestBrushToPlanenum().

#define PSIDE_FRONT   1
#define QUANT   4
#define ROUTING_NOT_REACHABLE   0xFF
#define ROUTING_UNREACHABLE   -1

(int) Indicates that a cell is not reachable. A DV value.

Definition at line 287 of file defines.h.

Referenced by AI_TurnIntoDirection(), CL_ActorMaximumMove(), CL_ActorTraceMove(), G_ClientMove(), and Grid_MoveNext().

#define SIDE_BACK   1

Definition at line 194 of file defines.h.

Referenced by ChopWindingInPlace(), and ClipWindingEpsilon().

#define SIDE_FRONT   0

Definition at line 192 of file defines.h.

Referenced by ChopWindingInPlace(), and ClipWindingEpsilon().

#define SIDE_ON   2

Definition at line 193 of file defines.h.

Referenced by ChopWindingInPlace(), and ClipWindingEpsilon().

#define STATE_CLOSED   1

Definition at line 92 of file defines.h.

Referenced by Door_Use(), and SP_func_door().

#define STATE_OPENED   0

Definition at line 91 of file defines.h.

Referenced by AI_CheckUsingDoor(), and Door_Use().

#define SURF_ALPHATEST   0x02000000

alpha test for transparent textures

Definition at line 273 of file defines.h.

Referenced by ParseBrush(), R_BuildLightmap(), and R_LoadSurfacesArrays_().

#define SURF_BLEND33   0x00000010

0.33 alpha blending

Definition at line 263 of file defines.h.

Referenced by ParseBrush(), R_BuildLightmap(), R_LoadSurfacesArrays_(), and R_SetSurfaceState().

#define SURF_BLEND66   0x00000020

0.66 alpha blending

Definition at line 264 of file defines.h.

Referenced by ParseBrush(), R_BuildLightmap(), R_LoadSurfacesArrays_(), and R_SetSurfaceState().

#define SURF_BURN   0x00000800

will keep burning when flamed

Definition at line 270 of file defines.h.

Referenced by G_FireAffectedSurface().

#define SURF_FLOWING   0x00000040

scroll towards angle

Definition at line 265 of file defines.h.

#define SURF_FOOTSTEP   0x00001000

only for grabbing footsteps textures

Definition at line 271 of file defines.h.

Referenced by ParseBrush().

#define SURF_HINT   0x00000100

make a primary bsp splitter

Definition at line 267 of file defines.h.

Referenced by CheckTexturesBasedOnFlags(), MakeBspBrushList(), ParseBrush(), SelectSplitSide(), SetImpliedFlags(), and TestBrushToPlanenum().

#define SURF_LIGHT   0x00000001

value will hold the light strength

Definition at line 260 of file defines.h.

Referenced by CheckNodraws(), FaceFromPortal(), and HasLight().

#define SURF_NODRAW   0x00000080
#define SURF_ORIGIN   0x00002000

use this to identity those submodel surfaces that must not be translated in case of rma

Definition at line 272 of file defines.h.

Referenced by AdjustBrushesForOrigin(), and R_SetupSubmodels().

#define SURF_PHONG   0x00000400

phong interpolated lighting at compile time

Definition at line 269 of file defines.h.

Referenced by BuildFacelights(), Check_SetNodraw(), CheckTexturesBasedOnFlags(), FacesWithVert(), R_DrawBspNormals(), R_LoadBspVertexArrays(), and SetImpliedFlags().

#define SURF_SKIP   0x00000200

completely ignored, allowing non-closed brushes

Definition at line 268 of file defines.h.

Referenced by ParseBrush(), SelectSplitSide(), and SetImpliedFlags().

#define SURF_SLICK   0x00000002

effects game physics

Definition at line 261 of file defines.h.

Referenced by SetImpliedFlags().

#define SURF_WARP   0x00000008
#define TEAM_DEFAULT   1

Definition at line 52 of file defines.h.

Referenced by AIL_toTeamInt(), CL_TeamNum_f(), G_GetTeam(), GAME_GetCurrentTeam(), and SP_worldspawn().

#define TEXINFO_NODE   -1
#define TL_FLAG_ACTORCLIP   0x0100

Definition at line 362 of file defines.h.

Referenced by CL_ActorMouseTrace(), TR_TileTestLine(), and TR_TileTestLineDM().

#define TL_FLAG_ALL   0x0300

Definition at line 364 of file defines.h.

#define TL_FLAG_NONE   0x0000

Definition at line 360 of file defines.h.

Referenced by CL_GetHitProbability(), G_TestLine(), and G_TestLineWithEnts().

#define TL_FLAG_REGULAR_LEVELS   0x00FF

Definition at line 361 of file defines.h.

Referenced by TR_TileTestLine(), and TR_TileTestLineDM().

#define TL_FLAG_WEAPONCLIP   0x0200

Definition at line 363 of file defines.h.

Referenced by TR_TileTestLine(), and TR_TileTestLineDM().

#define TU_CROUCH   3

Time units for crouching and standing up

Definition at line 78 of file defines.h.

Referenced by CL_ActorStandCrouch_f(), CL_ActorStateChange(), G_ClientStateChange(), HUD_RefreshButtons(), HUD_ToggleCrouchReservation_f(), and HUD_UpdateActor().

#define TU_CROUCH_MOVING_FACTOR   1.5

The factor the normal movement is multiplied when in crouching mode

Definition at line 85 of file defines.h.

Referenced by G_ClientMove(), and Grid_MoveMark().

#define TU_DOOR_ACTION   1

Time units used to interact with doors

Definition at line 84 of file defines.h.

Referenced by CL_ActorDoorAction_f(), and SP_func_door().

#define TU_FLYING_MOVING_FACTOR   2

The factor the normal movement is multiplied when flying

Definition at line 86 of file defines.h.

#define TU_GET_RELOAD ( containerOut,
containerIn,
weapon   )     (csi.ids[(containerOut)].out + (weapon)->reload + csi.ids[(containerIn)].in)

Definition at line 88 of file defines.h.

Referenced by HUD_CalcReloadTime().

#define TU_MOVE_CLIMB   4

Time units used to climb a ladder.

Definition at line 82 of file defines.h.

#define TU_MOVE_DIAGONAL   3

Time units used to move to a diagonal field/square.

Definition at line 81 of file defines.h.

#define TU_MOVE_FALL   0

Time units used to fall.

Definition at line 83 of file defines.h.

#define TU_MOVE_STRAIGHT   2

Time units used to move straight to the next field/square.

Definition at line 80 of file defines.h.

Referenced by AI_FighterCalcBestAction(), and G_ClientMove().

#define TU_TURN   1

Time units for turning (no matter how far).

Definition at line 79 of file defines.h.

Referenced by CL_ActorTurnMouse(), G_ClientMove(), and G_ClientTurn().

#define UNIT_HEIGHT   64
#define UNIT_SIZE   32
#define WALL_SIZE   5

Definition at line 134 of file defines.h.

Referenced by RT_CheckCell(), and RT_ObstructedTrace().


Generated by  doxygen 1.6.2