]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake3/q3map2/game_tenebrae.h
transfer from internal tree r5311 branches/1.4-gpl
[xonotic/netradiant.git] / tools / quake3 / q3map2 / game_tenebrae.h
1 /*\r
2 Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
3 For a list of contributors, see the accompanying CONTRIBUTORS file.\r
4 \r
5 This file is part of GtkRadiant.\r
6 \r
7 GtkRadiant is free software; you can redistribute it and/or modify\r
8 it under the terms of the GNU General Public License as published by\r
9 the Free Software Foundation; either version 2 of the License, or\r
10 (at your option) any later version.\r
11 \r
12 GtkRadiant is distributed in the hope that it will be useful,\r
13 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
15 GNU General Public License for more details.\r
16 \r
17 You should have received a copy of the GNU General Public License\r
18 along with GtkRadiant; if not, write to the Free Software\r
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
20 \r
21 ----------------------------------------------------------------------------------\r
22 \r
23 This code has been altered significantly from its original form, to support\r
24 several games based on the Quake III Arena engine, in the form of "Q3Map2."\r
25 \r
26 ------------------------------------------------------------------------------- */\r
27 \r
28 \r
29 \r
30 /* marker */\r
31 #ifndef GAME_TENEBRAE_H\r
32 #define GAME_TENEBRAE_H\r
33 \r
34 \r
35 \r
36 /* -------------------------------------------------------------------------------\r
37 \r
38 content and surface flags\r
39 \r
40 ------------------------------------------------------------------------------- */\r
41 \r
42 /* game flags */\r
43 #define T_CONT_SOLID                            1                       /* an eye is never valid in a solid */\r
44 #define T_CONT_LAVA                                     8\r
45 #define T_CONT_SLIME                            16\r
46 #define T_CONT_WATER                            32\r
47 #define T_CONT_FOG                                      64\r
48 \r
49 #define T_CONT_AREAPORTAL                       0x8000\r
50 \r
51 #define T_CONT_PLAYERCLIP                       0x10000\r
52 #define T_CONT_MONSTERCLIP                      0x20000\r
53 #define T_CONT_TELEPORTER                       0x40000\r
54 #define T_CONT_JUMPPAD                          0x80000\r
55 #define T_CONT_CLUSTERPORTAL            0x100000\r
56 #define T_CONT_DONOTENTER                       0x200000\r
57 #define T_CONT_BOTCLIP                          0x400000\r
58 \r
59 #define T_CONT_ORIGIN                           0x1000000       /* removed before bsping an entity */\r
60 \r
61 #define T_CONT_BODY                                     0x2000000       /* should never be on a brush, only in game */\r
62 #define T_CONT_CORPSE                           0x4000000\r
63 #define T_CONT_DETAIL                           0x8000000       /* brushes not used for the bsp */\r
64 #define T_CONT_STRUCTURAL                       0x10000000      /* brushes used for the bsp */\r
65 #define T_CONT_TRANSLUCENT                      0x20000000      /* don't consume surface fragments inside */\r
66 #define T_CONT_TRIGGER                          0x40000000\r
67 #define T_CONT_NODROP                           0x80000000      /* don't leave bodies or items (death fog, lava) */\r
68 \r
69 #define T_SURF_NODAMAGE                         0x1                     /* never give falling damage */\r
70 #define T_SURF_SLICK                            0x2                     /* effects game physics */\r
71 #define T_SURF_SKY                                      0x4                     /* lighting from environment map */\r
72 #define T_SURF_LADDER                           0x8\r
73 #define T_SURF_NOIMPACT                         0x10            /* don't make missile explosions */\r
74 #define T_SURF_NOMARKS                          0x20            /* don't leave missile marks */\r
75 #define T_SURF_FLESH                            0x40            /* make flesh sounds and effects */\r
76 #define T_SURF_NODRAW                           0x80            /* don't generate a drawsurface at all */\r
77 #define T_SURF_HINT                                     0x100           /* make a primary bsp splitter */\r
78 #define T_SURF_SKIP                                     0x200           /* completely ignore, allowing non-closed brushes */\r
79 #define T_SURF_NOLIGHTMAP                       0x400           /* surface doesn't need a lightmap */\r
80 #define T_SURF_POINTLIGHT                       0x800           /* generate lighting info at vertexes */\r
81 #define T_SURF_METALSTEPS                       0x1000          /* clanking footsteps */\r
82 #define T_SURF_NOSTEPS                          0x2000          /* no footstep sounds */\r
83 #define T_SURF_NONSOLID                         0x4000          /* don't collide against curves with this set */\r
84 #define T_SURF_LIGHTFILTER                      0x8000          /* act as a light filter during q3map -light */\r
85 #define T_SURF_ALPHASHADOW                      0x10000         /* do per-pixel light shadow casting in q3map */\r
86 #define T_SURF_NODLIGHT                         0x20000         /* don't dlight even if solid (solid lava, skies) */\r
87 #define T_SURF_DUST                                     0x40000         /* leave a dust trail when walking on this surface */\r
88 \r
89 /* ydnar flags */\r
90 #define T_SURF_VERTEXLIT                        (T_SURF_POINTLIGHT | T_SURF_NOLIGHTMAP)\r
91 \r
92 \r
93 \r
94 /* -------------------------------------------------------------------------------\r
95 \r
96 game_t struct\r
97 \r
98 ------------------------------------------------------------------------------- */\r
99 \r
100 {\r
101         "tenebrae",                     /* -game x */\r
102         "base",                         /* default base game data dir */\r
103         ".tenebrae",            /* unix home sub-dir */\r
104         "tenebrae",                     /* magic path word */\r
105         "scripts",                      /* shader directory */\r
106         qfalse,                         /* wolf lighting model? */\r
107         qfalse,                         /* flares */\r
108         "flareshader",          /* default flare shader */\r
109         "IBSP",                         /* bsp file prefix */\r
110         46,                                     /* bsp file version */\r
111         LoadIBSPFile,           /* bsp load function */\r
112         WriteIBSPFile,          /* bsp write function */\r
113 \r
114         {\r
115                 /* name                         contentFlags                            contentFlagsClear                       surfaceFlags                            surfaceFlagsClear                       compileFlags                            compileFlagsClear */\r
116                 \r
117                 /* default */\r
118                 { "default",            T_CONT_SOLID,                           -1,                                                     0,                                                      -1,                                                     C_SOLID,                                        -1 },\r
119                 \r
120                 \r
121                 /* ydnar */\r
122                 { "lightgrid",          0,                                                      0,                                                      0,                                                      0,                                                      C_LIGHTGRID,                            0 },\r
123                 { "antiportal",         0,                                                      0,                                                      0,                                                      0,                                                      C_ANTIPORTAL,                           0 },\r
124                 { "skip",                       0,                                                      0,                                                      0,                                                      0,                                                      C_SKIP,                                         0 },\r
125                 \r
126                 \r
127                 /* compiler */\r
128                 { "origin",                     T_CONT_ORIGIN,                          T_CONT_SOLID,                           0,                                                      0,                                                      C_ORIGIN | C_TRANSLUCENT,       C_SOLID },\r
129                 { "areaportal",         T_CONT_AREAPORTAL,                      T_CONT_SOLID,                           0,                                                      0,                                                      C_AREAPORTAL | C_TRANSLUCENT,   C_SOLID },\r
130                 { "trans",                      T_CONT_TRANSLUCENT,                     0,                                                      0,                                                      0,                                                      C_TRANSLUCENT,                          0 },\r
131                 { "detail",                     T_CONT_DETAIL,                          0,                                                      0,                                                      0,                                                      C_DETAIL,                                       0 },\r
132                 { "structural",         T_CONT_STRUCTURAL,                      0,                                                      0,                                                      0,                                                      C_STRUCTURAL,                           0 },\r
133                 { "hint",                       0,                                                      0,                                                      T_SURF_HINT,                            0,                                                      C_HINT,                                         0 },\r
134                 { "nodraw",                     0,                                                      0,                                                      T_SURF_NODRAW,                          0,                                                      C_NODRAW,                                       0 },\r
135                 \r
136                 { "alphashadow",        0,                                                      0,                                                      T_SURF_ALPHASHADOW,                     0,                                                      C_ALPHASHADOW | C_TRANSLUCENT,  0 },\r
137                 { "lightfilter",        0,                                                      0,                                                      T_SURF_LIGHTFILTER,                     0,                                                      C_LIGHTFILTER | C_TRANSLUCENT,  0 },\r
138                 { "nolightmap",         0,                                                      0,                                                      T_SURF_VERTEXLIT,                       0,                                                      C_VERTEXLIT,                            0 },\r
139                 { "pointlight",         0,                                                      0,                                                      T_SURF_VERTEXLIT,                       0,                                                      C_VERTEXLIT,                            0 },\r
140                 \r
141                 \r
142                 /* game */\r
143                 { "nonsolid",           0,                                                      T_CONT_SOLID,                           T_SURF_NONSOLID,                        0,                                                      0,                                                      C_SOLID },\r
144                 \r
145                 { "trigger",            T_CONT_TRIGGER,                         T_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
146                 \r
147                 { "water",                      T_CONT_WATER,                           T_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },\r
148                 { "slime",                      T_CONT_SLIME,                           T_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },\r
149                 { "lava",                       T_CONT_LAVA,                            T_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },\r
150                 \r
151                 { "playerclip",         T_CONT_PLAYERCLIP,                      T_CONT_SOLID,                           0,                                                      0,                                                      C_DETAIL | C_TRANSLUCENT,       C_SOLID },\r
152                 { "monsterclip",        T_CONT_MONSTERCLIP,                     T_CONT_SOLID,                           0,                                                      0,                                                      C_DETAIL | C_TRANSLUCENT,       C_SOLID },\r
153                 { "nodrop",                     T_CONT_NODROP,                          T_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
154                 \r
155                 { "clusterportal",      T_CONT_CLUSTERPORTAL,           T_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
156                 { "donotenter",         T_CONT_DONOTENTER,                      T_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
157                 { "botclip",            T_CONT_BOTCLIP,                         T_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
158                 \r
159                 { "fog",                        T_CONT_FOG,                                     T_CONT_SOLID,                           0,                                                      0,                                                      C_FOG,                                          C_SOLID },\r
160                 { "sky",                        0,                                                      0,                                                      T_SURF_SKY,                                     0,                                                      C_SKY,                                          0 },\r
161                 \r
162                 { "slick",                      0,                                                      0,                                                      T_SURF_SLICK,                           0,                                                      0,                                                      0 },\r
163                 \r
164                 { "noimpact",           0,                                                      0,                                                      T_SURF_NOIMPACT,                        0,                                                      0,                                                      0 },\r
165                 { "nomarks",            0,                                                      0,                                                      T_SURF_NOMARKS,                         0,                                                      C_NOMARKS,                                      0 },\r
166                 { "ladder",                     0,                                                      0,                                                      T_SURF_LADDER,                          0,                                                      0,                                                      0 },\r
167                 { "nodamage",           0,                                                      0,                                                      T_SURF_NODAMAGE,                        0,                                                      0,                                                      0 },\r
168                 { "metalsteps",         0,                                                      0,                                                      T_SURF_METALSTEPS,                      0,                                                      0,                                                      0 },\r
169                 { "flesh",                      0,                                                      0,                                                      T_SURF_FLESH,                           0,                                                      0,                                                      0 },\r
170                 { "nosteps",            0,                                                      0,                                                      T_SURF_NOSTEPS,                         0,                                                      0,                                                      0 },\r
171                 { "nodlight",           0,                                                      0,                                                      T_SURF_NODLIGHT,                        0,                                                      0,                                                      0 },\r
172                 { "dust",                       0,                                                      0,                                                      T_SURF_DUST,                            0,                                                      0,                                                      0 },\r
173                 \r
174                 \r
175                 /* null */\r
176                 { NULL, 0, 0, 0, 0, 0, 0 }\r
177         }\r
178 }\r
179 \r
180 \r
181 \r
182 /* end marker */\r
183 #endif\r
184 \r