]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake3/q3map2/game_wolfet.h
Merge branch 'fix-fast' into 'master'
[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,             /* flares */
65         "flareshader",      /* default flare shader */
66         qtrue,              /* wolf lighting model? */
67         128,                /* lightmap width/height */
68         1.0f,               /* lightmap gamma */
69         qfalse,             /* lightmap sRGB */
70         qfalse,             /* texture sRGB */
71         qfalse,             /* color sRGB */
72         0.0f,               /* lightmap exposure */
73         1.0f,               /* lightmap compensate */
74         1.0f,               /* lightgrid scale */
75         1.0f,               /* lightgrid ambient scale */
76         qfalse,             /* light angle attenuation uses half-lambert curve */
77         qfalse,             /* disable shader lightstyles hack */
78         qfalse,             /* keep light entities on bsp */
79         8,                  /* default patchMeta subdivisions tolerance */
80         qfalse,             /* patch casting enabled */
81         qfalse,             /* compile deluxemaps */
82         0,                  /* deluxemaps default mode */
83         512,                /* minimap size */
84         1.0f,               /* minimap sharpener */
85         0.0f,               /* minimap border */
86         qtrue,              /* minimap keep aspect */
87         MINIMAP_MODE_GRAY,  /* minimap mode */
88         "%s.tga",           /* minimap name format */
89         "IBSP",             /* bsp file prefix */
90         47,                 /* bsp file version */
91         qfalse,             /* cod-style lump len/ofs order */
92         LoadIBSPFile,       /* bsp load function */
93         WriteIBSPFile,      /* bsp write function */
94
95         {
96                 /* name                         contentFlags                            contentFlagsClear                       surfaceFlags                            surfaceFlagsClear                       compileFlags                            compileFlagsClear */
97
98                 /* default */
99                 { "default",        W_CONT_SOLID,               -1,                         0,                          -1,                         C_SOLID,                    -1 },
100
101
102                 /* ydnar */
103                 { "lightgrid",      0,                          0,                          0,                          0,                          C_LIGHTGRID,                0 },
104                 { "antiportal",     0,                          0,                          0,                          0,                          C_ANTIPORTAL,               0 },
105                 { "skip",           0,                          0,                          0,                          0,                          C_SKIP,                     0 },
106
107
108                 /* compiler */
109                 { "origin",         W_CONT_ORIGIN,              W_CONT_SOLID,               0,                          0,                          C_ORIGIN | C_TRANSLUCENT,   C_SOLID },
110                 { "areaportal",     W_CONT_AREAPORTAL,          W_CONT_SOLID,               0,                          0,                          C_AREAPORTAL | C_TRANSLUCENT,   C_SOLID },
111                 { "trans",          W_CONT_TRANSLUCENT,         0,                          0,                          0,                          C_TRANSLUCENT,              0 },
112                 { "detail",         W_CONT_DETAIL,              0,                          0,                          0,                          C_DETAIL,                   0 },
113                 { "structural",     W_CONT_STRUCTURAL,          0,                          0,                          0,                          C_STRUCTURAL,               0 },
114                 { "hint",           0,                          0,                          W_SURF_HINT,                0,                          C_HINT,                     0 },
115                 { "nodraw",         0,                          0,                          W_SURF_NODRAW,              0,                          C_NODRAW,                   0 },
116
117                 { "alphashadow",    0,                          0,                          W_SURF_ALPHASHADOW,         0,                          C_ALPHASHADOW | C_TRANSLUCENT,  0 },
118                 { "lightfilter",    0,                          0,                          W_SURF_LIGHTFILTER,         0,                          C_LIGHTFILTER | C_TRANSLUCENT,  0 },
119                 { "nolightmap",     0,                          0,                          W_SURF_VERTEXLIT,           0,                          C_VERTEXLIT,                0 },
120                 { "pointlight",     0,                          0,                          W_SURF_VERTEXLIT,           0,                          C_VERTEXLIT,                0 },
121
122
123                 /* game */
124                 { "nonsolid",       0,                          W_CONT_SOLID,               W_SURF_NONSOLID,            0,                          0,                          C_SOLID },
125
126                 { "trigger",        W_CONT_TRIGGER,             W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
127
128                 { "water",          W_CONT_WATER,               W_CONT_SOLID,               0,                          0,                          C_LIQUID | C_TRANSLUCENT,   C_SOLID },
129                 { "slag",           W_CONT_SLIME,               W_CONT_SOLID,               0,                          0,                          C_LIQUID | C_TRANSLUCENT,   C_SOLID },
130                 { "lava",           W_CONT_LAVA,                W_CONT_SOLID,               0,                          0,                          C_LIQUID | C_TRANSLUCENT,   C_SOLID },
131
132                 { "playerclip",     W_CONT_PLAYERCLIP,          W_CONT_SOLID,               0,                          0,                          C_DETAIL | C_TRANSLUCENT,   C_SOLID },
133                 { "monsterclip",    W_CONT_MONSTERCLIP,         W_CONT_SOLID,               0,                          0,                          C_DETAIL | C_TRANSLUCENT,   C_SOLID },
134                 { "clipmissile",    W_CONT_MISSILECLIP,         W_CONT_SOLID,               0,                          0,                          C_DETAIL | C_TRANSLUCENT,   C_SOLID },
135                 { "clipshot",       W_CONT_CLIPSHOT,            W_CONT_SOLID,               0,                          0,                          C_DETAIL | C_TRANSLUCENT,   C_SOLID },
136                 { "nodrop",         W_CONT_NODROP,              W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
137
138                 { "clusterportal",  W_CONT_CLUSTERPORTAL,       W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
139                 { "donotenter",     W_CONT_DONOTENTER,          W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
140                 { "nonotenterlarge",W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
141                 { "donotenterlarge",W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
142
143                 { "fog",            W_CONT_FOG,                 W_CONT_SOLID,               0,                          0,                          C_FOG,                      C_SOLID },
144                 { "sky",            0,                          0,                          W_SURF_SKY,                 0,                          C_SKY,                      0 },
145
146                 { "slick",          0,                          0,                          W_SURF_SLICK,               0,                          0,                          0 },
147
148                 { "noimpact",       0,                          0,                          W_SURF_NOIMPACT,            0,                          0,                          0 },
149                 { "nomarks",        0,                          0,                          W_SURF_NOMARKS,             0,                          C_NOMARKS,                  0 },
150                 { "ladder",         0,                          0,                          W_SURF_LADDER,              0,                          0,                          0 },
151                 { "nodamage",       0,                          0,                          W_SURF_NODAMAGE,            0,                          0,                          0 },
152                 { "nosteps",        0,                          0,                          W_SURF_NOSTEPS,             0,                          0,                          0 },
153                 { "nodlight",       0,                          0,                          W_SURF_NODLIGHT,            0,                          0,                          0 },
154
155                 /* wolf et landmine-able surface */
156                 { "landmine",       0,                          0,                          W_SURF_LANDMINE,            0,                          0,                          0 },
157
158                 /* materials */
159                 { "metal",          0,                          0,                          W_SURF_METAL,               0,                          0,                          0 },
160                 { "metalsteps",     0,                          0,                          W_SURF_METAL,               0,                          0,                          0 },
161                 { "glass",          0,                          0,                          W_SURF_GLASS,               0,                          0,                          0 },
162                 { "splash",         0,                          0,                          W_SURF_SPLASH,              0,                          0,                          0 },
163                 { "woodsteps",      0,                          0,                          W_SURF_WOOD,                0,                          0,                          0 },
164                 { "grasssteps",     0,                          0,                          W_SURF_GRASS,               0,                          0,                          0 },
165                 { "gravelsteps",    0,                          0,                          W_SURF_GRAVEL,              0,                          0,                          0 },
166                 { "rubble",         0,                          0,                          W_SURF_RUBBLE,              0,                          0,                          0 },
167                 { "carpetsteps",    0,                          0,                          W_SURF_CARPET,              0,                          0,                          0 },
168                 { "snowsteps",      0,                          0,                          W_SURF_SNOW,                0,                          0,                          0 },
169                 { "roofsteps",      0,                          0,                          W_SURF_ROOF,                0,                          0,                          0 },
170
171
172                 /* ai */
173                 { "ai_nosight",     W_CONT_AI_NOSIGHT,          W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
174
175                 /* ydnar: experimental until bits are confirmed! */
176                 { "ai_nopass",      W_CONT_DONOTENTER,          W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
177                 { "ai_nopasslarge", W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
178
179
180                 /* sliding bodies */
181                 { "monsterslick",   0,                          0,                          W_SURF_MONSTERSLICK,        0,                          C_TRANSLUCENT,              0 },
182                 { "monsterslicknorth",  0,                      0,                          W_SURF_MONSLICK_N,          0,                          C_TRANSLUCENT,              0 },
183                 { "monsterslickeast",   0,                      0,                          W_SURF_MONSLICK_E,          0,                          C_TRANSLUCENT,              0 },
184                 { "monsterslicksouth",  0,                      0,                          W_SURF_MONSLICK_S,          0,                          C_TRANSLUCENT,              0 },
185                 { "monsterslickwest",   0,                      0,                          W_SURF_MONSLICK_W,          0,                          C_TRANSLUCENT,              0 },
186
187
188                 /* null */
189                 { NULL, 0, 0, 0, 0, 0, 0 }
190         }
191 }
192
193
194
195 /* end marker */
196 #endif