Defined CONSTANTS (Macros are elsewhere). More...
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 |
Defined CONSTANTS (Macros are elsewhere).
Definition in file defines.h.
#define ACTOR_MAX_SIZE (ACTOR_SIZE_2x2) |
Definition at line 305 of file defines.h.
Referenced by CMod_LoadRouting(), CMod_RerouteMap(), DoRouting(), Grid_RecalcBoxRouting(), RT_CheckCell(), RT_UpdateConnectionColumn(), and RT_WriteCSVFiles().
#define ACTOR_MAX_STATES 2 |
Definition at line 341 of file defines.h.
Referenced by Grid_MoveCalc().
#define ACTOR_SIZE_2x2 2 |
Definition at line 304 of file defines.h.
Referenced by CL_ActorAppear(), CL_ActorSearchAtGridPos(), G_Actor2x2Spawn(), G_ClientGetFreeSpawnPointForActorSize(), GAME_NetSendCharacter(), and LE_AddToScene().
#define ACTOR_SIZE_INVALID 0 |
Definition at line 302 of file defines.h.
Referenced by CMod_RerouteMap(), Com_GetCharacterValues(), RT_CheckCell(), and RT_UpdateConnectionColumn().
#define ACTOR_SIZE_NORMAL 1 |
Definition at line 303 of file defines.h.
Referenced by CL_ActorAppear(), CL_ActorSearchAtGridPos(), CL_TargetingGrenade(), CL_TargetingStraight(), Com_GetCharacterValues(), G_ActorSpawn(), G_ClientGetFreeSpawnPointForActorSize(), G_InitEdict(), G_SpawnAIPlayer(), G_SpawnFloor(), GAME_NetSendCharacter(), LE_Add(), LE_AddToScene(), RT_FindOpening(), RT_FindOpeningCeilingFrac(), RT_FindOpeningFloorFrac(), SP_civilian_target(), and SP_misc_model().
#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 | ) | ((p)->type < PLANE_ANYX) |
Definition at line 207 of file defines.h.
Referenced by CreateNewFloatPlane(), R_DrawBspModelSurfaces(), R_RecursiveWorldNode(), SelectSplitSide(), TR_BoxOnPlaneSide(), and TR_RecursiveHullCheck().
#define CELL_HEIGHT (UNIT_HEIGHT / QUANT) |
A cell's height in QUANT sized units.
Definition at line 299 of file defines.h.
Referenced by DoRouting(), Grid_Fall(), Grid_MoveMark(), RT_CalcNewZ(), RT_CheckCell(), RT_FillPassageData(), RT_FindOpening(), RT_MicroTrace(), RT_PlaceInit(), RT_TraceOnePassage(), RT_TracePassage(), and RT_UpdateConnection().
#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_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_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 |
removed before bsping an entity
Definition at line 254 of file defines.h.
Referenced by Check_ContainedBrushes(), Check_IsOptimisable(), Check_SurfProp(), Check_SurfProps(), CheckBrushes(), CheckLevelFlags(), CheckMixedFaceContents(), CheckTexturesBasedOnFlags(), ParseBrush(), and SetImpliedFlags().
#define CONTENTS_PASSABLE 0x00020000 |
Definition at line 250 of file defines.h.
Referenced by CheckFlags(), LeafNode(), SetImpliedFlags(), and TR_MakeTracingNode().
#define CONTENTS_SOLID 0x0001 |
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 |
Definition at line 232 of file defines.h.
Referenced by G_PhysicsStep(), GenerateMaterialFile(), LE_PlaySoundFileForContents(), ParseBrush(), and SetImpliedFlags().
#define CONTENTS_WEAPONCLIP 0x02000000 |
stop bullets
Definition at line 255 of file defines.h.
Referenced by Check_SurfProp(), Check_SurfProps(), CheckFlags(), CheckTexturesBasedOnFlags(), CM_InitBoxHull(), IsInLevel(), ParseBrush(), and SetImpliedFlags().
#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 |
#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 |
Definition at line 57 of file defines.h.
Referenced by AI_PrepBestAction(), CM_AddMapTile(), CM_LoadMap(), CMod_LoadBrushes(), CMod_LoadBrushSides(), CMod_LoadLeafBrushes(), CMod_LoadLeafs(), CMod_LoadNodes(), CMod_LoadPlanes(), CMod_LoadSubmodels(), CMod_LoadSurfaces(), Com_GiveName(), Com_SetServerState(), and tick_timer().
#define DEBUG_EVENTSYS 0x0400 |
Definition at line 65 of file defines.h.
Referenced by CL_CheckDefault(), CL_ExecuteBattlescapeEvent(), CL_GetEventTime(), CL_ParseEvent(), LE_ExecuteThink(), LE_SetThink(), and SV_AddEvent().
#define DEBUG_GAME 0x80 |
Definition at line 62 of file defines.h.
Referenced by Door_Use(), G_ClientTeamInfo(), G_ClientUserinfoChanged(), G_Damage(), G_GetTeam(), G_ShootSingle(), G_TouchEdicts(), SP_func_breakable(), SP_func_door(), and SP_func_rotating().
#define DEBUG_PATHING 0x0800 |
Definition at line 67 of file defines.h.
Referenced by CL_ActorTraceMove(), CMod_RerouteMap(), Grid_CheckForbidden(), Grid_Fall(), Grid_MoveCalc(), Grid_MoveLength(), Grid_MoveMark(), Grid_RecalcBoxRouting(), and Grid_RecalcRouting().
#define DEBUG_RENDERER 0x0100 |
Definition at line 63 of file defines.h.
Referenced by R_BindColorAttachments(), R_LoadMaterials(), R_LoadObjModelLine(), R_LoadShader(), R_ModLoadEdges(), R_ModLoadLeafs(), R_ModLoadNodes(), R_ModLoadPlanes(), R_ModLoadSubmodels(), R_ModLoadSurfaces(), R_ModLoadSurfedges(), R_ModLoadTexinfo(), R_ModLoadVertexes(), R_ParseStage(), R_ProgramVariable(), R_RunThread(), and R_SortSurfacesArrays().
#define DEBUG_ROUTING 0x1000 |
Definition at line 68 of file defines.h.
Referenced by CMod_LoadRouting(), and Grid_RecalcRouting().
#define DEBUG_SERVER 0x40 |
Definition at line 61 of file defines.h.
Referenced by Master_HeartbeatThread(), Master_Shutdown(), NET_DatagramFindFreeSocket(), NET_StreamClose(), NET_StreamGetFree(), NET_Wait(), SV_AssembleMap(), SV_Begin_f(), SV_ClipMoveToEntities(), SV_ConnectionlessPacket(), SV_ExecuteClientMessage(), SV_ExecuteUserCommand(), SV_GetCvarToken(), SV_Map(), SV_MapcycleAdd(), SV_New_f(), SV_NextMapcycle(), SV_ServerCommand_f(), SV_SetClientState(), SV_SetMaster_f(), SV_Spawn_f(), SV_UserinfoChanged(), SVC_DirectConnect(), and SVC_Info().
#define DEBUG_SHARED 0x02 |
Definition at line 56 of file defines.h.
Referenced by Com_ParseItem(), I_AddInvList(), I_AddToInventory(), I_EquipActor(), I_GetUsedSlots(), I_MoveInInventory(), I_PackAmmoAndWeapon(), I_RemoveFromInventory(), I_RemoveInvList(), INVSH_CheckShapeCollision(), INVSH_CheckToInventory(), INVSH_FindSpace(), and INVSH_LoadableInWeapon().
#define DEBUG_SOUND 0x0200 |
Definition at line 64 of file defines.h.
Referenced by CL_ActorPlaySound(), Com_GetActorSound(), LE_AddAmbientSound(), LE_PlaySoundFileAndParticleForSurface(), M_Change_f(), M_RandomTrack_f(), and S_PlaySample().
#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) |
Definition at line 380 of file defines.h.
Referenced by Check_EdgePlaneIntersection(), Com_GrenadeTarget(), RT_CheckCell(), RT_FindOpeningCeilingFrac(), RT_FindOpeningFloorFrac(), RT_MicroTrace(), RT_ObstructedTrace(), TR_ClipBoxToBrush(), and TR_RecursiveHullCheck().
#define ERR_DISCONNECT 2 |
Definition at line 121 of file defines.h.
Referenced by CL_CanMultiplayerStart(), and Com_Error().
#define GRID_WIDTH (MAX_WORLD_WIDTH / UNIT_SIZE) |
absolute max - -GRID_WIDTH up tp +GRID_WIDTH
#define GROUND_DELTA 28 |
Definition at line 124 of file defines.h.
Referenced by CL_ActorTargetAlign_f(), CL_TargetingGrenade(), G_ShootGrenade(), and LE_PlaceItem().
#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 |
Definition at line 45 of file defines.h.
Referenced by BuildNodeChildren(), CM_InitBoxHull(), CM_MakeTracingNodes(), ConstructLevelNodes_r(), R_ModLoadNodes(), SV_AreaEdicts_r(), SV_CreateWorldSector(), SV_LinkEdict(), TR_BoxLeafnums_headnode(), TR_BoxLeafnums_r(), TR_RecursiveHullCheck(), TR_TestInLeaf(), and TR_TraceToLeaf().
#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 |
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) |
Definition at line 282 of file defines.h.
Referenced by Check_IsOptimisable(), Check_SurfProps(), CheckLevelFlags(), IsInLevel(), and TR_MakeTracingNode().
#define MASK_PASSABLE (CONTENTS_PASSABLE | CONTENTS_WATER) |
#define MASK_SHOT (CONTENTS_SOLID | CONTENTS_ACTOR | CONTENTS_WEAPONCLIP | CONTENTS_WINDOW | CONTENTS_DEADACTOR) |
Definition at line 280 of file defines.h.
Referenced by CL_TargetingGrenade(), CL_TargetingStraight(), G_ShootGrenade(), and G_ShootSingle().
#define MASK_SOLID (CONTENTS_SOLID | CONTENTS_WINDOW) |
Definition at line 277 of file defines.h.
Referenced by CL_ActorVis(), CL_ParticleRun2(), G_PhysicsStep(), LE_PlayFootStepSound(), and R_DrawFlareSurfaces().
#define MASK_VISIBILILITY (CONTENTS_SOLID | CONTENTS_WATER) |
Definition at line 281 of file defines.h.
Referenced by CM_EntTestLine().
#define MAX_ACTIVETEAM 8 |
Definition at line 42 of file defines.h.
Referenced by CL_UpdateEquipmentMenuParameters_f(), CP_BaseAttackStartMission(), and SV_CheckMaxSoldiersPerPlayer().
#define MAX_CLIENTS 256 |
Definition at line 105 of file defines.h.
Referenced by CL_ParseConfigString(), and CL_PlayerGetName().
#define MAX_EDICTS 1024 |
Definition at line 106 of file defines.h.
Referenced by AIL_see(), CL_AddEdict(), G_ClientGetFreeSpawnPoint(), G_RecalcRouting(), G_TestLineWithEnts(), G_TouchEdicts(), G_TouchSolids(), G_TouchTriggers(), LE_Add(), and SV_ClipMoveToEntities().
#define MAX_HP 100 |
Definition at line 111 of file defines.h.
Referenced by HOS_HealCharacter(), SP_2x2_start(), SP_alien_start(), SP_civilian_start(), SP_human_start(), and SP_player_start().
#define MAX_KEY 32 |
#define MAX_LEAFS 1024 |
Definition at line 158 of file defines.h.
Referenced by TR_BoxTrace().
#define MAX_MAP_BRUSHES 16384 |
Definition at line 141 of file defines.h.
Referenced by Check_NearList(), CM_InitBoxHull(), CMod_LoadBrushes(), EmitBrushes(), LoadBSPFile(), LoadMapFile(), and ParseBrush().
#define MAX_MAP_BRUSHSIDES 65536 |
Definition at line 147 of file defines.h.
Referenced by AddBrushBevels(), CM_InitBoxHull(), CMod_LoadBrushSides(), EmitBrushes(), and ParseBrush().
#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 |
Definition at line 146 of file defines.h.
Referenced by CL_ClipMoveToLEs(), CM_HeadnodeForBox(), CM_InitBoxHull(), CMod_LoadNodes(), EmitDrawNode_r(), SV_ClipMoveToEntities(), SV_HullForEntity(), TR_BuildTracingNode_r(), and TR_RecursiveHullCheck().
#define MAX_MAP_PLANES 65536 |
Definition at line 145 of file defines.h.
Referenced by BuildTree_r(), CM_InitBoxHull(), CMod_LoadPlanes(), CreateNewFloatPlane(), LoadMapFile(), and TR_RecursiveHullCheck().
#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 |
Definition at line 107 of file defines.h.
Referenced by CL_AddBrushModel(), CL_HullForEntity(), CL_ParseConfigString(), CL_ViewLoadMedia(), CM_InlineModel(), SV_HullForEntity(), and SV_ModelIndex().
#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 |
Definition at line 94 of file defines.h.
Referenced by CL_Rcon_f(), CL_TeamNum_f(), Cmd_Alias_f(), Com_MacroExpandString(), Key_Event(), R_LoadObjModel_(), R_LoadProgram(), and R_LoadShader().
#define MAX_STRING_TOKENS 80 |
Definition at line 96 of file defines.h.
Referenced by Cmd_TokenizeString().
#define MAX_TEAMS 8 |
Definition at line 104 of file defines.h.
Referenced by CL_ParseResults(), CL_ParseTeamInfoMessage(), Destroy_Breakable(), G_CheckVis(), G_ClientShoot(), G_Damage(), G_GetNextActiveTeam(), G_GetStartingTeam(), G_GetTeam(), G_MatchEndCheck(), G_MatchSendResults(), G_SetTeamForPlayer(), G_ShootGrenade(), SVCmd_AI_Add_f(), and SVCmd_Win_f().
#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 |
Definition at line 103 of file defines.h.
Referenced by CL_SetConfigString(), SV_AssembleMap(), SV_Configstring(), SV_Map_f(), and SV_SetConfigString().
#define MAX_TOKEN_CHARS 256 |
Definition at line 375 of file defines.h.
Referenced by CL_SetConfigString(), Com_InitArgv(), GetToken(), SV_AssembleMap(), SV_Configstring(), SV_Map_f(), and SV_SetConfigString().
#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 |
Definition at line 70 of file defines.h.
Referenced by AI_TryToReloadWeapon(), CL_ActorGetContainerForReload(), CL_ActorReactionFireChange(), CL_ActorReload(), CL_ActorRemoveFromTeamList(), CL_AddActorWeapon(), CL_AddUGV(), CL_InvDel(), CL_NetSendItem(), Com_ParseScripts(), G_ActorInvMove(), G_AppearPerishEvent(), G_EventReactionFireChange(), G_InventoryToFloor(), G_MissionTouch(), G_MoralePanic(), G_ReadItem(), G_SendInvisible(), G_WriteItem(), HUD_CalcReloadTime(), HUD_PopupFiremodeReservation(), HUD_ShotReserve_f(), HUD_UpdateActor(), HUD_UpdateReactionFiremodes(), I_AddToInventory(), I_MoveInInventory(), I_TryAddToInventory(), INV_LoadWeapon(), INV_UnloadWeapon(), INVSH_FindSpace(), INVSH_GetFirstShapePosition(), INVSH_GetItemByIDX(), LE_GetAnim(), testItemAdd(), testItemDel(), testItemMove(), UI_BaseInventoryNodeGetItem(), UI_ContainerNodeAutoPlace(), UI_ContainerNodeGetExistingItem(), and UI_ContainerNodeUpdateEquipment().
#define NONE_AMMO 0 |
Definition at line 71 of file defines.h.
Referenced by CL_LoadItemXML(), CL_NetReceiveItem(), CL_SaveItemXML(), CP_AddWeaponAmmo(), G_AddItemToFloor(), I_EquipActor(), I_EquipActorMelee(), I_EquipActorRobot(), I_MoveInInventory(), I_PackAmmoAndWeapon(), INV_InitInventory(), INV_UnloadWeapon(), and UI_ContainerNodeUpdateEquipment().
#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) |
Definition at line 357 of file defines.h.
Referenced by CM_AddMapTile(), CM_InlineModel(), CM_MakeTracingNodes(), CMod_LoadEntityString(), ProcessWorldModel(), and R_SetupSubmodels().
#define ON_EPSILON 0.1 |
Definition at line 377 of file defines.h.
Referenced by ChopWinding(), FixWinding(), MakeHeadnodePortals(), SubdivideFace(), SubdividePatch(), TR_TestLine_r(), and TR_TestLineDist_r().
#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 |
15 max, adjusting above 8 will require a rewrite to the DV code
Definition at line 297 of file defines.h.
Referenced by AI_PrepBestAction(), AIL_positionshoot(), CheckUnit(), CheckUnitThread(), CL_ActorMouseTrace(), CL_CvarWorldLevel(), CL_SpawnParseEntitystring(), CM_AddMapTile(), CM_LoadMap(), CMod_LoadRouting(), CMod_RerouteMap(), G_Actor2x2Spawn(), G_ActorSpawn(), Grid_Ceiling(), Grid_Fall(), Grid_Filled(), Grid_Floor(), Grid_Height(), Grid_MoveCalc(), Grid_MoveLength(), Grid_MoveMark(), Grid_PosToVec(), Grid_RecalcRouting(), Grid_StepUp(), HUD_Update(), R_ModBeginLoading(), RT_CalcNewZ(), RT_CheckCell(), RT_FillPassageData(), RT_FindOpening(), RT_FindOpeningCeilingFrac(), RT_GetMapSize(), RT_TracePassage(), RT_UpdateConnection(), RT_UpdateConnectionColumn(), SP_civilian_target(), and UI_InitRadar().
#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 |
Definition at line 326 of file defines.h.
Referenced by RT_CalcNewZ(), RT_CheckCell(), RT_FindOpening(), RT_PlaceDoesIntersectEnough(), RT_PlaceInit(), RT_TraceOnePassage(), RT_TraceOpening(), and RT_TracePassage().
#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) |
Definition at line 318 of file defines.h.
Referenced by RT_FillPassageData(), RT_TraceOnePassage(), RT_TracePassage(), RT_UpdateConnection(), and RT_UpdateConnectionColumn().
#define PATHFINDING_WIDTH (GRID_WIDTH * 2) |
absolute max
Definition at line 295 of file defines.h.
Referenced by AI_FindHerdLocation(), AI_FindHidingLocation(), AI_PrepBestAction(), AIL_positionshoot(), CheckConnectionsThread(), CheckUnit(), CL_AddPathing(), CM_AddMapTile(), CM_LoadMap(), CMod_LoadRouting(), CMod_RerouteMap(), DoRouting(), Grid_MoveCalc(), Grid_MoveMark(), Grid_RecalcBoxRouting(), Grid_RecalcRouting(), R_ModBeginLoading(), RT_CheckCell(), RT_GetMapSize(), and RT_UpdateConnectionColumn().
#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 |
Definition at line 198 of file defines.h.
Referenced by PlaneTypeForNormal(), SV_CreateWorldSector(), TR_TestLine_r(), and TR_TestLineDist_r().
#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 |
Definition at line 46 of file defines.h.
Referenced by BuildNodeChildren(), BuildTree_r(), CMod_LoadNodes(), EmitDrawNode_r(), EmitVertexes_r(), FixEdges_r(), FreeTree_r(), FreeTreePortals_r(), LeafNode(), MakeFaces_r(), MakeHeadnodePortals(), MakeTreePortals_r(), MarkVisibleSides_r(), ParseBrush(), ProcessSubModel(), PruneNodes_r(), R_ModLoadNodes(), and TR_BuildTracingNode_r().
#define PLANESIDE_EPSILON 0.001 |
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 |
Definition at line 117 of file defines.h.
Referenced by G_ClientBegin(), G_ClientConnect(), G_ClientDisconnect(), G_ClientSpawn(), G_GetTeam(), G_Players_f(), StringToFilter(), and SV_Kick_f().
#define PRINT_HUD 1 |
Definition at line 116 of file defines.h.
Referenced by CL_ParseServerMessage(), G_ActionCheck(), G_ActionCheckForCurrentTeam(), G_ActorInvMove(), G_ActorSetInRescueZone(), G_CheckForceEndRound(), G_ClientShoot(), G_ClientStateChange(), G_Damage(), G_MissionTouch(), G_MoraleBehaviour(), G_MoralePanic(), G_MoraleRage(), G_ReactionFireCanBeEnabled(), G_ShootGrenade(), and Message_Use().
#define PRINT_NONE -1 |
Definition at line 114 of file defines.h.
Referenced by SV_PlayerPrintf().
#define PSIDE_BACK 2 |
Definition at line 371 of file defines.h.
Referenced by BrushMostlyOnSide(), R_CullBox(), SelectSplitSide(), SplitBrush(), SplitBrushList(), TestBrushToPlanenum(), TR_BoxLeafnums_r(), and TR_BoxOnPlaneSide().
#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 |
Definition at line 370 of file defines.h.
Referenced by BrushMostlyOnSide(), SelectSplitSide(), SplitBrush(), SplitBrushList(), TestBrushToPlanenum(), TR_BoxLeafnums_r(), and TR_BoxOnPlaneSide().
#define QUANT 4 |
Definition at line 132 of file defines.h.
Referenced by CL_DisplayFloorArrows(), RT_CheckCell(), RT_FindOpeningCeilingFrac(), RT_FindOpeningFloorFrac(), and RT_MicroTrace().
#define ROUTING_NOT_REACHABLE 0xFF |
(byte) Indicates a cell that is not reachable. A TU value.
Definition at line 286 of file defines.h.
Referenced by AI_CheckForMissionTargets(), AI_CivilianCalcBestAction(), AI_FighterCalcBestAction(), AI_FindHerdLocation(), AI_FindHidingLocation(), AI_PrepBestAction(), AIL_positionshoot(), CL_ActorMaximumMove(), CL_ActorStartMove(), CL_ActorTraceMove(), CL_AddPathingBox(), CL_AddTargetingBox(), CMod_LoadRouting(), CMod_RerouteMap(), G_ClientMove(), Grid_MoveCalc(), Grid_MoveLength(), Grid_MoveMark(), Grid_MoveNext(), HUD_UpdateActor(), and HUD_UpdateActorMove().
#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_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 |
don't bother referencing the texture
Definition at line 266 of file defines.h.
Referenced by Check_FindCompositeSides(), Check_IsOptimisable(), Check_SetNodraw(), Check_SurfProp(), Check_SurfProps(), CheckLevelFlags(), CheckNodraws(), CheckTexturesBasedOnFlags(), CheckZFighting(), FaceFromPortal(), and SetImpliedFlags().
#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 |
#define SURF_WARP 0x00000008 |
turbulent water warp
Definition at line 262 of file defines.h.
Referenced by BuildFacelights(), FinalLightFace(), R_DrawBspNormals(), R_LoadSurfacesArrays_(), R_ModLoadSurfaces(), SetImpliedFlags(), and SubdivideFace().
#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 |
Definition at line 49 of file defines.h.
Referenced by BrushBSP(), ClipBrushToBox(), FindPortalSide(), LeafNode(), SelectSplitSide(), SplitBrush(), SplitBrushList(), and TestBrushToPlanenum().
#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_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 |
#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_DIAGONAL 3 |
#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 |
Definition at line 128 of file defines.h.
Referenced by Check_Stats(), CL_ActorMouseTrace(), CL_AddPathingBox(), CL_GetHitProbability(), CL_ParticleRun2(), CM_AddMapTile(), CM_CompleteBoxTrace(), G_PhysicsStep(), Grid_MoveMark(), Grid_PosToVec(), LE_PlayFootStepSound(), RT_CheckCell(), RT_FindOpening(), RT_FindOpeningCeilingFrac(), and RT_GetMapSize().
#define UNIT_SIZE 32 |
Definition at line 127 of file defines.h.
Referenced by AI_CivilianCalcBestAction(), Check_InfoStartAligned(), Check_Stats(), CL_ActorDoShootTime(), CL_GetEventTime(), CL_TargetingStraight(), CM_AddMapTile(), CM_CompleteBoxTrace(), Com_ParseFire(), G_ActorUseDoor(), G_ShootSingle(), G_SplashDamage(), G_TriggerSpawn(), INV_ItemDescription(), LE_ActorGetStepTime(), LET_Projectile(), R_ModAddMapTile(), RT_CheckCell(), RT_GetMapSize(), RT_MicroTrace(), RT_ObstructedTrace(), SV_LinkEdict(), UI_BuildRadarImageList(), UI_InitRadar(), and UI_RadarNodeDraw().
#define WALL_SIZE 5 |
Definition at line 134 of file defines.h.
Referenced by RT_CheckCell(), and RT_ObstructedTrace().