2 Copyright (C) 2000-2021 DarkPlaces contributors
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 typedef enum gamemode_e
41 GAME_TENEBRAE, // full of evil hackery
43 GAME_OPENQUARTZ, //this game sucks
53 GAME_STEELSTORM, // added by motorsep
54 GAME_STEELSTORM2, // added by motorsep
55 GAME_SSAMMO, // added by motorsep
56 GAME_STEELSTORMREVENANTS, // added by motorsep 07/19/2015
57 GAME_TOMESOFMEPHISTOPHELES, // added by motorsep
58 GAME_STRAPBOMB, // added by motorsep for Urre
61 GAME_DOOMBRINGER, // added by Cloudwalk for kristus
62 GAME_BATTLEMETAL, // added by Cloudwalk for Subject9x
67 // Master switch for some hacks/changes that eventually should become cvars.
68 #define IS_NEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_XONOTIC || (g) == GAME_VORETOURNAMENT)
69 // Pre-csqcmodels era.
70 #define IS_OLDNEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_VORETOURNAMENT)
72 extern gamemode_t gamemode;
73 extern const char *gamename;
74 extern const char *gamenetworkfiltername;
75 extern const char *gamedirname1;
76 extern const char *gamedirname2;
77 extern const char *gamescreenshotname;
78 extern const char *gameuserdirname;
79 extern char com_modname[MAX_OSPATH];
81 void COM_InitGameType (void);
82 void COM_ChangeGameTypeForGameDirs(void);