]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake3/q3map2/game_wolfet.h
* moved zeroradiant (1.6) into trunk
[xonotic/netradiant.git] / tools / quake3 / q3map2 / game_wolfet.h
1 /*
2 Copyright (C) 1999-2007 id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
4
5 This file is part of GtkRadiant.
6
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.
11
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.
16
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
20
21 ----------------------------------------------------------------------------------
22
23 Support for Wolfenstein: Enemy Territory by ydnar@splashdamage.com
24
25 ------------------------------------------------------------------------------- */
26
27
28
29 /* marker */
30 #ifndef GAME_WOLFET_H
31 #define GAME_WOLFET_H
32
33
34
35 /* -------------------------------------------------------------------------------
36
37 content and surface flags
38
39 ------------------------------------------------------------------------------- */
40
41 /* this file must be included *after* game_wolf.h because it shares defines! */
42
43 #define W_SURF_SPLASH                           0x00000040      /* enemy territory water splash surface */
44 #define W_SURF_LANDMINE                         0x80000000      /* enemy territory 'landminable' surface */
45
46
47
48 /* -------------------------------------------------------------------------------
49
50 game_t struct
51
52 ------------------------------------------------------------------------------- */
53
54 {
55         "et",                           /* -game x */
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? */
61         qfalse,                         /* flares */
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 */
67         
68         {
69                 /* name                         contentFlags                            contentFlagsClear                       surfaceFlags                            surfaceFlagsClear                       compileFlags                            compileFlagsClear */
70                 
71                 /* default */
72                 { "default",            W_CONT_SOLID,                           -1,                                                     0,                                                      -1,                                                     C_SOLID,                                        -1 },
73                 
74                 
75                 /* ydnar */
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 },
79                 
80                 
81                 /* compiler */
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 },
89                 
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 },
94                 
95                 
96                 /* game */
97                 { "nonsolid",           0,                                                      W_CONT_SOLID,                           W_SURF_NONSOLID,                        0,                                                      0,                                                      C_SOLID },
98                 
99                 { "trigger",            W_CONT_TRIGGER,                         W_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },
100                 
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 },
104                 
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 },
110                 
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 },
114                 
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 },
117                 
118                 { "slick",                      0,                                                      0,                                                      W_SURF_SLICK,                           0,                                                      0,                                                      0 },
119                 
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 },
126                 
127                 /* wolf et landmine-able surface */
128                 { "landmine",           0,                                                      0,                                                      W_SURF_LANDMINE,                        0,                                                      0,                                                      0 },
129                 
130                 /* materials */
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 },
142                 
143                 
144                 /* ai */
145                 { "ai_nosight",         W_CONT_AI_NOSIGHT,                      W_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },
146                 
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 },
150                 
151                 
152                 /* sliding bodies */
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 },
158                 
159                 
160                 /* null */
161                 { NULL, 0, 0, 0, 0, 0, 0 }
162         }
163 }
164
165
166
167 /* end marker */
168 #endif
169