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