]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake3/q3map2/game_xonotic.h
netradiant: strip 16-bit png to 8-bit, fix #153
[xonotic/netradiant.git] / tools / quake3 / q3map2 / game_xonotic.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
30
31 /* marker */
32 #ifndef GAME_XONOTIC_H
33 #define GAME_XONOTIC_H
34
35
36
37 /* -------------------------------------------------------------------------------
38
39    content and surface flags
40    are in game_quake3.h
41
42    ------------------------------------------------------------------------------- */
43
44
45
46 /* -------------------------------------------------------------------------------
47
48    game_t struct
49
50    ------------------------------------------------------------------------------- */
51
52 {
53         "xonotic", /* -game x */
54         "data", /* default base game data dir */
55         ".xonotic", /* unix home sub-dir */
56         "xonotic", /* magic path word */
57         "scripts", /* shader directory */
58         1048575, /* max lightmapped surface verts */
59         1048575, /* max surface verts */
60         1048575, /* max surface indexes */
61         qfalse, /* enable per shader prefix surface flags and .tex file */
62         qfalse, /* flares */
63         "flareshader", /* default flare shader */
64         qfalse, /* wolf lighting model? */
65         128, /* lightmap width/height */
66         1.0f, /* lightmap gamma */
67         qtrue, /* lightmap sRGB */
68         qtrue, /* texture sRGB */
69         qtrue, /* color sRGB */
70         0.0f, /* lightmap exposure */
71         1.0f, /* lightmap compensate */
72         1.0f, /* lightgrid scale */
73         1.0f, /* lightgrid ambient scale */
74         qfalse, /* light angle attenuation uses half-lambert curve */
75         qtrue, /* disable shader lightstyles hack */
76         qtrue, /* keep light entities on bsp */
77         4, /* default patchMeta subdivisions tolerance */
78         qtrue, /* patch casting enabled */
79         qtrue, /* compile deluxemaps */
80         0, /* deluxemaps default mode */
81         512, /* minimap size */
82         1.0f, /* minimap sharpener */
83         1.0f / 66.0f, /* minimap border */
84         qtrue, /* minimap keep aspect */
85         MINIMAP_MODE_GRAY, /* minimap mode */
86         "../gfx/%s_mini.tga", /* minimap name format */
87         MINIMAP_SIDECAR_NONE, /* minimap sidecar format */
88         "IBSP", /* bsp file prefix */
89         46, /* bsp file version */
90         qfalse, /* cod-style lump len/ofs order */
91         LoadIBSPFile, /* bsp load function */
92         WriteIBSPFile, /* bsp write function */
93
94         {
95                 /* name contentFlags contentFlagsClear surfaceFlags surfaceFlagsClear compileFlags compileFlagsClear */
96
97                 /* default */
98                 { "default", Q_CONT_SOLID, -1, 0, -1, C_SOLID, -1 },
99
100                 /* ydnar */
101                 { "lightgrid", 0, 0, 0, 0, C_LIGHTGRID, 0 },
102                 { "antiportal", 0, 0, 0, 0, C_ANTIPORTAL, 0 },
103                 { "skip", 0, 0, 0, 0, C_SKIP, 0 },
104
105                 /* compiler */
106                 { "origin", Q_CONT_ORIGIN, Q_CONT_SOLID, 0, 0, C_ORIGIN | C_TRANSLUCENT, C_SOLID },
107                 { "areaportal", Q_CONT_AREAPORTAL, Q_CONT_SOLID, 0, 0, C_AREAPORTAL | C_TRANSLUCENT, C_SOLID },
108                 { "trans", Q_CONT_TRANSLUCENT, 0, 0, 0, C_TRANSLUCENT, 0 },
109                 { "detail", Q_CONT_DETAIL, 0, 0, 0, C_DETAIL, 0 },
110                 { "structural", Q_CONT_STRUCTURAL, 0, 0, 0, C_STRUCTURAL, 0 },
111                 { "hint", 0, 0, Q_SURF_HINT, 0, C_HINT, 0 },
112                 { "nodraw", 0, 0, Q_SURF_NODRAW, 0, C_NODRAW, 0 },
113
114                 { "alphashadow", 0, 0, Q_SURF_ALPHASHADOW, 0, C_ALPHASHADOW | C_TRANSLUCENT, 0 },
115                 { "lightfilter", 0, 0, Q_SURF_LIGHTFILTER, 0, C_LIGHTFILTER | C_TRANSLUCENT, 0 },
116                 { "nolightmap", 0, 0, Q_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
117                 { "pointlight", 0, 0, Q_SURF_VERTEXLIT, 0, C_VERTEXLIT, 0 },
118
119                 /* game */
120                 { "nonsolid", 0, Q_CONT_SOLID, Q_SURF_NONSOLID, 0, 0, C_SOLID },
121
122                 { "trigger", Q_CONT_TRIGGER, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
123
124                 { "water", Q_CONT_WATER, Q_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
125                 { "slime", Q_CONT_SLIME, Q_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
126                 { "lava", Q_CONT_LAVA, Q_CONT_SOLID, 0, 0, C_LIQUID | C_TRANSLUCENT, C_SOLID },
127
128                 { "playerclip", Q_CONT_PLAYERCLIP, Q_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
129                 { "monsterclip", Q_CONT_MONSTERCLIP, Q_CONT_SOLID, 0, 0, C_DETAIL | C_TRANSLUCENT, C_SOLID },
130                 { "nodrop", Q_CONT_NODROP, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
131
132                 { "clusterportal", Q_CONT_CLUSTERPORTAL, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
133                 { "donotenter", Q_CONT_DONOTENTER, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
134                 { "botclip", Q_CONT_BOTCLIP, Q_CONT_SOLID, 0, 0, C_TRANSLUCENT, C_SOLID },
135
136                 { "fog", Q_CONT_FOG, Q_CONT_SOLID, 0, 0, C_FOG, C_SOLID },
137                 { "sky", 0, 0, Q_SURF_SKY, 0, C_SKY, 0 },
138
139                 { "slick", 0, 0, Q_SURF_SLICK, 0, 0, 0 },
140
141                 { "noimpact", 0, 0, Q_SURF_NOIMPACT, 0, 0, 0 },
142                 { "nomarks", 0, 0, Q_SURF_NOMARKS, 0, C_NOMARKS, 0 },
143                 { "ladder", 0, 0, Q_SURF_LADDER, 0, 0, 0 },
144                 { "nodamage", 0, 0, Q_SURF_NODAMAGE, 0, 0, 0 },
145                 { "metalsteps", 0, 0, Q_SURF_METALSTEPS, 0, 0, 0 },
146                 { "flesh", 0, 0, Q_SURF_FLESH, 0, 0, 0 },
147                 { "nosteps", 0, 0, Q_SURF_NOSTEPS, 0, 0, 0 },
148                 { "nodlight", 0, 0, Q_SURF_NODLIGHT, 0, 0, 0 },
149                 { "dust", 0, 0, Q_SURF_DUST, 0, 0, 0 },
150
151                 /* null */
152                 { NULL, 0, 0, 0, 0, 0, 0 }
153         }
154 }
155
156
157
158 /* end marker */
159 #endif