]> git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake3/q3map2/game_tremulous.h
apply all of VorteX's changes except deviance (that one sucks :P)
[xonotic/netradiant.git] / tools / quake3 / q3map2 / game_tremulous.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 /* Tremulous support, by LinuxManMikeC */
30
31
32 /* marker */
33 #ifndef GAME_TREMULOUS_H
34 #define GAME_TREMULOUS_H
35
36
37
38 /* -------------------------------------------------------------------------------
39
40 content and surface flags - also uses defines from game_quake3.h
41
42 ------------------------------------------------------------------------------- */
43 #define TREM_CONT_NOALIENBUILD         0x1000
44 #define TREM_CONT_NOHUMANBUILD         0x2000
45 #define TREM_CONT_NOBUILD              0x4000
46   
47 #define TREM_SURF_NOALIENBUILDSURFACE  0x80000 
48 #define TREM_SURF_NOHUMANBUILDSURFACE  0x100000
49 #define TREM_SURF_NOBUILDSURFACE       0x200000
50
51
52
53 /* -------------------------------------------------------------------------------
54
55 game_t struct
56
57 ------------------------------------------------------------------------------- */
58
59 {
60         "tremulous",                    /* -game x */
61         "base",                 /* default base game data dir */
62         ".tremulous",                           /* unix home sub-dir */
63         "tremulous",                    /* magic path word - think this is right for trem*/
64         "scripts",                      /* shader directory */
65         64,                                     /* max lightmapped surface verts */
66         999,                            /* max surface verts */
67         6000,                           /* max surface indexes */
68         qfalse,                         /* flares */
69         "flareshader",          /* default flare shader */
70         qfalse,                         /* wolf lighting model? */
71         128,                            /* lightmap width/height */
72         1.0f,                           /* lightmap gamma */
73         1.0f,                           /* lightmap exposure */
74         1.0f,                           /* lightmap compensate */
75         1.0f,                           /* lightgrid scale */
76         1.0f,                           /* lightgrid ambient scale */
77         qfalse,                         /* disable shader lightstyles hack */
78         qfalse,                         /* keep light entities on bsp */
79         8,                                      /* default patchMeta subdivisions tolerance */
80         qfalse,                         /* patch casting enabled */
81         qfalse,                         /* compile deluxemaps */
82         0,                                      /* deluxemaps default mode */
83         "IBSP",                         /* bsp file prefix */
84         46,                                     /* bsp file version */
85         qfalse,                         /* cod-style lump len/ofs order */
86         LoadIBSPFile,           /* bsp load function */
87         WriteIBSPFile,          /* bsp write function */
88
89         {
90                 /* name                         contentFlags                            contentFlagsClear                       surfaceFlags                            surfaceFlagsClear                       compileFlags                            compileFlagsClear */
91                 
92                 /* default */
93                 { "default",            Q_CONT_SOLID,                           -1,                                                     0,                                                      -1,                                                     C_SOLID,                                        -1 },
94                 
95                 
96                 /* ydnar */
97                 { "lightgrid",          0,                                                      0,                                                      0,                                                      0,                                                      C_LIGHTGRID,                            0 },
98                 { "antiportal",         0,                                                      0,                                                      0,                                                      0,                                                      C_ANTIPORTAL,                           0 },
99                 { "skip",                       0,                                                      0,                                                      0,                                                      0,                                                      C_SKIP,                                         0 },
100                 
101                 
102                 /* compiler */
103                 { "origin",                     Q_CONT_ORIGIN,                          Q_CONT_SOLID,                           0,                                                      0,                                                      C_ORIGIN | C_TRANSLUCENT,       C_SOLID },
104                 { "areaportal",         Q_CONT_AREAPORTAL,                      Q_CONT_SOLID,                           0,                                                      0,                                                      C_AREAPORTAL | C_TRANSLUCENT,   C_SOLID },
105                 { "trans",                      Q_CONT_TRANSLUCENT,                     0,                                                      0,                                                      0,                                                      C_TRANSLUCENT,                          0 },
106                 { "detail",                     Q_CONT_DETAIL,                          0,                                                      0,                                                      0,                                                      C_DETAIL,                                       0 },
107                 { "structural",         Q_CONT_STRUCTURAL,                      0,                                                      0,                                                      0,                                                      C_STRUCTURAL,                           0 },
108                 { "hint",                       0,                                                      0,                                                      Q_SURF_HINT,                            0,                                                      C_HINT,                                         0 },
109                 { "nodraw",                     0,                                                      0,                                                      Q_SURF_NODRAW,                          0,                                                      C_NODRAW,                                       0 },
110                 
111                 { "alphashadow",        0,                                                      0,                                                      Q_SURF_ALPHASHADOW,                     0,                                                      C_ALPHASHADOW | C_TRANSLUCENT,  0 },
112                 { "lightfilter",        0,                                                      0,                                                      Q_SURF_LIGHTFILTER,                     0,                                                      C_LIGHTFILTER | C_TRANSLUCENT,  0 },
113                 { "nolightmap",         0,                                                      0,                                                      Q_SURF_VERTEXLIT,                       0,                                                      C_VERTEXLIT,                            0 },
114                 { "pointlight",         0,                                                      0,                                                      Q_SURF_VERTEXLIT,                       0,                                                      C_VERTEXLIT,                            0 },
115                 
116                 
117                 /* game */
118                 { "nonsolid",           0,                                                      Q_CONT_SOLID,                           Q_SURF_NONSOLID,                        0,                                                      0,                                                      C_SOLID },
119                 
120                 { "trigger",            Q_CONT_TRIGGER,                         Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },
121                 
122                 { "water",                      Q_CONT_WATER,                           Q_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },
123                 { "slime",                      Q_CONT_SLIME,                           Q_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },
124                 { "lava",                       Q_CONT_LAVA,                            Q_CONT_SOLID,                           0,                                                      0,                                                      C_LIQUID | C_TRANSLUCENT,       C_SOLID },
125                 
126                 { "playerclip",         Q_CONT_PLAYERCLIP,                      Q_CONT_SOLID,                           0,                                                      0,                                                      C_DETAIL | C_TRANSLUCENT,       C_SOLID },
127                 { "monsterclip",        Q_CONT_MONSTERCLIP,                     Q_CONT_SOLID,                           0,                                                      0,                                                      C_DETAIL | C_TRANSLUCENT,       C_SOLID },
128                 { "nodrop",                     Q_CONT_NODROP,                          Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },
129                 
130                 { "clusterportal",      Q_CONT_CLUSTERPORTAL,           Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },
131                 { "donotenter",         Q_CONT_DONOTENTER,                      Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },
132                 { "botclip",            Q_CONT_BOTCLIP,                         Q_CONT_SOLID,                           0,                                                      0,                                                      C_TRANSLUCENT,                          C_SOLID },
133                 
134                 { "fog",                        Q_CONT_FOG,                                     Q_CONT_SOLID,                           0,                                                      0,                                                      C_FOG,                                          C_SOLID },
135                 { "sky",                        0,                                                      0,                                                      Q_SURF_SKY,                                     0,                                                      C_SKY,                                          0 },
136                 
137                 { "slick",                      0,                                                      0,                                                      Q_SURF_SLICK,                           0,                                                      0,                                                      0 },
138                 
139                 { "noimpact",           0,                                                      0,                                                      Q_SURF_NOIMPACT,                        0,                                                      0,                                                      0 },
140                 { "nomarks",            0,                                                      0,                                                      Q_SURF_NOMARKS,                         0,                                                      C_NOMARKS,                                      0 },
141                 { "ladder",                     0,                                                      0,                                                      Q_SURF_LADDER,                          0,                                                      0,                                                      0 },
142                 { "nodamage",           0,                                                      0,                                                      Q_SURF_NODAMAGE,                        0,                                                      0,                                                      0 },
143                 { "metalsteps",         0,                                                      0,                                                      Q_SURF_METALSTEPS,                      0,                                                      0,                                                      0 },
144                 { "flesh",                      0,                                                      0,                                                      Q_SURF_FLESH,                           0,                                                      0,                                                      0 },
145                 { "nosteps",            0,                                                      0,                                                      Q_SURF_NOSTEPS,                         0,                                                      0,                                                      0 },
146                 { "nodlight",           0,                                                      0,                                                      Q_SURF_NODLIGHT,                        0,                                                      0,                                                      0 },
147                 { "dust",                       0,                                                      0,                                                      Q_SURF_DUST,                            0,                                                      0,                                                      0 },
148                 
149                 
150                 /* tremulous */
151                 {"noalienbuild",                        TREM_CONT_NOALIENBUILD,0,0,0,0,0},
152                 {"nohumanbuild",                        TREM_CONT_NOHUMANBUILD,0,0,0,0,0},
153                 {"nobuild",                                     TREM_CONT_NOBUILD,0,0,0,0,0},
154                 
155                 {"noalienbuildsurface", 0,0,TREM_SURF_NOALIENBUILDSURFACE,0,0,0},
156                 {"nohumanbuildsurface", 0,0,TREM_SURF_NOHUMANBUILDSURFACE,0,0,0},
157                 {"nobuildsurface",              0,0,TREM_SURF_NOBUILDSURFACE,0,0,0},
158                 
159                 
160                 /* null */
161                 { NULL, 0, 0, 0, 0, 0, 0 }
162         }
163 }
164
165
166
167 /* end marker */
168 #endif
169