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

Go to the source code of this file.

Data Structures

struct  hullinfo_t
 
struct  lump_t
 
struct  mmodel_t
 

Macros

#define _2PSBVERSION   ('2' + 'P' * 256 + 'S' * 65536 + 'B' * 16777216)
 
#define AMBIENT_LAVA   3
 
#define AMBIENT_SKY   1
 
#define AMBIENT_SLIME   2
 
#define AMBIENT_WATER   0
 
#define BSP2VERSION   ('B' + 'S' * 256 + 'P' * 65536 + '2' * 16777216)
 
#define BSPVERSION   29
 
#define CONTENTS_CLIP   -8
 
#define CONTENTS_CURRENT_0   -9
 
#define CONTENTS_CURRENT_180   -11
 
#define CONTENTS_CURRENT_270   -12
 
#define CONTENTS_CURRENT_90   -10
 
#define CONTENTS_CURRENT_DOWN   -14
 
#define CONTENTS_CURRENT_UP   -13
 
#define CONTENTS_EMPTY   -1
 
#define CONTENTS_LAVA   -5
 
#define CONTENTS_ORIGIN   -7
 
#define CONTENTS_SKY   -6
 
#define CONTENTS_SLIME   -4
 
#define CONTENTS_SOLID   -2
 
#define CONTENTS_WATER   -3
 
#define CONTENTSQ2_AREAPORTAL   0x00008000
 
#define CONTENTSQ2_AUX   0x00000004
 
#define CONTENTSQ2_CURRENT_0   0x00040000
 
#define CONTENTSQ2_CURRENT_180   0x00100000
 
#define CONTENTSQ2_CURRENT_270   0x00200000
 
#define CONTENTSQ2_CURRENT_90   0x00080000
 
#define CONTENTSQ2_CURRENT_DOWN   0x00800000
 
#define CONTENTSQ2_CURRENT_UP   0x00400000
 
#define CONTENTSQ2_DEADMONSTER   0x04000000
 
#define CONTENTSQ2_DETAIL   0x08000000
 
#define CONTENTSQ2_LADDER   0x20000000
 
#define CONTENTSQ2_LAVA   0x00000008
 
#define CONTENTSQ2_MIST   0x00000040
 
#define CONTENTSQ2_MONSTER   0x02000000
 
#define CONTENTSQ2_MONSTERCLIP   0x00020000
 
#define CONTENTSQ2_ORIGIN   0x01000000
 
#define CONTENTSQ2_PLAYERCLIP   0x00010000
 
#define CONTENTSQ2_SLIME   0x00000010
 
#define CONTENTSQ2_SOLID   0x00000001
 
#define CONTENTSQ2_TRANSLUCENT   0x10000000
 
#define CONTENTSQ2_WATER   0x00000020
 
#define CONTENTSQ2_WINDOW   0x00000002
 
#define CONTENTSQ3_AREAPORTAL   0x00008000
 
#define CONTENTSQ3_BODY   0x02000000
 
#define CONTENTSQ3_BOTCLIP   0x00400000
 
#define CONTENTSQ3_CLUSTERPORTAL   0x00100000
 
#define CONTENTSQ3_CORPSE   0x04000000
 
#define CONTENTSQ3_DETAIL   0x08000000
 
#define CONTENTSQ3_DONOTENTER   0x00200000
 
#define CONTENTSQ3_FOG   0x00000040
 
#define CONTENTSQ3_JUMPPAD   0x00080000
 
#define CONTENTSQ3_LAVA   0x00000008
 
#define CONTENTSQ3_MONSTERCLIP   0x00020000
 
#define CONTENTSQ3_NODROP   0x80000000
 
#define CONTENTSQ3_ORIGIN   0x01000000
 
#define CONTENTSQ3_PLAYERCLIP   0x00010000
 
#define CONTENTSQ3_SLIME   0x00000010
 
#define CONTENTSQ3_SOLID   0x00000001
 
#define CONTENTSQ3_STRUCTURAL   0x10000000
 
#define CONTENTSQ3_TELEPORTER   0x00040000
 
#define CONTENTSQ3_TRANSLUCENT   0x20000000
 
#define CONTENTSQ3_TRIGGER   0x40000000
 
#define CONTENTSQ3_WATER   0x00000020
 
#define HEADER_LUMPS   15
 
#define HLBSPVERSION   30
 
#define LUMP_CLIPNODES   9
 
#define LUMP_EDGES   12
 
#define LUMP_ENTITIES   0
 
#define LUMP_FACES   7
 
#define LUMP_LEAFS   10
 
#define LUMP_LIGHTING   8
 
#define LUMP_MARKSURFACES   11
 
#define LUMP_MODELS   14
 
#define LUMP_NODES   5
 
#define LUMP_PLANES   1
 
#define LUMP_SURFEDGES   13
 
#define LUMP_TEXINFO   6
 
#define LUMP_TEXTURES   2
 
#define LUMP_VERTEXES   3
 
#define LUMP_VISIBILITY   4
 
#define MAX_MAP_HULLS   16
 
#define MAXLIGHTMAPS   4
 
#define MIPLEVELS   4
 
#define NUM_AMBIENTS   4
 
#define PLANE_ANYX   3
 
#define PLANE_ANYY   4
 
#define PLANE_ANYZ   5
 
#define PLANE_X   0
 
#define PLANE_Y   1
 
#define PLANE_Z   2
 
#define SUPERCONTENTS_BODY   0x00000020
 
#define SUPERCONTENTS_BOTCLIP   0x00000800
 
#define SUPERCONTENTS_CORPSE   0x00000040
 
#define SUPERCONTENTS_DONOTENTER   0x00000400
 
#define SUPERCONTENTS_LAVA   0x00000008
 
#define SUPERCONTENTS_LIQUIDSMASK   (SUPERCONTENTS_LAVA | SUPERCONTENTS_SLIME | SUPERCONTENTS_WATER)
 
#define SUPERCONTENTS_MONSTERCLIP   0x00000200
 
#define SUPERCONTENTS_NODROP   0x00000080
 
#define SUPERCONTENTS_OPAQUE   0x00001000
 
#define SUPERCONTENTS_PLAYERCLIP   0x00000100
 
#define SUPERCONTENTS_SKY   0x00000010
 
#define SUPERCONTENTS_SLIME   0x00000004
 
#define SUPERCONTENTS_SOLID   0x00000001
 
#define SUPERCONTENTS_VISBLOCKERMASK   SUPERCONTENTS_OPAQUE
 
#define SUPERCONTENTS_WATER   0x00000002
 
#define TEX_SPECIAL   1
 

Macro Definition Documentation

◆ _2PSBVERSION

#define _2PSBVERSION   ('2' + 'P' * 256 + 'S' * 65536 + 'B' * 16777216)

Definition at line 31 of file bspfile.h.

◆ AMBIENT_LAVA

#define AMBIENT_LAVA   3

Definition at line 305 of file bspfile.h.

◆ AMBIENT_SKY

#define AMBIENT_SKY   1

Definition at line 303 of file bspfile.h.

◆ AMBIENT_SLIME

#define AMBIENT_SLIME   2

Definition at line 304 of file bspfile.h.

◆ AMBIENT_WATER

#define AMBIENT_WATER   0

Definition at line 302 of file bspfile.h.

◆ BSP2VERSION

#define BSP2VERSION   ('B' + 'S' * 256 + 'P' * 65536 + '2' * 16777216)

Definition at line 32 of file bspfile.h.

◆ BSPVERSION

#define BSPVERSION   29

Definition at line 29 of file bspfile.h.

Referenced by GetMapList().

◆ CONTENTS_CLIP

#define CONTENTS_CLIP   -8

Definition at line 141 of file bspfile.h.

◆ CONTENTS_CURRENT_0

#define CONTENTS_CURRENT_0   -9

Definition at line 142 of file bspfile.h.

◆ CONTENTS_CURRENT_180

#define CONTENTS_CURRENT_180   -11

Definition at line 144 of file bspfile.h.

◆ CONTENTS_CURRENT_270

#define CONTENTS_CURRENT_270   -12

Definition at line 145 of file bspfile.h.

◆ CONTENTS_CURRENT_90

#define CONTENTS_CURRENT_90   -10

Definition at line 143 of file bspfile.h.

◆ CONTENTS_CURRENT_DOWN

#define CONTENTS_CURRENT_DOWN   -14

Definition at line 147 of file bspfile.h.

◆ CONTENTS_CURRENT_UP

#define CONTENTS_CURRENT_UP   -13

Definition at line 146 of file bspfile.h.

◆ CONTENTS_EMPTY

◆ CONTENTS_LAVA

#define CONTENTS_LAVA   -5

◆ CONTENTS_ORIGIN

#define CONTENTS_ORIGIN   -7

Definition at line 140 of file bspfile.h.

◆ CONTENTS_SKY

#define CONTENTS_SKY   -6

◆ CONTENTS_SLIME

◆ CONTENTS_SOLID

#define CONTENTS_SOLID   -2

◆ CONTENTS_WATER

◆ CONTENTSQ2_AREAPORTAL

#define CONTENTSQ2_AREAPORTAL   0x00008000

Definition at line 157 of file bspfile.h.

◆ CONTENTSQ2_AUX

#define CONTENTSQ2_AUX   0x00000004

Definition at line 152 of file bspfile.h.

◆ CONTENTSQ2_CURRENT_0

#define CONTENTSQ2_CURRENT_0   0x00040000

Definition at line 160 of file bspfile.h.

◆ CONTENTSQ2_CURRENT_180

#define CONTENTSQ2_CURRENT_180   0x00100000

Definition at line 162 of file bspfile.h.

◆ CONTENTSQ2_CURRENT_270

#define CONTENTSQ2_CURRENT_270   0x00200000

Definition at line 163 of file bspfile.h.

◆ CONTENTSQ2_CURRENT_90

#define CONTENTSQ2_CURRENT_90   0x00080000

Definition at line 161 of file bspfile.h.

◆ CONTENTSQ2_CURRENT_DOWN

#define CONTENTSQ2_CURRENT_DOWN   0x00800000

Definition at line 165 of file bspfile.h.

◆ CONTENTSQ2_CURRENT_UP

#define CONTENTSQ2_CURRENT_UP   0x00400000

Definition at line 164 of file bspfile.h.

◆ CONTENTSQ2_DEADMONSTER

#define CONTENTSQ2_DEADMONSTER   0x04000000

◆ CONTENTSQ2_DETAIL

#define CONTENTSQ2_DETAIL   0x08000000

Definition at line 169 of file bspfile.h.

◆ CONTENTSQ2_LADDER

#define CONTENTSQ2_LADDER   0x20000000

Definition at line 171 of file bspfile.h.

◆ CONTENTSQ2_LAVA

#define CONTENTSQ2_LAVA   0x00000008

◆ CONTENTSQ2_MIST

#define CONTENTSQ2_MIST   0x00000040

Definition at line 156 of file bspfile.h.

◆ CONTENTSQ2_MONSTER

#define CONTENTSQ2_MONSTER   0x02000000

◆ CONTENTSQ2_MONSTERCLIP

#define CONTENTSQ2_MONSTERCLIP   0x00020000

◆ CONTENTSQ2_ORIGIN

#define CONTENTSQ2_ORIGIN   0x01000000

Definition at line 166 of file bspfile.h.

◆ CONTENTSQ2_PLAYERCLIP

#define CONTENTSQ2_PLAYERCLIP   0x00010000

◆ CONTENTSQ2_SLIME

#define CONTENTSQ2_SLIME   0x00000010

◆ CONTENTSQ2_SOLID

#define CONTENTSQ2_SOLID   0x00000001

◆ CONTENTSQ2_TRANSLUCENT

#define CONTENTSQ2_TRANSLUCENT   0x10000000

◆ CONTENTSQ2_WATER

#define CONTENTSQ2_WATER   0x00000020

◆ CONTENTSQ2_WINDOW

#define CONTENTSQ2_WINDOW   0x00000002

Definition at line 151 of file bspfile.h.

◆ CONTENTSQ3_AREAPORTAL

#define CONTENTSQ3_AREAPORTAL   0x00008000

Definition at line 179 of file bspfile.h.

◆ CONTENTSQ3_BODY

#define CONTENTSQ3_BODY   0x02000000

◆ CONTENTSQ3_BOTCLIP

#define CONTENTSQ3_BOTCLIP   0x00400000

◆ CONTENTSQ3_CLUSTERPORTAL

#define CONTENTSQ3_CLUSTERPORTAL   0x00100000

Definition at line 184 of file bspfile.h.

◆ CONTENTSQ3_CORPSE

#define CONTENTSQ3_CORPSE   0x04000000

◆ CONTENTSQ3_DETAIL

#define CONTENTSQ3_DETAIL   0x08000000

Definition at line 190 of file bspfile.h.

◆ CONTENTSQ3_DONOTENTER

#define CONTENTSQ3_DONOTENTER   0x00200000

◆ CONTENTSQ3_FOG

#define CONTENTSQ3_FOG   0x00000040

Definition at line 178 of file bspfile.h.

◆ CONTENTSQ3_JUMPPAD

#define CONTENTSQ3_JUMPPAD   0x00080000

Definition at line 183 of file bspfile.h.

◆ CONTENTSQ3_LAVA

#define CONTENTSQ3_LAVA   0x00000008

◆ CONTENTSQ3_MONSTERCLIP

#define CONTENTSQ3_MONSTERCLIP   0x00020000

◆ CONTENTSQ3_NODROP

#define CONTENTSQ3_NODROP   0x80000000

◆ CONTENTSQ3_ORIGIN

#define CONTENTSQ3_ORIGIN   0x01000000

Definition at line 187 of file bspfile.h.

◆ CONTENTSQ3_PLAYERCLIP

#define CONTENTSQ3_PLAYERCLIP   0x00010000

◆ CONTENTSQ3_SLIME

#define CONTENTSQ3_SLIME   0x00000010

◆ CONTENTSQ3_SOLID

#define CONTENTSQ3_SOLID   0x00000001

◆ CONTENTSQ3_STRUCTURAL

#define CONTENTSQ3_STRUCTURAL   0x10000000

Definition at line 191 of file bspfile.h.

◆ CONTENTSQ3_TELEPORTER

#define CONTENTSQ3_TELEPORTER   0x00040000

Definition at line 182 of file bspfile.h.

◆ CONTENTSQ3_TRANSLUCENT

#define CONTENTSQ3_TRANSLUCENT   0x20000000

◆ CONTENTSQ3_TRIGGER

#define CONTENTSQ3_TRIGGER   0x40000000

Definition at line 193 of file bspfile.h.

◆ CONTENTSQ3_WATER

#define CONTENTSQ3_WATER   0x00000020

◆ HEADER_LUMPS

#define HEADER_LUMPS   15

Definition at line 54 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ HLBSPVERSION

#define HLBSPVERSION   30

Definition at line 30 of file bspfile.h.

◆ LUMP_CLIPNODES

#define LUMP_CLIPNODES   9

Definition at line 48 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_EDGES

#define LUMP_EDGES   12

Definition at line 51 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_ENTITIES

#define LUMP_ENTITIES   0

Definition at line 39 of file bspfile.h.

Referenced by GetMapList(), and Mod_Q1BSP_Load().

◆ LUMP_FACES

#define LUMP_FACES   7

Definition at line 46 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_LEAFS

#define LUMP_LEAFS   10

Definition at line 49 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_LIGHTING

#define LUMP_LIGHTING   8

Definition at line 47 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_MARKSURFACES

#define LUMP_MARKSURFACES   11

Definition at line 50 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_MODELS

#define LUMP_MODELS   14

Definition at line 53 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_NODES

#define LUMP_NODES   5

Definition at line 44 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_PLANES

#define LUMP_PLANES   1

Definition at line 40 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_SURFEDGES

#define LUMP_SURFEDGES   13

Definition at line 52 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_TEXINFO

#define LUMP_TEXINFO   6

Definition at line 45 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_TEXTURES

#define LUMP_TEXTURES   2

Definition at line 41 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_VERTEXES

#define LUMP_VERTEXES   3

Definition at line 42 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ LUMP_VISIBILITY

#define LUMP_VISIBILITY   4

Definition at line 43 of file bspfile.h.

Referenced by Mod_Q1BSP_Load().

◆ MAX_MAP_HULLS

#define MAX_MAP_HULLS   16

Definition at line 24 of file bspfile.h.

Referenced by Mod_Q1BSP_Load(), and Mod_Q1BSP_LoadClipnodes().

◆ MAXLIGHTMAPS

◆ MIPLEVELS

#define MIPLEVELS   4

Definition at line 95 of file bspfile.h.

◆ NUM_AMBIENTS

#define NUM_AMBIENTS   4

◆ PLANE_ANYX

#define PLANE_ANYX   3

Definition at line 118 of file bspfile.h.

◆ PLANE_ANYY

#define PLANE_ANYY   4

Definition at line 119 of file bspfile.h.

◆ PLANE_ANYZ

#define PLANE_ANYZ   5

Definition at line 120 of file bspfile.h.

◆ PLANE_X

#define PLANE_X   0

Definition at line 113 of file bspfile.h.

Referenced by Mod_BSP_LightPoint_RecursiveBSPNode().

◆ PLANE_Y

#define PLANE_Y   1

Definition at line 114 of file bspfile.h.

Referenced by Mod_BSP_LightPoint_RecursiveBSPNode().

◆ PLANE_Z

#define PLANE_Z   2

Definition at line 115 of file bspfile.h.

Referenced by Mod_BSP_LightPoint_RecursiveBSPNode().

◆ SUPERCONTENTS_BODY

◆ SUPERCONTENTS_BOTCLIP

#define SUPERCONTENTS_BOTCLIP   0x00000800

◆ SUPERCONTENTS_CORPSE

◆ SUPERCONTENTS_DONOTENTER

#define SUPERCONTENTS_DONOTENTER   0x00000400

◆ SUPERCONTENTS_LAVA

◆ SUPERCONTENTS_LIQUIDSMASK

◆ SUPERCONTENTS_MONSTERCLIP

◆ SUPERCONTENTS_NODROP

◆ SUPERCONTENTS_OPAQUE

◆ SUPERCONTENTS_PLAYERCLIP

◆ SUPERCONTENTS_SKY

◆ SUPERCONTENTS_SLIME

◆ SUPERCONTENTS_SOLID

#define SUPERCONTENTS_SOLID   0x00000001

Definition at line 196 of file bspfile.h.

Referenced by CL_CheckBottom(), CL_ClientMovement_Move(), CL_ClientMovement_Physics_Walk(), CL_ClientMovement_Unstick(), CL_ClientMovement_UpdateStatus(), CL_GenericHitSuperContentsMask(), CL_LinkNetworkEntity(), CL_NewParticle(), CL_ParticleExplosion(), CL_SelectTraceLine(), CL_SpawnDecalParticleForPoint(), Mod_BrushInit(), Mod_BSP_FindNonSolidLocation_r_Leaf(), Mod_BuildAliasSkinsFromSkinFiles(), Mod_CreateCollisionMesh(), Mod_GenerateLightmaps_LightPoint(), Mod_GenerateLightmaps_SamplePoint(), Mod_IDP0_Load(), Mod_IDP2_Load(), Mod_LoadTextureFromQ3Shader(), Mod_MDLMD2MD3_TraceBox(), Mod_MDLMD2MD3_TraceLine(), Mod_Q1BSP_AssignNoShadowSkySurfaces(), Mod_Q1BSP_LoadTextures(), Mod_Q1BSP_NativeContentsFromSuperContents(), Mod_Q1BSP_RecursiveHullCheck(), Mod_Q1BSP_SuperContentsFromNativeContents(), Mod_Q2BSP_NativeContentsFromSuperContents(), Mod_Q2BSP_SuperContentsFromNativeContents(), Mod_Q3BSP_NativeContentsFromSuperContents(), Mod_Q3BSP_SuperContentsFromNativeContents(), Mod_SpriteSetupTexture(), R_CanSeeBox(), R_CompleteLightPoint(), R_DrawCorona(), R_DrawParticles(), R_MoveExplosion(), R_NewExplosion(), R_Shadow_BounceGrid_RefractiveIndexAtPoint(), R_Shadow_BounceGrid_TracePhotons_Shot(), R_Shadow_SelectLightInView(), R_Shadow_SetCursorLocationForView(), Sbar_ShowFPS(), SV_CheckBottom(), SV_Ent_Create_f(), SV_Ent_Remove_f(), SV_GenericHitSuperContentsMask(), SV_SetIdealPitch(), V_CalcRefdefUsing(), VM_CL_checkbottom(), VM_SV_aim(), and VM_SV_droptofloor().

◆ SUPERCONTENTS_VISBLOCKERMASK

#define SUPERCONTENTS_VISBLOCKERMASK   SUPERCONTENTS_OPAQUE

◆ SUPERCONTENTS_WATER

◆ TEX_SPECIAL

#define TEX_SPECIAL   1