-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbspconst.pas
126 lines (102 loc) · 3.02 KB
/
bspconst.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// ------------------------------------------------------------------------------
// DelphiQuake, Copyright (C) 2005-2011 by Jim Valavanis
// E-Mail: [email protected]
//
// Copyright (C) 1996-1997 Id Software, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// ------------------------------------------------------------------------------
{$I dquake.inc}
unit bspconst;
interface
// upper design bounds
const
MAX_MAP_HULLS = 4;
MAX_MAP_MODELS = 400;
MAX_MAP_BRUSHES = 4096;
MAX_MAP_ENTITIES = 1024;
MAX_MAP_ENTSTRING = 65536;
MAX_MAP_LEAFS = 8192;
MAX_MAP_PLANES = 32767;
MAX_MAP_NODES = 32767; // because negative shorts are contents
MAX_MAP_CLIPNODES = 32767; //
MAX_MAP_VERTS = 65535;
MAX_MAP_FACES = 65535;
MAX_MAP_MARKSURFACES = 65535;
MAX_MAP_TEXINFO = 8192;
MAX_MAP_EDGES = 256000;
MAX_MAP_SURFEDGES = 512000;
MAX_MAP_TEXTURES = 512;
MAX_MAP_MIPTEX = $200000;
MAX_MAP_LIGHTING = $100000;
MAX_MAP_VISIBILITY = $100000;
MAX_MAP_PORTALS = 65536;
// key / value pair sizes
MAX_KEY = 32;
MAX_VALUE = 1024;
//=============================================================================
BSPVERSION_QuakeI = 29;
BSPVERSION_HalfLife = 30;
TOOLVERSION = 2;
LUMP_ENTITIES = 0;
LUMP_PLANES = 1;
LUMP_TEXTURES = 2;
LUMP_VERTEXES = 3;
LUMP_VISIBILITY = 4;
LUMP_NODES = 5;
LUMP_TEXINFO = 6;
LUMP_FACES = 7;
LUMP_LIGHTING = 8;
LUMP_CLIPNODES = 9;
LUMP_LEAFS = 10;
LUMP_MARKSURFACES = 11;
LUMP_EDGES = 12;
LUMP_SURFEDGES = 13;
LUMP_MODELS = 14;
HEADER_LUMPS = 15;
MIPLEVELS = 4;
MAXLIGHTMAPS = 4;
AMBIENT_WATER = 0;
AMBIENT_SKY = 1;
AMBIENT_SLIME = 2;
AMBIENT_LAVA = 3;
NUM_AMBIENTS = 4; // automatic ambient sounds
TEX_SPECIAL = 1; // sky or slime, no lightmap or 256 subdivision
CONTENTS_EMPTY = -1;
CONTENTS_SOLID = -2;
CONTENTS_WATER = -3;
CONTENTS_SLIME = -4;
CONTENTS_LAVA = -5;
CONTENTS_SKY = -6;
CONTENTS_ORIGIN = -7; // removed at csg time
CONTENTS_CLIP = -8; // changed to contents_solid
CONTENTS_CURRENT_0 = -9;
CONTENTS_CURRENT_90 = -10;
CONTENTS_CURRENT_180 = -11;
CONTENTS_CURRENT_270 = -12;
CONTENTS_CURRENT_UP = -13;
CONTENTS_CURRENT_DOWN = -14;
// 0-2 are axial planes
PLANE_X = 0;
PLANE_Y = 1;
PLANE_Z = 2;
// 3-5 are non-axial planes snapped to the nearest
PLANE_ANYX = 3;
PLANE_ANYY = 4;
PLANE_ANYZ = 5;
implementation
end.