reduce more diff noise
[xonotic/netradiant.git] / tools / quake3 / q3map2 / game_unvanquished.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 This code has been altered significantly from its original form, to support
25 several games based on the Quake III Arena engine, in the form of "Q3Map2."
26
27 ------------------------------------------------------------------------------- */
28
29 /* Derived from Tremulous support by LinuxManMikeC */
30 /* Updated to Unvanquished support by Neumond */
31
32
33 /* marker */
34 #ifndef GAME_UNVANQUISHED_H
35 #define GAME_UNVANQUISHED_H
36
37
38
39 /* -------------------------------------------------------------------------------
40
41 content and surface flags - also uses defines from game_quake3.h
42
43 ------------------------------------------------------------------------------- */
44
45 #define UNV_CONT_NOALIENBUILD         0x1000
46 #define UNV_CONT_NOHUMANBUILD         0x2000
47 #define UNV_CONT_NOBUILD              0x4000
48
49 #define UNV_SURF_NOALIENBUILDSURFACE  0x80000
50 #define UNV_SURF_NOHUMANBUILDSURFACE  0x100000
51 #define UNV_SURF_NOBUILDSURFACE       0x200000
52
53
54
55 /* -------------------------------------------------------------------------------
56
57 game_t struct
58
59 ------------------------------------------------------------------------------- */
60
61 {
62         "unvanquished",         /* -game x */
63         "pkg",                  /* default base game data dir */
64         ".unvanquished",        /* unix home sub-dir */
65         "unvanquished",         /* magic path word */
66         "scripts",              /* shader directory */
67         1048575,                /* max lightmapped surface verts */
68         1048575,                /* max surface verts */
69         1048575,                /* max surface indexes */
70         qfalse,                 /* flares */
71         "flareshader",          /* default flare shader */
72         qfalse,                 /* wolf lighting model? */
73         128,                    /* lightmap width/height */
74         1.0f,                   /* lightmap gamma */
75         qfalse,                 /* lightmap sRGB */
76         qfalse,                 /* texture sRGB */
77         qfalse,                 /* color sRGB */
78         0.0f,                   /* lightmap exposure */
79         1.0f,                   /* lightmap compensate */
80         1.0f,                   /* lightgrid scale */
81         1.0f,                   /* lightgrid ambient scale */
82         qfalse,                 /* light angle attenuation uses half-lambert curve */
83         qfalse,                 /* disable shader lightstyles hack */
84         qtrue,                  /* keep light entities on bsp */
85         8,                      /* default patchMeta subdivisions tolerance */
86         qfalse,                 /* patch casting enabled */
87         qfalse,                 /* compile deluxemaps */
88         0,                      /* deluxemaps default mode */
89         512,                    /* minimap size */
90         1.0f,                   /* minimap sharpener */
91         0.0f,                   /* minimap border */
92         qtrue,                  /* minimap keep aspect */
93         MINIMAP_MODE_WHITE,     /* minimap mode */
94         "../minimaps/%s.tga",   /* minimap name format */
95         "IBSP",                 /* bsp file prefix */
96         46,                     /* bsp file version */
97         qfalse,                 /* cod-style lump len/ofs order */
98         LoadIBSPFile,           /* bsp load function */
99         WriteIBSPFile,          /* bsp write function */
100
101         {
102                 /* name                 contentFlags            contentFlagsClear           surfaceFlags                   surfaceFlagsClear            compileFlags                    compileFlagsClear */
103
104                 /* default */
105                 { "default",            Q_CONT_SOLID,           -1,                         0,                              -1,                         C_SOLID,                        -1 },
106
107                 /* ydnar */
108                 { "lightgrid",          0,                      0,                          0,                              0,                          C_LIGHTGRID,                    0 },
109                 { "antiportal",         0,                      0,                          0,                              0,                          C_ANTIPORTAL,                   0 },
110                 { "skip",               0,                      0,                          0,                              0,                          C_SKIP,                         0 },
111
112                 /* compiler */
113                 { "origin",             Q_CONT_ORIGIN,          Q_CONT_SOLID,               0,                              0,                          C_ORIGIN | C_TRANSLUCENT,       C_SOLID },
114                 { "areaportal",         Q_CONT_AREAPORTAL,      Q_CONT_SOLID,               0,                              0,                          C_AREAPORTAL | C_TRANSLUCENT,   C_SOLID },
115                 { "trans",              Q_CONT_TRANSLUCENT,     0,                          0,                              0,                          C_TRANSLUCENT,                  0 },
116                 { "detail",             Q_CONT_DETAIL,          0,                          0,                              0,                          C_DETAIL,                       0 },
117                 { "structural",         Q_CONT_STRUCTURAL,      0,                          0,                              0,                          C_STRUCTURAL,                   0 },
118                 { "hint",               0,                      0,                          Q_SURF_HINT,                    0,                          C_HINT,                         0 },
119                 { "nodraw",             0,                      0,                          Q_SURF_NODRAW,                  0,                          C_NODRAW,                       0 },
120
121                 { "alphashadow",        0,                      0,                          Q_SURF_ALPHASHADOW,             0,                          C_ALPHASHADOW | C_TRANSLUCENT,  0 },
122                 { "lightfilter",        0,                      0,                          Q_SURF_LIGHTFILTER,             0,                          C_LIGHTFILTER | C_TRANSLUCENT,  0 },
123                 { "nolightmap",         0,                      0,                          Q_SURF_VERTEXLIT,               0,                          C_VERTEXLIT,                    0 },
124                 { "pointlight",         0,                      0,                          Q_SURF_VERTEXLIT,               0,                          C_VERTEXLIT,                    0 },
125
126                 /* game */
127                 { "nonsolid",           0,                      Q_CONT_SOLID,               Q_SURF_NONSOLID,                0,                          0,                              C_SOLID },
128
129                 { "trigger",            Q_CONT_TRIGGER,         Q_CONT_SOLID,               0,                              0,                          C_TRANSLUCENT,                  C_SOLID },
130
131                 { "water",              Q_CONT_WATER,           Q_CONT_SOLID,               0,                              0,                          C_LIQUID | C_TRANSLUCENT,       C_SOLID },
132                 { "slime",              Q_CONT_SLIME,           Q_CONT_SOLID,               0,                              0,                          C_LIQUID | C_TRANSLUCENT,       C_SOLID },
133                 { "lava",               Q_CONT_LAVA,            Q_CONT_SOLID,               0,                              0,                          C_LIQUID | C_TRANSLUCENT,       C_SOLID },
134
135                 { "playerclip",         Q_CONT_PLAYERCLIP,      Q_CONT_SOLID,               0,                              0,                          C_DETAIL | C_TRANSLUCENT,       C_SOLID },
136                 { "monsterclip",        Q_CONT_MONSTERCLIP,     Q_CONT_SOLID,               0,                              0,                          C_DETAIL | C_TRANSLUCENT,       C_SOLID },
137                 { "nodrop",             Q_CONT_NODROP,          Q_CONT_SOLID,               0,                              0,                          C_TRANSLUCENT,                  C_SOLID },
138
139                 { "clusterportal",      Q_CONT_CLUSTERPORTAL,   Q_CONT_SOLID,               0,                              0,                          C_TRANSLUCENT,                  C_SOLID },
140                 { "donotenter",         Q_CONT_DONOTENTER,      Q_CONT_SOLID,               0,                              0,                          C_TRANSLUCENT,                  C_SOLID },
141                 { "botclip",            Q_CONT_BOTCLIP,         Q_CONT_SOLID,               0,                              0,                          C_TRANSLUCENT,                  C_SOLID },
142
143                 { "fog",                Q_CONT_FOG,             Q_CONT_SOLID,               0,                              0,                          C_FOG,                          C_SOLID },
144                 { "sky",                0,                      0,                          Q_SURF_SKY,                     0,                          C_SKY,                          0 },
145
146                 { "slick",              0,                      0,                          Q_SURF_SLICK,                   0,                          0,                              0 },
147
148                 { "noimpact",           0,                      0,                          Q_SURF_NOIMPACT,                0,                          0,                              0 },
149                 { "nomarks",            0,                      0,                          Q_SURF_NOMARKS,                 0,                          C_NOMARKS,                      0 },
150                 { "ladder",             0,                      0,                          Q_SURF_LADDER,                  0,                          0,                              0 },
151                 { "nodamage",           0,                      0,                          Q_SURF_NODAMAGE,                0,                          0,                              0 },
152                 { "metalsteps",         0,                      0,                          Q_SURF_METALSTEPS,              0,                          0,                              0 },
153                 { "flesh",              0,                      0,                          Q_SURF_FLESH,                   0,                          0,                              0 },
154                 { "nosteps",            0,                      0,                          Q_SURF_NOSTEPS,                 0,                          0,                              0 },
155                 { "nodlight",           0,                      0,                          Q_SURF_NODLIGHT,                0,                          0,                              0 },
156                 { "dust",               0,                      0,                          Q_SURF_DUST,                    0,                          0,                              0 },
157
158                 /* unvanquished */
159                 {"noalienbuild",        UNV_CONT_NOALIENBUILD,  0,                         0,                               0,                          0,                              0 },
160                 {"nohumanbuild",        UNV_CONT_NOHUMANBUILD,  0,                         0,                               0,                          0,                              0 },
161                 {"nobuild",             UNV_CONT_NOBUILD,       0,                         0,                               0,                          0,                              0 },
162
163                 {"noalienbuildsurface", 0,                      0,                         UNV_SURF_NOALIENBUILDSURFACE,    0,                          0,                              0 },
164                 {"nohumanbuildsurface", 0,                      0,                         UNV_SURF_NOHUMANBUILDSURFACE,    0,                          0,                              0 },
165                 {"nobuildsurface",      0,                      0,                         UNV_SURF_NOBUILDSURFACE,         0,                          0,                              0 },
166
167                 /* null */
168                 { NULL,                 0,                      0,                         0,                               0,                          0,                              0 }
169         }
170 }
171
172 /* end marker */
173 #endif