#include "qcommon.h"
Go to the source code of this file.
Classes | |
struct | cnode_t |
struct | cbrushside_t |
struct | cleaf_t |
struct | cbrush_t |
struct | carea_t |
Macros | |
#define | DIST_EPSILON (0.03125) |
Definition at line 1662 of file cmodel.c.
Referenced by PF_inPHS(), PF_inPVS(), SV_BuildClientFrame(), SV_InitGameProgs(), and SV_Multicast().
int CM_BoxLeafnums_headnode | ( | vec3_t | mins, |
vec3_t | maxs, | ||
int * | list, | ||
int | listsize, | ||
int | headnode, | ||
int * | topnode | ||
) |
trace_t CM_BoxTrace | ( | vec3_t | start, |
vec3_t | end, | ||
vec3_t | mins, | ||
vec3_t | maxs, | ||
int | headnode, | ||
int | brushmask | ||
) |
Definition at line 1350 of file cmodel.c.
Referenced by CL_PMTrace(), CM_TransformedBoxTrace(), and SV_Trace().
void CM_ClipBoxToBrush | ( | vec3_t | mins, |
vec3_t | maxs, | ||
vec3_t | p1, | ||
vec3_t | p2, | ||
trace_t * | trace, | ||
cbrush_t * | brush | ||
) |
Definition at line 1584 of file cmodel.c.
Referenced by PF_inPHS(), SV_BuildClientFrame(), and SV_Multicast().
Definition at line 1575 of file cmodel.c.
Referenced by PF_inPVS(), SV_FatPVS(), and SV_Multicast().
char* CM_EntityString | ( | void | ) |
Definition at line 662 of file cmodel.c.
Referenced by SV_SpawnServer().
Definition at line 775 of file cmodel.c.
Referenced by CL_ClipMoveToEntities(), and SV_HullForEntity().
Definition at line 1748 of file cmodel.c.
Referenced by CM_HeadnodeVisible(), and SV_BuildClientFrame().
cmodel_t* CM_InlineModel | ( | char * | name | ) |
Definition at line 639 of file cmodel.c.
Referenced by CL_ParseConfigString(), CL_PrepRefresh(), PF_setmodel(), and SV_SpawnServer().
Definition at line 681 of file cmodel.c.
Referenced by PF_inPHS(), PF_inPVS(), SV_BuildClientFrame(), SV_LinkEdict(), and SV_Multicast().
Definition at line 674 of file cmodel.c.
Referenced by PF_inPHS(), PF_inPVS(), SV_BuildClientFrame(), SV_FatPVS(), SV_LinkEdict(), and SV_Multicast().
Definition at line 548 of file cmodel.c.
Referenced by CL_Precache_f(), CL_RequestNextDownload(), and SV_SpawnServer().
Definition at line 652 of file cmodel.c.
Referenced by SV_FatPVS().
Definition at line 657 of file cmodel.c.
Referenced by SV_SpawnServer().
Definition at line 917 of file cmodel.c.
Referenced by CL_PMpointcontents(), and SV_PointContents().
Definition at line 826 of file cmodel.c.
Referenced by PF_inPHS(), PF_inPVS(), SV_BuildClientFrame(), and SV_Multicast().
Definition at line 800 of file cmodel.c.
Referenced by CM_PointContents(), CM_PointLeafnum(), and CM_TransformedPointContents().
void CM_ReadPortalState | ( | FILE * | f | ) |
Definition at line 1734 of file cmodel.c.
Referenced by SV_ReadLevelFile().
trace_t CM_TransformedBoxTrace | ( | vec3_t | start, |
vec3_t | end, | ||
vec3_t | mins, | ||
vec3_t | maxs, | ||
int | headnode, | ||
int | brushmask, | ||
vec3_t | origin, | ||
vec3_t | angles | ||
) |
Definition at line 1451 of file cmodel.c.
Referenced by CL_ClipMoveToEntities(), and SV_ClipMoveToEntities().
Definition at line 937 of file cmodel.c.
Referenced by CL_PMpointcontents(), and SV_PointContents().
void CM_WritePortalState | ( | FILE * | f | ) |
Definition at line 1721 of file cmodel.c.
Referenced by SV_WriteLevelFile().
Definition at line 1631 of file cmodel.c.
Referenced by CM_LoadMap(), CM_ReadPortalState(), and CM_SetAreaPortalState().
cbrush_t* box_brush |
Definition at line 693 of file cmodel.c.
Referenced by CM_InitBoxHull().
int box_headnode |
Definition at line 692 of file cmodel.c.
Referenced by CM_HeadnodeForBox(), CM_InitBoxHull(), CM_TransformedBoxTrace(), and CM_TransformedPointContents().
cleaf_t* box_leaf |
Definition at line 694 of file cmodel.c.
Referenced by CM_InitBoxHull().
cplane_t* box_planes |
Definition at line 691 of file cmodel.c.
Referenced by CM_HeadnodeForBox(), and CM_InitBoxHull().
int c_brush_traces |
Definition at line 119 of file cmodel.c.
Referenced by CM_ClipBoxToBrush(), and Qcommon_Frame().
int c_pointcontents |
Definition at line 118 of file cmodel.c.
Referenced by CM_PointLeafnum_r(), and Qcommon_Frame().
int c_traces |
Definition at line 119 of file cmodel.c.
Referenced by CM_BoxTrace(), and Qcommon_Frame().
int checkcount |
Definition at line 61 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_TestInLeaf(), and CM_TraceToLeaf().
byte* cmod_base |
Definition at line 130 of file cmodel.c.
Referenced by CM_LoadMap(), CMod_LoadAreaPortals(), CMod_LoadAreas(), CMod_LoadBrushes(), CMod_LoadBrushSides(), CMod_LoadEntityString(), CMod_LoadLeafBrushes(), CMod_LoadLeafs(), CMod_LoadNodes(), CMod_LoadPlanes(), CMod_LoadSubmodels(), CMod_LoadSurfaces(), and CMod_LoadVisibility().
int emptyleaf |
Definition at line 79 of file cmodel.c.
Referenced by CM_InitBoxHull(), and CMod_LoadLeafs().
int floodvalid |
Definition at line 107 of file cmodel.c.
Referenced by FloodArea_r(), and FloodAreaConnections().
int leaf_count |
Definition at line 842 of file cmodel.c.
Referenced by CM_BoxLeafnums_headnode(), and CM_BoxLeafnums_r().
int* leaf_list |
Definition at line 843 of file cmodel.c.
Referenced by CM_BoxLeafnums_headnode(), and CM_BoxLeafnums_r().
int leaf_maxcount |
Definition at line 842 of file cmodel.c.
Referenced by CM_BoxLeafnums_headnode(), and CM_BoxLeafnums_r().
float * leaf_maxs |
Definition at line 844 of file cmodel.c.
Referenced by CM_BoxLeafnums_headnode(), and CM_BoxLeafnums_r().
float* leaf_mins |
Definition at line 844 of file cmodel.c.
Referenced by CM_BoxLeafnums_headnode(), and CM_BoxLeafnums_r().
int leaf_topnode |
Definition at line 845 of file cmodel.c.
Referenced by CM_BoxLeafnums_headnode(), and CM_BoxLeafnums_r().
dareaportal_t map_areaportals[MAX_MAP_AREAPORTALS] |
Definition at line 101 of file cmodel.c.
Referenced by CMod_LoadAreaPortals(), and FloodArea_r().
carea_t map_areas[MAX_MAP_AREAS] |
Definition at line 98 of file cmodel.c.
Referenced by CM_AreasConnected(), CM_WriteAreaBits(), CMod_LoadAreas(), FloodArea_r(), and FloodAreaConnections().
cbrush_t map_brushes[MAX_MAP_BRUSHES] |
Definition at line 88 of file cmodel.c.
Referenced by CM_InitBoxHull(), CM_TestInLeaf(), CM_TraceToLeaf(), and CMod_LoadBrushes().
cbrushside_t map_brushsides[MAX_MAP_BRUSHSIDES] |
Definition at line 66 of file cmodel.c.
Referenced by CM_ClipBoxToBrush(), CM_InitBoxHull(), CM_TestBoxInBrush(), and CMod_LoadBrushSides().
cmodel_t map_cmodels[MAX_MAP_MODELS] |
Definition at line 85 of file cmodel.c.
Referenced by CM_BoxLeafnums(), CM_InlineModel(), CM_LoadMap(), and CMod_LoadSubmodels().
char map_entitystring[MAX_MAP_ENTSTRING] |
Definition at line 95 of file cmodel.c.
Referenced by CM_EntityString(), CM_LoadMap(), and CMod_LoadEntityString().
unsigned short map_leafbrushes[MAX_MAP_LEAFBRUSHES] |
Definition at line 82 of file cmodel.c.
Referenced by CM_InitBoxHull(), CM_TestInLeaf(), CM_TraceToLeaf(), and CMod_LoadLeafBrushes().
cleaf_t map_leafs[MAX_MAP_LEAFS] |
Definition at line 78 of file cmodel.c.
Referenced by CM_HeadnodeVisible(), CM_InitBoxHull(), CM_LeafArea(), CM_LeafCluster(), CM_LeafContents(), CM_PointContents(), CM_TestInLeaf(), CM_TraceToLeaf(), CM_TransformedPointContents(), and CMod_LoadLeafs().
char map_name[MAX_QPATH] |
Definition at line 63 of file cmodel.c.
Referenced by CM_LoadMap().
cvar_t* map_noareas |
Definition at line 112 of file cmodel.c.
Referenced by CM_AreasConnected(), CM_LoadMap(), and CM_WriteAreaBits().
cnode_t map_nodes[MAX_MAP_NODES+6] |
Definition at line 75 of file cmodel.c.
Referenced by CM_BoxLeafnums_r(), CM_HeadnodeVisible(), CM_InitBoxHull(), CM_PointLeafnum_r(), CM_RecursiveHullCheck(), and CMod_LoadNodes().
cplane_t map_planes[MAX_MAP_PLANES+6] |
Definition at line 72 of file cmodel.c.
Referenced by CM_InitBoxHull(), CMod_LoadBrushSides(), CMod_LoadNodes(), and CMod_LoadPlanes().
mapsurface_t map_surfaces[MAX_MAP_TEXINFO] |
Definition at line 69 of file cmodel.c.
Referenced by CL_RequestNextDownload(), CMod_LoadBrushSides(), and CMod_LoadSurfaces().
dvis_t* map_vis = (dvis_t *)map_visibility |
Definition at line 92 of file cmodel.c.
Referenced by CM_ClusterPHS(), CM_ClusterPVS(), and CMod_LoadVisibility().
byte map_visibility[MAX_MAP_VISIBILITY] |
Definition at line 91 of file cmodel.c.
Referenced by CM_ClusterPHS(), CM_ClusterPVS(), and CMod_LoadVisibility().
mapsurface_t nullsurface |
Definition at line 105 of file cmodel.c.
Referenced by CM_BoxTrace(), and CM_InitBoxHull().
int numareaportals |
Definition at line 100 of file cmodel.c.
Referenced by CM_SetAreaPortalState(), and CMod_LoadAreaPortals().
int numareas = 1 |
Definition at line 97 of file cmodel.c.
Referenced by CM_AreasConnected(), CM_LoadMap(), CM_WriteAreaBits(), CMod_LoadAreas(), and FloodAreaConnections().
int numbrushes |
Definition at line 87 of file cmodel.c.
Referenced by CM_InitBoxHull(), and CMod_LoadBrushes().
int numbrushsides |
Definition at line 65 of file cmodel.c.
Referenced by CM_InitBoxHull(), and CMod_LoadBrushSides().
int numclusters = 1 |
Definition at line 103 of file cmodel.c.
Referenced by CM_ClusterPHS(), CM_ClusterPVS(), CM_DecompressVis(), CM_LoadMap(), CM_NumClusters(), and CMod_LoadLeafs().
int numcmodels |
Definition at line 84 of file cmodel.c.
Referenced by CM_InlineModel(), CM_LoadMap(), CM_NumInlineModels(), and CMod_LoadSubmodels().
int numentitychars |
Definition at line 94 of file cmodel.c.
Referenced by CM_LoadMap(), and CMod_LoadEntityString().
int numleafbrushes |
Definition at line 81 of file cmodel.c.
Referenced by CM_InitBoxHull(), and CMod_LoadLeafBrushes().
int numleafs = 1 |
Definition at line 77 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_InitBoxHull(), CM_LeafArea(), CM_LeafCluster(), CM_LeafContents(), CM_LoadMap(), CMod_LoadLeafs(), and R_MarkLeaves().
int numnodes |
Definition at line 74 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_InitBoxHull(), CM_LoadMap(), CM_PointContents(), and CMod_LoadNodes().
int numplanes |
Definition at line 71 of file cmodel.c.
Referenced by CM_InitBoxHull(), CM_LoadMap(), CM_PointLeafnum(), CMod_LoadPlanes(), PM_StepSlideMove_(), and SV_FlyMove().
int numtexinfo |
Definition at line 68 of file cmodel.c.
Referenced by CL_RequestNextDownload(), CMod_LoadBrushSides(), and CMod_LoadSurfaces().
int numvisibility |
Definition at line 90 of file cmodel.c.
Referenced by CM_DecompressVis(), CM_LoadMap(), and CMod_LoadVisibility().
byte phsrow[MAX_MAP_LEAFS/8] |
Definition at line 1573 of file cmodel.c.
Referenced by CM_ClusterPHS().
qboolean portalopen[MAX_MAP_AREAPORTALS] |
Definition at line 109 of file cmodel.c.
Referenced by CM_LoadMap(), CM_ReadPortalState(), CM_SetAreaPortalState(), CM_WritePortalState(), and FloodArea_r().
byte pvsrow[MAX_MAP_LEAFS/8] |
Definition at line 1572 of file cmodel.c.
Referenced by CM_ClusterPVS().
int solidleaf |
Definition at line 79 of file cmodel.c.
Referenced by CMod_LoadLeafs().
int trace_contents |
Definition at line 981 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_TestInLeaf(), and CM_TraceToLeaf().
vec3_t trace_end |
Definition at line 976 of file cmodel.c.
Referenced by CM_BoxTrace(), and CM_TraceToLeaf().
vec3_t trace_extents |
Definition at line 978 of file cmodel.c.
Referenced by CM_BoxTrace(), and CM_RecursiveHullCheck().
qboolean trace_ispoint |
Definition at line 982 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_ClipBoxToBrush(), and CM_RecursiveHullCheck().
vec3_t trace_maxs |
Definition at line 977 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_TestInLeaf(), and CM_TraceToLeaf().
vec3_t trace_mins |
Definition at line 977 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_TestInLeaf(), and CM_TraceToLeaf().
vec3_t trace_start |
Definition at line 976 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_TestInLeaf(), and CM_TraceToLeaf().
trace_t trace_trace |
Definition at line 980 of file cmodel.c.
Referenced by CM_BoxTrace(), CM_RecursiveHullCheck(), CM_TestInLeaf(), and CM_TraceToLeaf().