|
UFO: Alien Invasion
|
#include <assert.h>#include "map.h"#include "bspbrush.h"#include "common/shared.h"#include "common/scriplib.h"#include "common/polylib.h"#include "common/bspfile.h"#include "../../common/tracing.h"

Go to the source code of this file.
Data Structures | |
| struct | node_t |
| struct | tree_t |
Functions | |
| byte | GetLevelFlagsFromBrush (const mapbrush_t *brush) |
| Extract the level flags (1-8) from the content flags of the given brush. | |
| void | LoadMapFile (const char *filenamefilename) |
| void | WriteMapFile (const char *filenamefilename) |
| uint16_t | FindOrCreateFloatPlane (vec3_t normal, vec_t dist) |
| int | MapBrushesBounds (const int startbrush, const int endbrush, const int level, const AABB &clipBox, AABB &bBox) |
| sets mins and maxs to the smallest sizes that can contain all brushes from startbrush to endbrush that are in a given level. | |
| bspbrush_t * | MakeBspBrushList (int startbrush, int endbrush, int level, const AABB &clip) |
| bspbrush_t * | ChopBrushes (bspbrush_t *head) |
| Carves any intersecting solid brushes into the minimum number of non-intersecting brushes. | |
| uint32_t | VisibleContents (uint32_t contents) |
| Returns the single content bit of the strongest visible content present. | |
| void | MarkVisibleSides (tree_t *tree, int start, int end) |
| void | FreePortal (portal_t *p) |
| void | MakeTreePortals (tree_t *tree) |
| void | RemovePortalFromNode (portal_t *portal, node_t *l) |
| Removes references to the given portal from the given node. | |
| void | SetModelNumbers (void) |
| Set the model numbers for SOLID_BSP or SOLID_TRIGGER entities like func_door or func_breakable. | |
| void | BeginBSPFile (void) |
| Starts a new bsp file. | |
| int | WriteBSP (node_t *headnode) |
| copies working data for a bsp tree into the structures used to create the bsp file. | |
| void | EndBSPFile (const char *filenamefilename) |
| Finishes a new bsp and writes to disk. | |
| void | BeginModel (int entityNum) |
| Sets up a new brush model. | |
| void | EndModel (void) |
| Finish a model's processing. | |
| void | EmitBrushes (void) |
| Writes the brush list to the bsp. | |
| void | EmitPlanes (void) |
| Emits planes to the bsp file. | |
| void | MakeFaces (node_t *headnode) |
| void | FixTjuncs (node_t *headnode) |
| int | GetEdge (int v1, int v2, const face_t *f) |
| void | FreeFace (face_t *f) |
| node_t * | AllocNode (void) |
| tree_t * | AllocTree (void) |
| Allocates a tree and initializes it. | |
| tree_t * | BuildTree (bspbrush_t *brushlist, const vec3_t mins, const vec3_t maxs) |
| The incoming list will be freed before exiting. | |
| void | FreeTree (tree_t *tree) |
| void | PruneNodes (node_t *node) |
| void | MakeTracingNodes (int levels) |
| Use the bsp node structure to reconstruct efficient tracing structures that are used for fast visibility and pathfinding checks. | |
| void | CloseTracingNodes (void) |
| void | DoRouting (void) |
| Calculates the routing of a map. | |
| void | ProcessModels (const char *filenamefilename) |
Definition at line 34 of file tree.cpp.
References AllocNode(), and Mem_AllocType.
Referenced by AllocNode(), BuildTree(), and BuildTree_r().
Allocates a tree and initializes it.
Definition at line 92 of file tree.cpp.
References tree_t::aabb, AllocTree(), Mem_AllocType, and AABB::setNegativeVolume().
Referenced by AllocTree(), and BuildTree().
Starts a new bsp file.
Definition at line 303 of file writebsp.cpp.
References BeginBSPFile(), dBspLeaf_t::contentFlags, CONTENTS_SOLID, curTile, dMapTile_t::leafs, mapTiles, mapTiles_t::mapTiles, dMapTile_t::numbrushsides, dMapTile_t::numedges, dMapTile_t::numfaces, dMapTile_t::numleafbrushes, dMapTile_t::numleafs, dMapTile_t::nummodels, dMapTile_t::numnodes, dMapTile_t::numnormals, dMapTile_t::numsurfedges, mapTiles_t::numTiles, and dMapTile_t::numvertexes.
Referenced by BeginBSPFile(), and ProcessModels().
Sets up a new brush model.
Definition at line 353 of file writebsp.cpp.
References AABB::add(), BeginModel(), curTile, dBspModel_t::dbmBox, entities, entity_t::firstbrush, dBspModel_t::firstface, firstmodeledge, mapbrushes, MAX_MAP_MODELS, mapbrush_t::mbBox, dMapTile_t::models, entity_t::numbrushes, dMapTile_t::numedges, dMapTile_t::numfaces, dMapTile_t::nummodels, mapbrush_t::numsides, AABB::set(), AABB::setNegativeVolume(), and Sys_Error().
Referenced by BeginModel(), ConstructLevelNodes_r(), and ProcessSubModel().
| tree_t * BuildTree | ( | bspbrush_t * | brushlist, |
| const vec3_t | mins, | ||
| const vec3_t | maxs ) |
The incoming list will be freed before exiting.
Definition at line 182 of file tree.cpp.
References tree_t::aabb, AABB::add(), AllocNode(), AllocTree(), BrushFromBounds(), BrushlistCalcStats(), BuildTree(), BuildTree_r(), c_nodes, c_nonvis, tree_t::headnode, AABB::setNegativeVolume(), VERB_EXTRA, Verb_Printf(), and node_t::volume.
Referenced by BuildTree(), ConstructLevelNodes_r(), and ProcessSubModel().
| bspbrush_t * ChopBrushes | ( | bspbrush_t * | head | ) |
Carves any intersecting solid brushes into the minimum number of non-intersecting brushes.
Definition at line 376 of file csg.cpp.
References AddBrushListToTail(), BrushesDisjoint(), BrushGE(), ChopBrushes(), CountBrushList(), CullList(), FreeBrushList(), bspbrush_t::next, SubtractBrush(), VERB_EXTRA, and Verb_Printf().
Referenced by ChopBrushes(), ConstructLevelNodes_r(), and ProcessSubModel().
Definition at line 65 of file trace.cpp.
References CloseTracingNodes(), curTile, Mem_Free, and dMapTile_t::tnodes.
Referenced by CloseTracingNodes(), LightWorld(), and MakeTracingNodes().
Calculates the routing of a map.
This is needed for tracing to work!!!
Definition at line 115 of file routing.cpp.
References ACTOR_MAX_SIZE, baseFilename, CELL_HEIGHT, CheckConnectionsThread(), CheckUnitThread(), CompressRouting(), config, CORE_DIRECTIONS, curTile, data, debugTrace, DoRouting(), EmitBrushes(), EmitPlanes(), mapConfig_t::generateDebugTrace, mapConfig_t::generateTraceFile, Routing::getFloor(), GridBox::GridBox(), i, Routing::init(), LEVEL_ACTORCLIP, LittleLong, MakeTracingNodes(), mapTiles, MAX_MAP_ROUTING, AABB::maxs, AABB::mins, Nmap, PATHFINDING_HEIGHT, PATHFINDING_WIDTH, PopInfo(), PushInfo(), dMapTile_t::routedata, dMapTile_t::routedatasize, RT_GetMapSize(), RT_IS_BIDIRECTIONAL, RT_WriteCSVFiles(), RunSingleThreadOn(), UNIT_HEIGHT, VecToPos, VectorCopy, VectorSet, VERB_NORMAL, mapConfig_t::verbosity, wpMaxs, and wpMins.
Referenced by DoRouting(), and ProcessWorldModel().
Writes the brush list to the bsp.
Definition at line 236 of file writebsp.cpp.
References cBspBrush_t::brushContentFlags, dBspBrush_t::brushContentFlags, dMapTile_t::brushes, dMapTile_t::brushsides, cBspBrush_t::checkcount, mapbrush_t::contentFlags, curTile, dMapTile_t::dbrushes, EmitBrushes(), FindOrCreateFloatPlane(), cBspBrush_t::firstbrushside, dBspBrush_t::firstbrushside, i, mapbrushes, MAX_MAP_BRUSHSIDES, AABB::maxs, mapbrush_t::mbBox, AABB::mins, dMapTile_t::numbrushes, dMapTile_t::numbrushsides, nummapbrushes, cBspBrush_t::numsides, dBspBrush_t::numsides, mapbrush_t::numsides, OBJZERO, mapbrush_t::original_sides, dBspBrushSide_t::planenum, Sys_Error(), dBspBrushSide_t::texinfo, vec3_origin, and VectorCopy.
Referenced by DoRouting(), EmitBrushes(), and EndBSPFile().
Emits planes to the bsp file.
Definition at line 41 of file writebsp.cpp.
References curTile, dBspPlane_t::dist, plane_t::dist, EmitPlanes(), i, mapplanes, dBspPlane_t::normal, plane_t::normal, nummapplanes, dMapTile_t::numplanes, dMapTile_t::planes, dBspPlane_t::type, plane_t::type, and VectorCopy.
Referenced by DoRouting(), EmitPlanes(), and EndBSPFile().
| void EndBSPFile | ( | const char * | filename | ) |
Finishes a new bsp and writes to disk.
Definition at line 336 of file writebsp.cpp.
References EmitBrushes(), EmitPlanes(), EndBSPFile(), UnparseEntities(), VERB_LESS, Verb_Printf(), and WriteBSPFile().
Referenced by EndBSPFile(), and ProcessModels().
Finish a model's processing.
Definition at line 387 of file writebsp.cpp.
References curTile, EndModel(), dBspModel_t::firstface, dMapTile_t::models, dBspModel_t::numfaces, dMapTile_t::numfaces, and dMapTile_t::nummodels.
Referenced by EndModel(), and ProcessSubModel().
Definition at line 194 of file map.cpp.
References CreateNewFloatPlane(), FindOrCreateFloatPlane(), GetPlaneHashValueForDistance(), plane_t::hash_chain, i, index, mapplanes, PLANE_HASHES, PlaneEqual(), planehash, and SnapPlane().
Referenced by AddBrushBevels(), AdjustBrushesForOrigin(), BrushFromBounds(), EmitBrushes(), FindOrCreateFloatPlane(), MakeBspBrushList(), and PlaneFromPoints().
Definition at line 370 of file faces.cpp.
References c_badstartverts, c_degenerate, c_facecollapse, c_faceoverflows, c_tjunctions, c_totalverts, c_uniqueverts, config, EmitVertexes_r(), FixEdges_r(), FixTjuncs(), hashverts, mapConfig_t::notjunc, OBJZERO, VERB_EXTRA, and Verb_Printf().
Referenced by ConstructLevelNodes_r(), FixTjuncs(), and ProcessSubModel().
Definition at line 133 of file faces.cpp.
References c_faces, f, FreeFace(), FreeWinding(), and Mem_Free.
Referenced by FreeFace(), and FreeTree_r().
Definition at line 52 of file portals.cpp.
References c_active_portals, FreePortal(), FreeWinding(), Mem_Free, threadstate_t::numthreads, threadstate, and portal_t::winding.
Referenced by FreePortal(), and FreeTreePortals_r().
Definition at line 102 of file tree.cpp.
References FreeTree(), FreeTree_r(), FreeTreePortals_r(), tree_t::headnode, and Mem_Free.
Referenced by ConstructLevelNodes_r(), FreeTree(), and ProcessSubModel().
Definition at line 399 of file faces.cpp.
References config, face_t::contentFlags, curTile, edgefaces, dMapTile_t::edges, f, firstmodeledge, GetEdge(), i, MAX_MAP_EDGES, mapConfig_t::noshare, dMapTile_t::numedges, Sys_Error(), and dBspEdge_t::v.
Referenced by EmitFace(), and GetEdge().
| byte GetLevelFlagsFromBrush | ( | const mapbrush_t * | brush | ) |
Extract the level flags (1-8) from the content flags of the given brush.
| brush | The brush to extract the level flags from |
Definition at line 277 of file map.cpp.
References mapbrush_t::contentFlags, and GetLevelFlagsFromBrush().
Referenced by GetLevelFlagsFromBrush().
| void LoadMapFile | ( | const char * | filename | ) |
Definition at line 1197 of file map.cpp.
References AABB_STRING, AABB::add(), AABB::asIntString(), brushsides, c_boxbevels, c_edgebevels, Com_Printf(), config, curTile, entities, footstepsCnt, GetUMPName(), i, LoadMapFile(), LoadScriptFile(), mapbrushes, mapplanes, mapTiles, mapTiles_t::mapTiles, materialsCnt, MAX_TOKEN_CHARS, MAX_WORLD_WIDTH, num_entities, entity_t::numbrushes, nummapbrushes, nummapbrushsides, nummapplanes, mapTiles_t::numTiles, OBJZERO, ParseMapEntity(), ParseUMP(), AABB::setNegativeVolume(), side_brushtextures, mapConfig_t::subdivideSize, ValueForKey(), VERB_EXTRA, and Verb_Printf().
Referenced by LoadMapFile(), and main().
| bspbrush_t * MakeBspBrushList | ( | int | startbrush, |
| int | endbrush, | ||
| int | level, | ||
| const AABB & | clip ) |
Definition at line 292 of file csg.cpp.
References AllocBrush(), bspbrush_t::brBox, ClipBrushToBox(), AABB::contains(), mapbrush_t::contentFlags, CopyWinding(), FindOrCreateFloatPlane(), mapbrush_t::finished, i, IsInLevel(), level, MakeBspBrushList(), mapbrushes, maxplanenums, AABB::maxs, mapbrush_t::mbBox, minplanenums, AABB::mins, bspbrush_t::next, bspbrush_t::numsides, mapbrush_t::numsides, bspbrush_t::original, mapbrush_t::original_sides, AABB::set(), bspbrush_t::sides, SURF_HINT, side_t::surfaceFlags, VERB_DUMP, Verb_Printf(), side_t::visible, and side_t::winding.
Referenced by ConstructLevelNodes_r(), MakeBspBrushList(), and ProcessSubModel().
Definition at line 764 of file faces.cpp.
References c_merge, c_nodefaces, c_subdivide, MakeFaces(), MakeFaces_r(), VERB_EXTRA, and Verb_Printf().
Referenced by ConstructLevelNodes_r(), MakeFaces(), and ProcessSubModel().
Use the bsp node structure to reconstruct efficient tracing structures that are used for fast visibility and pathfinding checks.
Definition at line 38 of file trace.cpp.
References CloseTracingNodes(), curTile, dBspModel_t::headnode, i, LEVEL_ACTORCLIP, LEVEL_LIGHTCLIP, LEVEL_MAX, MakeTracingNodes(), Mem_AllocTypeN, dMapTile_t::models, dBspModel_t::numfaces, dMapTile_t::numnodes, dMapTile_t::numtheads, dMapTile_t::thead, dMapTile_t::theadlevel, dMapTile_t::tnodes, and TR_BuildTracingNode_r().
Referenced by DoRouting(), LightWorld(), and MakeTracingNodes().
Definition at line 391 of file portals.cpp.
References tree_t::headnode, MakeHeadnodePortals(), MakeTreePortals(), and MakeTreePortals_r().
Referenced by ConstructLevelNodes_r(), MakeTreePortals(), and ProcessSubModel().
| int MapBrushesBounds | ( | const int | startbrush, |
| const int | endbrush, | ||
| const int | level, | ||
| const AABB & | clipBox, | ||
| AABB & | bBox ) |
sets mins and maxs to the smallest sizes that can contain all brushes from startbrush to endbrush that are in a given level.
| [in] | startbrush | the index of the first brush to check. |
| [in] | endbrush | the index after the last brush to check. |
| [in] | level | the level that we are searching for brushes in. -1 for skipping the levelflag check. |
| [in] | clipBox | the absolute lowest and highest boundaries to allow for brushes. |
| [out] | bBox | the max boundaries for all accepted brushes within the clipped bounds. |
Definition at line 264 of file csg.cpp.
References AABB::add(), AABB::contains(), mapbrush_t::contentFlags, mapbrush_t::finished, i, IsInLevel(), level, mapbrushes, MapBrushesBounds(), mapbrush_t::mbBox, and AABB::setNegativeVolume().
Referenced by ConstructLevelNodes_r(), and MapBrushesBounds().
Definition at line 482 of file portals.cpp.
References tree_t::headnode, i, mapbrushes, MarkVisibleSides(), MarkVisibleSides_r(), mapbrush_t::numsides, mapbrush_t::original_sides, VERB_EXTRA, and Verb_Printf().
Referenced by ConstructLevelNodes_r(), MarkVisibleSides(), and ProcessSubModel().
| void ProcessModels | ( | const char * | filename | ) |
Definition at line 106 of file bsp.cpp.
References BeginBSPFile(), config, curTile, EndBSPFile(), entities, num_entities, dMapTile_t::nummodels, ProcessModels(), ProcessSubModel(), ProcessWorldModel(), VERB_EXTRA, Verb_Printf(), mapConfig_t::verbose, and mapConfig_t::verboseentities.
Referenced by main(), and ProcessModels().
Definition at line 261 of file tree.cpp.
References c_pruned, PruneNodes(), PruneNodes_r(), VERB_EXTRA, and Verb_Printf().
Referenced by ConstructLevelNodes_r(), and PruneNodes().
Removes references to the given portal from the given node.
| [in,out] | portal | The portal to remove from the node |
| [in,out] | l | The node to remove the portal from |
Definition at line 102 of file portals.cpp.
References portal_t::next, portal_t::nodes, node_t::portals, RemovePortalFromNode(), and Sys_Error().
Referenced by FreeTreePortals_r(), RemovePortalFromNode(), and SplitNodePortals().
Set the model numbers for SOLID_BSP or SOLID_TRIGGER entities like func_door or func_breakable.
Definition at line 217 of file writebsp.cpp.
References Com_sprintf(), entities, i, num_entities, SetKeyValue(), and SetModelNumbers().
Referenced by main(), and SetModelNumbers().
| uint32_t VisibleContents | ( | uint32_t | contents | ) |
Returns the single content bit of the strongest visible content present.
Definition at line 64 of file portals.cpp.
References i, LAST_VISIBLE_CONTENTS, and VisibleContents().
Referenced by FaceFromPortal(), FindPortalSide(), and VisibleContents().
copies working data for a bsp tree into the structures used to create the bsp file.
| [in] | headnode | the top-most node in this bsp tree |
Definition at line 195 of file writebsp.cpp.
References c_facenodes, c_nofaces, curTile, EmitDrawNode_r(), dMapTile_t::numfaces, oldfaces, VERB_EXTRA, Verb_Printf(), and WriteBSP().
Referenced by ConstructLevelNodes_r(), ProcessSubModel(), and WriteBSP().
| void WriteMapFile | ( | const char * | filename | ) |
Definition at line 1055 of file map.cpp.
References Check_ExtraBrushesForWorldspawn(), entities, entity_t::epairs, f, FILE_WRITE, entity_t::firstbrush, FS_OpenFile(), FS_Printf(), i, mapbrushes, Mem_Free, num_entities, entity_t::numbrushes, entity_t::skip, mapbrush_t::skipWriteBack, Sys_Error(), VERB_NORMAL, Verb_Printf(), WriteMapBrush(), WriteMapEntities(), and WriteMapFile().
Referenced by main(), and WriteMapFile().
| int brush_end |
Definition at line 77 of file bsp.h.
Referenced by ConstructLevelNodes_r(), and ProcessWorldModel().
|
extern |
Definition at line 29 of file levels.cpp.
Referenced by ConstructLevelNodes_r(), and ProcessWorldModel().
|
extern |
Definition at line 37 of file map.cpp.
Referenced by AddBrushBevels(), AdjustBrushesForOrigin(), Check_SetNodraw(), Check_SurfProp(), Check_SurfProps(), CheckFlagsBasedOnTextures(), CheckMixedFaceContents(), CheckTexturesBasedOnFlags(), LoadMapFile(), ParseBrush(), and WriteMapBrush().
|
extern |
Definition at line 32 of file bsp.cpp.
Referenced by BeginBSPFile(), BeginModel(), BuildFaceExtents(), BuildFacelights(), BuildNodeChildren(), BuildPatch(), BuildPatches(), BuildVertexNormals(), CalcLightinfoExtents(), CalcLightinfoVectors(), CalcTextureReflectivity(), CalcTextureSize(), CloseTracingNodes(), DoRouting(), EmissiveLight(), EmitBrushes(), EmitDrawNode_r(), EmitFace(), EmitFaceVertexes(), EmitLeaf(), EmitPlanes(), EndModel(), ExportLightmap(), FaceFromPortal(), FacesWithVert(), FinalLightFace(), FixFaceEdges(), GetEdge(), GetVertexnum(), HasLight(), LightWorld(), LoadBSPFile(), LoadMapFile(), MakeTracingNodes(), ParseEntities(), PopInfo(), PrintBSPFileSizes(), ProcessLevel(), ProcessModels(), ProcessSubModel(), ProcessWorldModel(), PushInfo(), SampleNormal(), SubdivideFace(), SwapBSPFile(), TestEdge(), TexinfoForBrushTexture(), TR_TestLineSingleTile(), UnparseEntities(), WindingFromFace(), WriteBSP(), and WriteBSPFile().
|
extern |
Definition at line 34 of file map.cpp.
Referenced by AdjustBrushesForOrigin(), BeginModel(), Check_BrushIntersection(), Check_ContainedBrushes(), Check_ExtraBrushesForWorldspawn(), Check_FindCompositeSides(), Check_Free(), Check_MapSize(), Check_NearList(), CheckBrushes(), CheckFillLevelFlags(), CheckFlagsBasedOnTextures(), CheckLevelFlags(), CheckMapMicro(), CheckMixedFaceContents(), CheckNodraws(), CheckTexturesBasedOnFlags(), CheckZFighting(), EmitBrushes(), EmitLeaf(), LoadMapFile(), MakeBspBrushList(), MapBrushesBounds(), MarkVisibleSides(), MoveBrushesToWorld(), ParseBrush(), ProcessLevel(), and WriteMapFile().
|
extern |
an index of the planes containing the faces of the brushes
Definition at line 43 of file map.cpp.
Referenced by AddBrushBevels(), AdjustBrushesForOrigin(), BaseWindingForNode(), BrushVolume(), Check_IsPointInsideBrush(), Check_MapBrushVolume(), Check_SidePointsDown(), Check_WindingIntersects(), CreateBrushWindings(), CreateNewFloatPlane(), DoesPlaneSplitBrush(), EmitPlanes(), FaceFromPortal(), FacingAndCoincidentTo(), FindOrCreateFloatPlane(), FindPortalSide(), LoadMapFile(), MakeBrushWindings(), MakeNodePortal(), MergeNodeFaces(), ParallelAndCoincidentTo(), ParseBrush(), SelectSplitSide(), SplitBrush(), SplitNodePortals(), TestBrushToPlanenum(), and WriteMapBrush().
|
extern |
Definition at line 33 of file bsp.cpp.
Referenced by BeginBSPFile(), CheckConnectionsThread(), CheckUnit(), CM_AddMapTile(), CM_CompleteBoxTrace(), CM_EntCompleteBoxTrace(), CM_EntTestLine(), CM_EntTestLineDM(), CM_GetInlineModelAABB(), CM_GetVisibility(), CM_InlineModel(), CM_LoadMap(), CM_SetInlineModelOrientation(), CMod_RerouteMap(), DoRouting(), Grid_RecalcBoxRouting(), Grid_RecalcRouting(), LoadBSPFile(), LoadMapFile(), RT_CheckCell(), RT_GetMapSize(), RT_UpdateConnectionColumn(), TEST_F(), TEST_F(), TR_TestLine(), TR_TestLineDM(), and TR_TestLineSingleTile().
|
extern |
Definition at line 35 of file map.cpp.
Referenced by Check_BrushIntersection(), Check_ContainedBrushes(), Check_FindCompositeSides(), Check_Free(), Check_MapSize(), Check_NearList(), Check_Stats(), CheckBrushes(), CheckFillLevelFlags(), CheckFlagsBasedOnTextures(), CheckLevelFlags(), CheckMapMicro(), CheckMixedFaceContents(), CheckNodraws(), CheckTexturesBasedOnFlags(), CheckZFighting(), EmitBrushes(), LoadMapFile(), MoveBrushesToWorld(), ParseBrush(), ParseMapEntity(), and ProcessLevel().
|
extern |
Definition at line 38 of file map.cpp.
Referenced by AddBrushBevels(), Check_Stats(), LoadMapFile(), and ParseBrush().
|
extern |
Definition at line 44 of file map.cpp.
Referenced by Check_Stats(), CreateNewFloatPlane(), EmitPlanes(), and LoadMapFile().
|
extern |
Definition at line 40 of file map.cpp.
Referenced by AddBrushBevels(), AdjustBrushesForOrigin(), Check_SetNodraw(), Check_SurfProp(), Check_SurfProps(), CheckFlagsBasedOnTextures(), CheckMixedFaceContents(), CheckTexturesBasedOnFlags(), LoadMapFile(), ParseBrush(), and WriteMapBrush().