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