1 /* -------------------------------------------------------------------------------
\r
3 Copyright (C) 1999-2006 Id Software, Inc. and contributors.
\r
4 For a list of contributors, see the accompanying CONTRIBUTORS file.
\r
6 This file is part of GtkRadiant.
\r
8 GtkRadiant is free software; you can redistribute it and/or modify
\r
9 it under the terms of the GNU General Public License as published by
\r
10 the Free Software Foundation; either version 2 of the License, or
\r
11 (at your option) any later version.
\r
13 GtkRadiant is distributed in the hope that it will be useful,
\r
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
16 GNU General Public License for more details.
\r
18 You should have received a copy of the GNU General Public License
\r
19 along with GtkRadiant; if not, write to the Free Software
\r
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
\r
22 ----------------------------------------------------------------------------------
\r
24 This code has been altered significantly from its original form, to support
\r
25 several games based on the Quake III Arena engine, in the form of "Q3Map2."
\r
27 ------------------------------------------------------------------------------- */
\r
32 #ifndef GAME_DARKPLACES_H
\r
33 #define GAME_DARKPLACES_H
\r
35 /* content and surface flags get form quake3 */
\r
37 /* -------------------------------------------------------------------------------
\r
41 ------------------------------------------------------------------------------- */
\r
44 "darkplaces", /* -game x */
\r
45 "id1", /* default base game data dir */
\r
46 ".darkplaces ", /* unix home sub-dir */
\r
47 "darkplaces", /* magic path word */
\r
48 "scripts", /* shader directory */
\r
49 999, /* max lightmapped surface verts */
\r
50 999, /* max surface verts */
\r
51 6000, /* max surface indexes */
\r
52 qfalse, /* flares */
\r
53 "flareshader", /* default flare shader */
\r
54 qfalse, /* wolf lighting model? */
\r
55 128, /* lightmap width/height */
\r
56 1.0f, /* lightmap gamma */
\r
57 200.0f, /* lightmap exposure */
\r
58 1.0f, /* lightmap compensate */
\r
59 0.3f, /* lightgrid scale */
\r
60 0.6f, /* lightgrid ambient scale */
\r
61 qtrue, /* disable shader lightstyles hack */
\r
62 qtrue, /* keep light entities on bsp */
\r
63 4, /* default patchMeta subdivisions tolerance */
\r
64 qfalse, /* patch casting enabled */
\r
65 qfalse, /* compile deluxemaps */
\r
66 0, /* deluxemaps default mode */
\r
67 "IBSP", /* bsp file prefix */
\r
68 46, /* bsp file version */
\r
69 qfalse, /* cod-style lump len/ofs order */
\r
70 LoadIBSPFile, /* bsp load function */
\r
71 WriteIBSPFile, /* bsp write function */
\r
74 /* name contentFlags contentFlagsClear surfaceFlags surfaceFlagsClear compileFlags compileFlagsClear */
\r
77 { "default", Q_CONT_SOLID, -1, 0, -1, C_SOLID, -1 },
\r
81 { "lightgrid", 0, 0, 0, 0, C_LIGHTGRID, 0 },
\r
82 { "antiportal", 0, 0, 0, 0, C_ANTIPORTAL, 0 },
\r
83 { "skip", 0, 0, 0, 0, C_SKIP, 0 },
\r
87 { "origin", Q_CONT_ORIGIN, Q_CONT_SOLID, 0, 0, C_ORIGIN | C_TRANSLUCENT, C_SOLID },
\r
88 { "areaportal", Q_CONT_AREAPORTAL, Q_CONT_SOLID, 0, 0, C_AREAPORTAL | C_TRANSLUCENT, C_SOLID },
\r
89 { "trans", Q_CONT_TRANSLUCENT, 0, 0, 0, C_TRANSLUCENT, 0 },
\r
90 { "detail", Q_CONT_DETAIL, 0, 0, 0, C_DETAIL, 0 },
\r
91 { "structural", Q_CONT_STRUCTURAL, 0, 0, 0, C_STRUCTURAL, 0 },
\r
92 { "hint", 0, 0, Q_SURF_HINT, 0, C_HINT, 0 },
\r
93 { "nodraw", 0, 0, Q_SURF_NODRAW, 0, C_NODRAW, 0 },
\r
95 { "alphashadow", 0, 0, Q_SURF_ALPHASHADOW, 0, C_ALPHASHADOW | C_TRANSLUCENT, 0 },
\r
96 { "lightfilter", 0, 0, Q_SURF_LIGHTFILTER, 0, C_LIGHTFILTER | C_TRANSLUCENT, 0 },
\r
97 { "nolightmap", 0, 0, Q_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
\r
98 { "pointlight", 0, 0, Q_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
\r
102 { "nonsolid", 0, Q_CONT_SOLID, Q_SURF_NONSOLID, 0, 0, C_SOLID },
\r
104 { "trigger", Q_CONT_TRIGGER, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
\r
106 { "water", Q_CONT_WATER, Q_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
\r
107 { "slime", Q_CONT_SLIME, Q_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
\r
108 { "lava", Q_CONT_LAVA, Q_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
\r
110 { "playerclip", Q_CONT_PLAYERCLIP, Q_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
\r
111 { "monsterclip", Q_CONT_MONSTERCLIP, Q_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
\r
112 { "nodrop", Q_CONT_NODROP, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
\r
114 { "clusterportal", Q_CONT_CLUSTERPORTAL, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
\r
115 { "donotenter", Q_CONT_DONOTENTER, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
\r
116 { "botclip", Q_CONT_BOTCLIP, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
\r
118 { "fog", Q_CONT_FOG, Q_CONT_SOLID, 0, 0, C_FOG, C_SOLID },
\r
119 { "sky", 0, 0, Q_SURF_SKY, 0, C_SKY, 0 },
\r
121 { "slick", 0, 0, Q_SURF_SLICK, 0, 0, 0 },
\r
123 { "noimpact", 0, 0, Q_SURF_NOIMPACT, 0, 0, 0 },
\r
124 { "nomarks", 0, 0, Q_SURF_NOMARKS, 0, C_NOMARKS, 0 },
\r
125 { "ladder", 0, 0, Q_SURF_LADDER, 0, 0, 0 },
\r
126 { "nodamage", 0, 0, Q_SURF_NODAMAGE, 0, 0, 0 },
\r
127 { "metalsteps", 0, 0, Q_SURF_METALSTEPS, 0, 0, 0 },
\r
128 { "flesh", 0, 0, Q_SURF_FLESH, 0, 0, 0 },
\r
129 { "nosteps", 0, 0, Q_SURF_NOSTEPS, 0, 0, 0 },
\r
130 { "nodlight", 0, 0, Q_SURF_NODLIGHT, 0, 0, 0 },
\r
131 { "dust", 0, 0, Q_SURF_DUST, 0, 0, 0 },
\r
135 { NULL, 0, 0, 0, 0, 0, 0 }
\r