]> git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake3/q3map2/game_darkplaces.h
apply all of VorteX's changes except deviance (that one sucks :P)
[xonotic/netradiant.git] / tools / quake3 / q3map2 / game_darkplaces.h
1 /* -------------------------------------------------------------------------------\r
2 \r
3 Copyright (C) 1999-2006 Id Software, Inc. and contributors.\r
4 For a list of contributors, see the accompanying CONTRIBUTORS file.\r
5 \r
6 This file is part of GtkRadiant.\r
7 \r
8 GtkRadiant is free software; you can redistribute it and/or modify\r
9 it under the terms of the GNU General Public License as published by\r
10 the Free Software Foundation; either version 2 of the License, or\r
11 (at your option) any later version.\r
12 \r
13 GtkRadiant is distributed in the hope that it will be useful,\r
14 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16 GNU General Public License for more details.\r
17 \r
18 You should have received a copy of the GNU General Public License\r
19 along with GtkRadiant; if not, write to the Free Software\r
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
21 \r
22 ----------------------------------------------------------------------------------\r
23 \r
24 This code has been altered significantly from its original form, to support\r
25 several games based on the Quake III Arena engine, in the form of "Q3Map2."\r
26 \r
27 ------------------------------------------------------------------------------- */\r
28 \r
29 \r
30 \r
31 /* marker */\r
32 #ifndef GAME_DARKPLACES_H\r
33 #define GAME_DARKPLACES_H\r
34 \r
35 /* content and surface flags get form quake3 */\r
36 \r
37 /* -------------------------------------------------------------------------------\r
38 \r
39 game_t struct\r
40 \r
41 ------------------------------------------------------------------------------- */\r
42 \r
43 {\r
44         "darkplaces",           /* -game x */\r
45         "id1",                          /* default base game data dir */\r
46         ".darkplaces ",         /* unix home sub-dir */\r
47         "darkplaces",           /* magic path word */\r
48         "scripts",                      /* shader directory */\r
49         999,                            /* max lightmapped surface verts */\r
50         999,                            /* max surface verts */\r
51         6000,                           /* max surface indexes */\r
52         qfalse,                         /* flares */\r
53         "flareshader",          /* default flare shader */\r
54         qfalse,                         /* wolf lighting model? */\r
55         128,                            /* lightmap width/height */\r
56         1.0f,                           /* lightmap gamma */\r
57         200.0f,                         /* lightmap exposure */\r
58         1.0f,                           /* lightmap compensate */\r
59         0.3f,                           /* lightgrid scale */\r
60         0.6f,                           /* lightgrid ambient scale */\r
61         qtrue,                          /* disable shader lightstyles hack */\r
62         qtrue,                          /* keep light entities on bsp */\r
63         4,                                      /* default patchMeta subdivisions tolerance */\r
64         qfalse,                         /* patch casting enabled */\r
65         qfalse,                         /* compile deluxemaps */\r
66         0,                                      /* deluxemaps default mode */\r
67         "IBSP",                         /* bsp file prefix */\r
68         46,                                     /* bsp file version */\r
69         qfalse,                         /* cod-style lump len/ofs order */\r
70         LoadIBSPFile,           /* bsp load function */\r
71         WriteIBSPFile,          /* bsp write function */\r
72 \r
73         {\r
74                 /* name                         contentFlags                            contentFlagsClear                       surfaceFlags                            surfaceFlagsClear                       compileFlags                            compileFlagsClear */\r
75                 \r
76                 /* default */\r
77                 { "default",            Q_CONT_SOLID,                           -1,                                                     0,                                                      -1,                                                     C_SOLID,                                        -1 },\r
78                 \r
79                 \r
80                 /* ydnar */\r
81                 { "lightgrid",          0,                                                      0,                                                      0,                                                      0,                                                      C_LIGHTGRID,                            0 },\r
82                 { "antiportal",         0,                                                      0,                                                      0,                                                      0,                                                      C_ANTIPORTAL,                           0 },\r
83                 { "skip",                       0,                                                      0,                                                      0,                                                      0,                                                      C_SKIP,                                         0 },\r
84                 \r
85                 \r
86                 /* compiler */\r
87                 { "origin",                     Q_CONT_ORIGIN,                          Q_CONT_SOLID,                           0,                                                      0,                                                      C_ORIGIN | C_TRANSLUCENT,       C_SOLID },\r
88                 { "areaportal",         Q_CONT_AREAPORTAL,                      Q_CONT_SOLID,                           0,                                                      0,                                                      C_AREAPORTAL | C_TRANSLUCENT,   C_SOLID },\r
89                 { "trans",                      Q_CONT_TRANSLUCENT,                     0,                                                      0,                                                      0,                                                      C_TRANSLUCENT,                          0 },\r
90                 { "detail",                     Q_CONT_DETAIL,                          0,                                                      0,                                                      0,                                                      C_DETAIL,                                       0 },\r
91                 { "structural",         Q_CONT_STRUCTURAL,                      0,                                                      0,                                                      0,                                                      C_STRUCTURAL,                           0 },\r
92                 { "hint",                       0,                                                      0,                                                      Q_SURF_HINT,                            0,                                                      C_HINT,                                         0 },\r
93                 { "nodraw",                     0,                                                      0,                                                      Q_SURF_NODRAW,                          0,                                                      C_NODRAW,                                       0 },\r
94                 \r
95                 { "alphashadow",        0,                                                      0,                                                      Q_SURF_ALPHASHADOW,                     0,                                                      C_ALPHASHADOW | C_TRANSLUCENT,  0 },\r
96                 { "lightfilter",        0,                                                      0,                                                      Q_SURF_LIGHTFILTER,                     0,                                                      C_LIGHTFILTER | C_TRANSLUCENT,  0 },\r
97                 { "nolightmap",         0,                                                      0,                                                      Q_SURF_VERTEXLIT,                       0,                                                      C_VERTEXLIT,                            0 },\r
98                 { "pointlight",         0,                                                      0,                                                      Q_SURF_VERTEXLIT,                       0,                                                      C_VERTEXLIT,                            0 },\r
99                 \r
100                 \r
101                 /* game */\r
102                 { "nonsolid",           0,                                                      Q_CONT_SOLID,                           Q_SURF_NONSOLID,                        0,                                                      0,                                                      C_SOLID },\r
103                 \r
104                 { "trigger",            Q_CONT_TRIGGER,                         Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
105                 \r
106                 { "water",                      Q_CONT_WATER,                           Q_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },\r
107                 { "slime",                      Q_CONT_SLIME,                           Q_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },\r
108                 { "lava",                       Q_CONT_LAVA,                            Q_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },\r
109                 \r
110                 { "playerclip",         Q_CONT_PLAYERCLIP,                      Q_CONT_SOLID,                           0,                                                      0,                                                      C_DETAIL | C_TRANSLUCENT,       C_SOLID },\r
111                 { "monsterclip",        Q_CONT_MONSTERCLIP,                     Q_CONT_SOLID,                           0,                                                      0,                                                      C_DETAIL | C_TRANSLUCENT,       C_SOLID },\r
112                 { "nodrop",                     Q_CONT_NODROP,                          Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
113                 \r
114                 { "clusterportal",      Q_CONT_CLUSTERPORTAL,           Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
115                 { "donotenter",         Q_CONT_DONOTENTER,                      Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
116                 { "botclip",            Q_CONT_BOTCLIP,                         Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },\r
117                 \r
118                 { "fog",                        Q_CONT_FOG,                                     Q_CONT_SOLID,                           0,                                                      0,                                                      C_FOG,                                          C_SOLID },\r
119                 { "sky",                        0,                                                      0,                                                      Q_SURF_SKY,                                     0,                                                      C_SKY,                                          0 },\r
120                 \r
121                 { "slick",                      0,                                                      0,                                                      Q_SURF_SLICK,                           0,                                                      0,                                                      0 },\r
122                 \r
123                 { "noimpact",           0,                                                      0,                                                      Q_SURF_NOIMPACT,                        0,                                                      0,                                                      0 },\r
124                 { "nomarks",            0,                                                      0,                                                      Q_SURF_NOMARKS,                         0,                                                      C_NOMARKS,                                      0 },\r
125                 { "ladder",                     0,                                                      0,                                                      Q_SURF_LADDER,                          0,                                                      0,                                                      0 },\r
126                 { "nodamage",           0,                                                      0,                                                      Q_SURF_NODAMAGE,                        0,                                                      0,                                                      0 },\r
127                 { "metalsteps",         0,                                                      0,                                                      Q_SURF_METALSTEPS,                      0,                                                      0,                                                      0 },\r
128                 { "flesh",                      0,                                                      0,                                                      Q_SURF_FLESH,                           0,                                                      0,                                                      0 },\r
129                 { "nosteps",            0,                                                      0,                                                      Q_SURF_NOSTEPS,                         0,                                                      0,                                                      0 },\r
130                 { "nodlight",           0,                                                      0,                                                      Q_SURF_NODLIGHT,                        0,                                                      0,                                                      0 },\r
131                 { "dust",                       0,                                                      0,                                                      Q_SURF_DUST,                            0,                                                      0,                                                      0 },\r
132                 \r
133                 \r
134                 /* null */\r
135                 { NULL, 0, 0, 0, 0, 0, 0 }\r
136         }\r
137 }\r
138 \r
139 \r
140 \r
141 /* end marker */\r
142 #endif\r
143 \r