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 */
65 "flareshader", /* default flare shader */
66 qtrue, /* wolf lighting model? */
67 128, /* lightmap width/height */
68 1.0f, /* lightmap gamma */
69 1.0f, /* lightmap exposure */
70 1.0f, /* lightmap compensate */
71 1.0f, /* lightgrid scale */
72 1.0f, /* lightgrid ambient scale */
73 qfalse, /* disable shader lightstyles hack */
74 qfalse, /* keep light entities on bsp */
75 8, /* default patchMeta subdivisions tolerance */
76 qfalse, /* patch casting enabled */
77 qfalse, /* compile deluxemaps */
78 0, /* deluxemaps default mode */
79 512, /* minimap size */
80 1.0f, /* minimap sharpener */
81 0.0f, /* minimap border */
82 qtrue, /* minimap keep aspect */
83 MINIMAP_MODE_GRAY, /* minimap mode */
84 "%s.tga", /* minimap name format */
85 "IBSP", /* bsp file prefix */
86 47, /* bsp file version */
87 qfalse, /* cod-style lump len/ofs order */
88 LoadIBSPFile, /* bsp load function */
89 WriteIBSPFile, /* bsp write function */
92 /* name contentFlags contentFlagsClear surfaceFlags surfaceFlagsClear compileFlags compileFlagsClear */
95 { "default", W_CONT_SOLID, -1, 0, -1, C_SOLID, -1 },
99 { "lightgrid", 0, 0, 0, 0, C_LIGHTGRID, 0 },
100 { "antiportal", 0, 0, 0, 0, C_ANTIPORTAL, 0 },
101 { "skip", 0, 0, 0, 0, C_SKIP, 0 },
105 { "origin", W_CONT_ORIGIN, W_CONT_SOLID, 0, 0, C_ORIGIN | C_TRANSLUCENT, C_SOLID },
106 { "areaportal", W_CONT_AREAPORTAL, W_CONT_SOLID, 0, 0, C_AREAPORTAL | C_TRANSLUCENT, C_SOLID },
107 { "trans", W_CONT_TRANSLUCENT, 0, 0, 0, C_TRANSLUCENT, 0 },
108 { "detail", W_CONT_DETAIL, 0, 0, 0, C_DETAIL, 0 },
109 { "structural", W_CONT_STRUCTURAL, 0, 0, 0, C_STRUCTURAL, 0 },
110 { "hint", 0, 0, W_SURF_HINT, 0, C_HINT, 0 },
111 { "nodraw", 0, 0, W_SURF_NODRAW, 0, C_NODRAW, 0 },
113 { "alphashadow", 0, 0, W_SURF_ALPHASHADOW, 0, C_ALPHASHADOW | C_TRANSLUCENT, 0 },
114 { "lightfilter", 0, 0, W_SURF_LIGHTFILTER, 0, C_LIGHTFILTER | C_TRANSLUCENT, 0 },
115 { "nolightmap", 0, 0, W_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
116 { "pointlight", 0, 0, W_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
120 { "nonsolid", 0, W_CONT_SOLID, W_SURF_NONSOLID, 0, 0, C_SOLID },
122 { "trigger", W_CONT_TRIGGER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
124 { "water", W_CONT_WATER, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
125 { "slag", W_CONT_SLIME, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
126 { "lava", W_CONT_LAVA, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
128 { "playerclip", W_CONT_PLAYERCLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
129 { "monsterclip", W_CONT_MONSTERCLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
130 { "clipmissile", W_CONT_MISSILECLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
131 { "clipshot", W_CONT_CLIPSHOT, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
132 { "nodrop", W_CONT_NODROP, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
134 { "clusterportal", W_CONT_CLUSTERPORTAL, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
135 { "donotenter", W_CONT_DONOTENTER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
136 { "nonotenterlarge",W_CONT_DONOTENTER_LARGE, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
138 { "fog", W_CONT_FOG, W_CONT_SOLID, 0, 0, C_FOG, C_SOLID },
139 { "sky", 0, 0, W_SURF_SKY, 0, C_SKY, 0 },
141 { "slick", 0, 0, W_SURF_SLICK, 0, 0, 0 },
143 { "noimpact", 0, 0, W_SURF_NOIMPACT, 0, 0, 0 },
144 { "nomarks", 0, 0, W_SURF_NOMARKS, 0, C_NOMARKS, 0 },
145 { "ladder", 0, 0, W_SURF_LADDER, 0, 0, 0 },
146 { "nodamage", 0, 0, W_SURF_NODAMAGE, 0, 0, 0 },
147 { "nosteps", 0, 0, W_SURF_NOSTEPS, 0, 0, 0 },
148 { "nodlight", 0, 0, W_SURF_NODLIGHT, 0, 0, 0 },
150 /* wolf et landmine-able surface */
151 { "landmine", 0, 0, W_SURF_LANDMINE, 0, 0, 0 },
154 { "metal", 0, 0, W_SURF_METAL, 0, 0, 0 },
155 { "metalsteps", 0, 0, W_SURF_METAL, 0, 0, 0 },
156 { "glass", 0, 0, W_SURF_GLASS, 0, 0, 0 },
157 { "splash", 0, 0, W_SURF_SPLASH, 0, 0, 0 },
158 { "woodsteps", 0, 0, W_SURF_WOOD, 0, 0, 0 },
159 { "grasssteps", 0, 0, W_SURF_GRASS, 0, 0, 0 },
160 { "gravelsteps", 0, 0, W_SURF_GRAVEL, 0, 0, 0 },
161 { "rubble", 0, 0, W_SURF_RUBBLE, 0, 0, 0 },
162 { "carpetsteps", 0, 0, W_SURF_CARPET, 0, 0, 0 },
163 { "snowsteps", 0, 0, W_SURF_SNOW, 0, 0, 0 },
164 { "roofsteps", 0, 0, W_SURF_ROOF, 0, 0, 0 },
168 { "ai_nosight", W_CONT_AI_NOSIGHT, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
170 /* ydnar: experimental until bits are confirmed! */
171 { "ai_nopass", W_CONT_DONOTENTER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
172 { "ai_nopasslarge", W_CONT_DONOTENTER_LARGE, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
176 { "monsterslick", 0, 0, W_SURF_MONSTERSLICK, 0, C_TRANSLUCENT, 0 },
177 { "monsterslicknorth", 0, 0, W_SURF_MONSLICK_N, 0, C_TRANSLUCENT, 0 },
178 { "monsterslickeast", 0, 0, W_SURF_MONSLICK_E, 0, C_TRANSLUCENT, 0 },
179 { "monsterslicksouth", 0, 0, W_SURF_MONSLICK_S, 0, C_TRANSLUCENT, 0 },
180 { "monsterslickwest", 0, 0, W_SURF_MONSLICK_W, 0, C_TRANSLUCENT, 0 },
184 { NULL, 0, 0, 0, 0, 0, 0 }