2 Copyright (C) 1999-2007 id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
5 This file is part of GtkRadiant.
7 GtkRadiant is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 GtkRadiant is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GtkRadiant; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 ----------------------------------------------------------------------------------
23 Support for Wolfenstein: Enemy Territory by ydnar@splashdamage.com
25 ------------------------------------------------------------------------------- */
35 /* -------------------------------------------------------------------------------
37 content and surface flags
39 ------------------------------------------------------------------------------- */
41 /* this file must be included *after* game_wolf.h because it shares defines! */
43 #define W_SURF_SPLASH 0x00000040 /* enemy territory water splash surface */
44 #define W_SURF_LANDMINE 0x80000000 /* enemy territory 'landminable' surface */
48 /* -------------------------------------------------------------------------------
52 ------------------------------------------------------------------------------- */
56 "etmain", /* default base game data dir */
57 ".etwolf", /* unix home sub-dir */
58 "et", /* magic path word */
59 "scripts", /* shader directory */
60 qtrue, /* wolf lighting model? */
62 "flareshader", /* default flare shader */
63 "IBSP", /* bsp file prefix */
64 47, /* bsp file version */
65 LoadIBSPFile, /* bsp load function */
66 WriteIBSPFile, /* bsp write function */
69 /* name contentFlags contentFlagsClear surfaceFlags surfaceFlagsClear compileFlags compileFlagsClear */
72 { "default", W_CONT_SOLID, -1, 0, -1, C_SOLID, -1 },
76 { "lightgrid", 0, 0, 0, 0, C_LIGHTGRID, 0 },
77 { "antiportal", 0, 0, 0, 0, C_ANTIPORTAL, 0 },
78 { "skip", 0, 0, 0, 0, C_SKIP, 0 },
82 { "origin", W_CONT_ORIGIN, W_CONT_SOLID, 0, 0, C_ORIGIN | C_TRANSLUCENT, C_SOLID },
83 { "areaportal", W_CONT_AREAPORTAL, W_CONT_SOLID, 0, 0, C_AREAPORTAL | C_TRANSLUCENT, C_SOLID },
84 { "trans", W_CONT_TRANSLUCENT, 0, 0, 0, C_TRANSLUCENT, 0 },
85 { "detail", W_CONT_DETAIL, 0, 0, 0, C_DETAIL, 0 },
86 { "structural", W_CONT_STRUCTURAL, 0, 0, 0, C_STRUCTURAL, 0 },
87 { "hint", 0, 0, W_SURF_HINT, 0, C_HINT, 0 },
88 { "nodraw", 0, 0, W_SURF_NODRAW, 0, C_NODRAW, 0 },
90 { "alphashadow", 0, 0, W_SURF_ALPHASHADOW, 0, C_ALPHASHADOW | C_TRANSLUCENT, 0 },
91 { "lightfilter", 0, 0, W_SURF_LIGHTFILTER, 0, C_LIGHTFILTER | C_TRANSLUCENT, 0 },
92 { "nolightmap", 0, 0, W_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
93 { "pointlight", 0, 0, W_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
97 { "nonsolid", 0, W_CONT_SOLID, W_SURF_NONSOLID, 0, 0, C_SOLID },
99 { "trigger", W_CONT_TRIGGER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
101 { "water", W_CONT_WATER, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
102 { "slag", W_CONT_SLIME, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
103 { "lava", W_CONT_LAVA, W_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
105 { "playerclip", W_CONT_PLAYERCLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
106 { "monsterclip", W_CONT_MONSTERCLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
107 { "clipmissile", W_CONT_MISSILECLIP, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
108 { "clipshot", W_CONT_CLIPSHOT, W_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
109 { "nodrop", W_CONT_NODROP, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
111 { "clusterportal", W_CONT_CLUSTERPORTAL, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
112 { "donotenter", W_CONT_DONOTENTER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
113 { "nonotenterlarge",W_CONT_DONOTENTER_LARGE, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
115 { "fog", W_CONT_FOG, W_CONT_SOLID, 0, 0, C_FOG, C_SOLID },
116 { "sky", 0, 0, W_SURF_SKY, 0, C_SKY, 0 },
118 { "slick", 0, 0, W_SURF_SLICK, 0, 0, 0 },
120 { "noimpact", 0, 0, W_SURF_NOIMPACT, 0, 0, 0 },
121 { "nomarks", 0, 0, W_SURF_NOMARKS, 0, C_NOMARKS, 0 },
122 { "ladder", 0, 0, W_SURF_LADDER, 0, 0, 0 },
123 { "nodamage", 0, 0, W_SURF_NODAMAGE, 0, 0, 0 },
124 { "nosteps", 0, 0, W_SURF_NOSTEPS, 0, 0, 0 },
125 { "nodlight", 0, 0, W_SURF_NODLIGHT, 0, 0, 0 },
127 /* wolf et landmine-able surface */
128 { "landmine", 0, 0, W_SURF_LANDMINE, 0, 0, 0 },
131 { "metal", 0, 0, W_SURF_METAL, 0, 0, 0 },
132 { "metalsteps", 0, 0, W_SURF_METAL, 0, 0, 0 },
133 { "glass", 0, 0, W_SURF_GLASS, 0, 0, 0 },
134 { "splash", 0, 0, W_SURF_SPLASH, 0, 0, 0 },
135 { "woodsteps", 0, 0, W_SURF_WOOD, 0, 0, 0 },
136 { "grasssteps", 0, 0, W_SURF_GRASS, 0, 0, 0 },
137 { "gravelsteps", 0, 0, W_SURF_GRAVEL, 0, 0, 0 },
138 { "rubble", 0, 0, W_SURF_RUBBLE, 0, 0, 0 },
139 { "carpetsteps", 0, 0, W_SURF_CARPET, 0, 0, 0 },
140 { "snowsteps", 0, 0, W_SURF_SNOW, 0, 0, 0 },
141 { "roofsteps", 0, 0, W_SURF_ROOF, 0, 0, 0 },
145 { "ai_nosight", W_CONT_AI_NOSIGHT, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
147 /* ydnar: experimental until bits are confirmed! */
148 { "ai_nopass", W_CONT_DONOTENTER, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
149 { "ai_nopasslarge", W_CONT_DONOTENTER_LARGE, W_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
153 { "monsterslick", 0, 0, W_SURF_MONSTERSLICK, 0, C_TRANSLUCENT, 0 },
154 { "monsterslicknorth", 0, 0, W_SURF_MONSLICK_N, 0, C_TRANSLUCENT, 0 },
155 { "monsterslickeast", 0, 0, W_SURF_MONSLICK_E, 0, C_TRANSLUCENT, 0 },
156 { "monsterslicksouth", 0, 0, W_SURF_MONSLICK_S, 0, C_TRANSLUCENT, 0 },
157 { "monsterslickwest", 0, 0, W_SURF_MONSLICK_W, 0, C_TRANSLUCENT, 0 },
161 { NULL, 0, 0, 0, 0, 0, 0 }