1 /* -------------------------------------------------------------------------------
3 Copyright (C) 1999-2007 id Software, Inc. and contributors.
4 For a list of contributors, see the accompanying CONTRIBUTORS file.
6 This file is part of GtkRadiant.
8 GtkRadiant is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 GtkRadiant is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GtkRadiant; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 ----------------------------------------------------------------------------------
24 Support for Wolfenstein: Enemy Territory by ydnar@splashdamage.com
26 ------------------------------------------------------------------------------- */
36 /* -------------------------------------------------------------------------------
38 content and surface flags
40 ------------------------------------------------------------------------------- */
42 /* this file must be included *after* game_wolf.h because it shares defines! */
44 #define W_SURF_SPLASH 0x00000040 /* enemy territory water splash surface */
45 #define W_SURF_LANDMINE 0x80000000 /* enemy territory 'landminable' surface */
49 /* -------------------------------------------------------------------------------
53 ------------------------------------------------------------------------------- */
57 "etmain", /* default base game data dir */
58 ".etwolf", /* unix home sub-dir */
59 "et", /* magic path word */
60 "scripts", /* shader directory */
61 1024, /* max lightmapped surface verts */
62 1024, /* max surface verts */
63 6144, /* max surface indexes */
64 qfalse, /* enable per shader prefix surface flags and .tex file */
66 "flareshader", /* default flare shader */
67 qtrue, /* wolf lighting model? */
68 128, /* lightmap width/height */
69 1.0f, /* lightmap gamma */
70 qfalse, /* lightmap sRGB */
71 qfalse, /* texture sRGB */
72 qfalse, /* color sRGB */
73 0.0f, /* lightmap exposure */
74 1.0f, /* lightmap compensate */
75 1.0f, /* lightgrid scale */
76 1.0f, /* lightgrid ambient scale */
77 qfalse, /* light angle attenuation uses half-lambert curve */
78 qfalse, /* disable shader lightstyles hack */
79 qfalse, /* keep light entities on bsp */
80 8, /* default patchMeta subdivisions tolerance */
81 qfalse, /* patch casting enabled */
82 qfalse, /* compile deluxemaps */
83 0, /* deluxemaps default mode */
84 512, /* minimap size */
85 1.0f, /* minimap sharpener */
86 0.0f, /* minimap border */
87 qtrue, /* minimap keep aspect */
88 MINIMAP_MODE_GRAY, /* minimap mode */
89 "%s.tga", /* minimap name format */
90 MINIMAP_SIDECAR_NONE, /* minimap sidecar format */
91 "IBSP", /* bsp file prefix */
92 47, /* bsp file version */
93 qfalse, /* cod-style lump len/ofs order */
94 LoadIBSPFile, /* bsp load function */
95 WriteIBSPFile, /* bsp write function */
98 /* name contentFlags contentFlagsClear surfaceFlags surfaceFlagsClear compileFlags compileFlagsClear */
101 { "default", W_CONT_SOLID, -1, 0, -1, C_SOLID, -1 },
105 { "lightgrid", 0, 0, 0, 0, C_LIGHTGRID, 0 },
106 { "antiportal", 0, 0, 0, 0, C_ANTIPORTAL, 0 },
107 { "skip", 0, 0, 0, 0, C_SKIP, 0 },
111 { "origin", W_CONT_ORIGIN, W_CONT_SOLID, 0, 0, C_ORIGIN | C_TRANSLUCENT, C_SOLID },
112 { "areaportal", W_CONT_AREAPORTAL, W_CONT_SOLID, 0, 0, C_AREAPORTAL | C_TRANSLUCENT, C_SOLID },
113 { "trans", W_CONT_TRANSLUCENT, 0, 0, 0, C_TRANSLUCENT, 0 },
114 { "detail", W_CONT_DETAIL, 0, 0, 0, C_DETAIL, 0 },
115 { "structural", W_CONT_STRUCTURAL, 0, 0, 0, C_STRUCTURAL, 0 },
116 { "hint", 0, 0, W_SURF_HINT, 0, C_HINT, 0 },
117 { "nodraw", 0, 0, W_SURF_NODRAW, 0, C_NODRAW, 0 },
119 { "alphashadow", 0, 0, W_SURF_ALPHASHADOW, 0, C_ALPHASHADOW | C_TRANSLUCENT, 0 },
120 { "lightfilter", 0, 0, W_SURF_LIGHTFILTER, 0, C_LIGHTFILTER | C_TRANSLUCENT, 0 },
121 { "nolightmap", 0, 0, W_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
122 { "pointlight", 0, 0, W_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
126 { "nonsolid", 0, W_CONT_SOLID, W_SURF_NONSOLID, 0, 0, C_SOLID },
128 { "trigger", W_CONT_TRIGGER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
130 { "water", W_CONT_WATER, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
131 { "slag", W_CONT_SLIME, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
132 { "lava", W_CONT_LAVA, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
134 { "playerclip", W_CONT_PLAYERCLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
135 { "monsterclip", W_CONT_MONSTERCLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
136 { "clipmissile", W_CONT_MISSILECLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
137 { "clipshot", W_CONT_CLIPSHOT, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
138 { "nodrop", W_CONT_NODROP, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
140 { "clusterportal", W_CONT_CLUSTERPORTAL, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
141 { "donotenter", W_CONT_DONOTENTER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
142 { "nonotenterlarge",W_CONT_DONOTENTER_LARGE, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
143 { "donotenterlarge",W_CONT_DONOTENTER_LARGE, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
145 { "fog", W_CONT_FOG, W_CONT_SOLID, 0, 0, C_FOG, C_SOLID },
146 { "sky", 0, 0, W_SURF_SKY, 0, C_SKY, 0 },
148 { "slick", 0, 0, W_SURF_SLICK, 0, 0, 0 },
150 { "noimpact", 0, 0, W_SURF_NOIMPACT, 0, 0, 0 },
151 { "nomarks", 0, 0, W_SURF_NOMARKS, 0, C_NOMARKS, 0 },
152 { "ladder", 0, 0, W_SURF_LADDER, 0, 0, 0 },
153 { "nodamage", 0, 0, W_SURF_NODAMAGE, 0, 0, 0 },
154 { "nosteps", 0, 0, W_SURF_NOSTEPS, 0, 0, 0 },
155 { "nodlight", 0, 0, W_SURF_NODLIGHT, 0, 0, 0 },
157 /* wolf et landmine-able surface */
158 { "landmine", 0, 0, W_SURF_LANDMINE, 0, 0, 0 },
161 { "metal", 0, 0, W_SURF_METAL, 0, 0, 0 },
162 { "metalsteps", 0, 0, W_SURF_METAL, 0, 0, 0 },
163 { "glass", 0, 0, W_SURF_GLASS, 0, 0, 0 },
164 { "splash", 0, 0, W_SURF_SPLASH, 0, 0, 0 },
165 { "woodsteps", 0, 0, W_SURF_WOOD, 0, 0, 0 },
166 { "grasssteps", 0, 0, W_SURF_GRASS, 0, 0, 0 },
167 { "gravelsteps", 0, 0, W_SURF_GRAVEL, 0, 0, 0 },
168 { "rubble", 0, 0, W_SURF_RUBBLE, 0, 0, 0 },
169 { "carpetsteps", 0, 0, W_SURF_CARPET, 0, 0, 0 },
170 { "snowsteps", 0, 0, W_SURF_SNOW, 0, 0, 0 },
171 { "roofsteps", 0, 0, W_SURF_ROOF, 0, 0, 0 },
175 { "ai_nosight", W_CONT_AI_NOSIGHT, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
177 /* ydnar: experimental until bits are confirmed! */
178 { "ai_nopass", W_CONT_DONOTENTER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
179 { "ai_nopasslarge", W_CONT_DONOTENTER_LARGE, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
183 { "monsterslick", 0, 0, W_SURF_MONSTERSLICK, 0, C_TRANSLUCENT, 0 },
184 { "monsterslicknorth", 0, 0, W_SURF_MONSLICK_N, 0, C_TRANSLUCENT, 0 },
185 { "monsterslickeast", 0, 0, W_SURF_MONSLICK_E, 0, C_TRANSLUCENT, 0 },
186 { "monsterslicksouth", 0, 0, W_SURF_MONSLICK_S, 0, C_TRANSLUCENT, 0 },
187 { "monsterslickwest", 0, 0, W_SURF_MONSLICK_W, 0, C_TRANSLUCENT, 0 },
191 { NULL, 0, 0, 0, 0, 0, 0 }