]> git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake3/q3map2/game_wolfet.h
46746c370b2b84120ef0633ebb84067465fae8ae
[xonotic/netradiant.git] / tools / quake3 / q3map2 / game_wolfet.h
1 /* -------------------------------------------------------------------------------
2
3    Copyright (C) 1999-2007 id Software, Inc. and contributors.
4    For a list of contributors, see the accompanying CONTRIBUTORS file.
5
6    This file is part of GtkRadiant.
7
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.
12
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.
17
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
21
22    ----------------------------------------------------------------------------------
23
24    Support for Wolfenstein: Enemy Territory by ydnar@splashdamage.com
25
26    ------------------------------------------------------------------------------- */
27
28
29
30 /* marker */
31 #ifndef GAME_WOLFET_H
32 #define GAME_WOLFET_H
33
34
35
36 /* -------------------------------------------------------------------------------
37
38    content and surface flags
39
40    ------------------------------------------------------------------------------- */
41
42 /* this file must be included *after* game_wolf.h because it shares defines! */
43
44 #define W_SURF_SPLASH               0x00000040  /* enemy territory water splash surface */
45 #define W_SURF_LANDMINE             0x80000000  /* enemy territory 'landminable' surface */
46
47
48
49 /* -------------------------------------------------------------------------------
50
51    game_t struct
52
53    ------------------------------------------------------------------------------- */
54
55 {
56         "et",               /* -game x */
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 */
65         qfalse,             /* flares */
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         "IBSP",             /* bsp file prefix */
91         47,                 /* bsp file version */
92         qfalse,             /* cod-style lump len/ofs order */
93         LoadIBSPFile,       /* bsp load function */
94         WriteIBSPFile,      /* bsp write function */
95
96         {
97                 /* name                         contentFlags                            contentFlagsClear                       surfaceFlags                            surfaceFlagsClear                       compileFlags                            compileFlagsClear */
98
99                 /* default */
100                 { "default",        W_CONT_SOLID,               -1,                         0,                          -1,                         C_SOLID,                    -1 },
101
102
103                 /* ydnar */
104                 { "lightgrid",      0,                          0,                          0,                          0,                          C_LIGHTGRID,                0 },
105                 { "antiportal",     0,                          0,                          0,                          0,                          C_ANTIPORTAL,               0 },
106                 { "skip",           0,                          0,                          0,                          0,                          C_SKIP,                     0 },
107
108
109                 /* compiler */
110                 { "origin",         W_CONT_ORIGIN,              W_CONT_SOLID,               0,                          0,                          C_ORIGIN | C_TRANSLUCENT,   C_SOLID },
111                 { "areaportal",     W_CONT_AREAPORTAL,          W_CONT_SOLID,               0,                          0,                          C_AREAPORTAL | C_TRANSLUCENT,   C_SOLID },
112                 { "trans",          W_CONT_TRANSLUCENT,         0,                          0,                          0,                          C_TRANSLUCENT,              0 },
113                 { "detail",         W_CONT_DETAIL,              0,                          0,                          0,                          C_DETAIL,                   0 },
114                 { "structural",     W_CONT_STRUCTURAL,          0,                          0,                          0,                          C_STRUCTURAL,               0 },
115                 { "hint",           0,                          0,                          W_SURF_HINT,                0,                          C_HINT,                     0 },
116                 { "nodraw",         0,                          0,                          W_SURF_NODRAW,              0,                          C_NODRAW,                   0 },
117
118                 { "alphashadow",    0,                          0,                          W_SURF_ALPHASHADOW,         0,                          C_ALPHASHADOW | C_TRANSLUCENT,  0 },
119                 { "lightfilter",    0,                          0,                          W_SURF_LIGHTFILTER,         0,                          C_LIGHTFILTER | C_TRANSLUCENT,  0 },
120                 { "nolightmap",     0,                          0,                          W_SURF_VERTEXLIT,           0,                          C_VERTEXLIT,                0 },
121                 { "pointlight",     0,                          0,                          W_SURF_VERTEXLIT,           0,                          C_VERTEXLIT,                0 },
122
123
124                 /* game */
125                 { "nonsolid",       0,                          W_CONT_SOLID,               W_SURF_NONSOLID,            0,                          0,                          C_SOLID },
126
127                 { "trigger",        W_CONT_TRIGGER,             W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
128
129                 { "water",          W_CONT_WATER,               W_CONT_SOLID,               0,                          0,                          C_LIQUID | C_TRANSLUCENT,   C_SOLID },
130                 { "slag",           W_CONT_SLIME,               W_CONT_SOLID,               0,                          0,                          C_LIQUID | C_TRANSLUCENT,   C_SOLID },
131                 { "lava",           W_CONT_LAVA,                W_CONT_SOLID,               0,                          0,                          C_LIQUID | C_TRANSLUCENT,   C_SOLID },
132
133                 { "playerclip",     W_CONT_PLAYERCLIP,          W_CONT_SOLID,               0,                          0,                          C_DETAIL | C_TRANSLUCENT,   C_SOLID },
134                 { "monsterclip",    W_CONT_MONSTERCLIP,         W_CONT_SOLID,               0,                          0,                          C_DETAIL | C_TRANSLUCENT,   C_SOLID },
135                 { "clipmissile",    W_CONT_MISSILECLIP,         W_CONT_SOLID,               0,                          0,                          C_DETAIL | C_TRANSLUCENT,   C_SOLID },
136                 { "clipshot",       W_CONT_CLIPSHOT,            W_CONT_SOLID,               0,                          0,                          C_DETAIL | C_TRANSLUCENT,   C_SOLID },
137                 { "nodrop",         W_CONT_NODROP,              W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
138
139                 { "clusterportal",  W_CONT_CLUSTERPORTAL,       W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
140                 { "donotenter",     W_CONT_DONOTENTER,          W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
141                 { "nonotenterlarge",W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
142                 { "donotenterlarge",W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
143
144                 { "fog",            W_CONT_FOG,                 W_CONT_SOLID,               0,                          0,                          C_FOG,                      C_SOLID },
145                 { "sky",            0,                          0,                          W_SURF_SKY,                 0,                          C_SKY,                      0 },
146
147                 { "slick",          0,                          0,                          W_SURF_SLICK,               0,                          0,                          0 },
148
149                 { "noimpact",       0,                          0,                          W_SURF_NOIMPACT,            0,                          0,                          0 },
150                 { "nomarks",        0,                          0,                          W_SURF_NOMARKS,             0,                          C_NOMARKS,                  0 },
151                 { "ladder",         0,                          0,                          W_SURF_LADDER,              0,                          0,                          0 },
152                 { "nodamage",       0,                          0,                          W_SURF_NODAMAGE,            0,                          0,                          0 },
153                 { "nosteps",        0,                          0,                          W_SURF_NOSTEPS,             0,                          0,                          0 },
154                 { "nodlight",       0,                          0,                          W_SURF_NODLIGHT,            0,                          0,                          0 },
155
156                 /* wolf et landmine-able surface */
157                 { "landmine",       0,                          0,                          W_SURF_LANDMINE,            0,                          0,                          0 },
158
159                 /* materials */
160                 { "metal",          0,                          0,                          W_SURF_METAL,               0,                          0,                          0 },
161                 { "metalsteps",     0,                          0,                          W_SURF_METAL,               0,                          0,                          0 },
162                 { "glass",          0,                          0,                          W_SURF_GLASS,               0,                          0,                          0 },
163                 { "splash",         0,                          0,                          W_SURF_SPLASH,              0,                          0,                          0 },
164                 { "woodsteps",      0,                          0,                          W_SURF_WOOD,                0,                          0,                          0 },
165                 { "grasssteps",     0,                          0,                          W_SURF_GRASS,               0,                          0,                          0 },
166                 { "gravelsteps",    0,                          0,                          W_SURF_GRAVEL,              0,                          0,                          0 },
167                 { "rubble",         0,                          0,                          W_SURF_RUBBLE,              0,                          0,                          0 },
168                 { "carpetsteps",    0,                          0,                          W_SURF_CARPET,              0,                          0,                          0 },
169                 { "snowsteps",      0,                          0,                          W_SURF_SNOW,                0,                          0,                          0 },
170                 { "roofsteps",      0,                          0,                          W_SURF_ROOF,                0,                          0,                          0 },
171
172
173                 /* ai */
174                 { "ai_nosight",     W_CONT_AI_NOSIGHT,          W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
175
176                 /* ydnar: experimental until bits are confirmed! */
177                 { "ai_nopass",      W_CONT_DONOTENTER,          W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
178                 { "ai_nopasslarge", W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
179
180
181                 /* sliding bodies */
182                 { "monsterslick",   0,                          0,                          W_SURF_MONSTERSLICK,        0,                          C_TRANSLUCENT,              0 },
183                 { "monsterslicknorth",  0,                      0,                          W_SURF_MONSLICK_N,          0,                          C_TRANSLUCENT,              0 },
184                 { "monsterslickeast",   0,                      0,                          W_SURF_MONSLICK_E,          0,                          C_TRANSLUCENT,              0 },
185                 { "monsterslicksouth",  0,                      0,                          W_SURF_MONSLICK_S,          0,                          C_TRANSLUCENT,              0 },
186                 { "monsterslickwest",   0,                      0,                          W_SURF_MONSLICK_W,          0,                          C_TRANSLUCENT,              0 },
187
188
189                 /* null */
190                 { NULL, 0, 0, 0, 0, 0, 0 }
191         }
192 }
193
194
195
196 /* end marker */
197 #endif