2006-04-13 20:47:06 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
2010-05-25 10:56:00 +00:00
|
|
|
Copyright (C) 2010 EDuke32 developers and contributors
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2010-05-25 10:56:00 +00:00
|
|
|
This file is part of EDuke32.
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
EDuke32 is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License version 2
|
|
|
|
as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2014-07-20 08:55:56 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-04-13 20:47:06 +00:00
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
2010-05-25 10:56:00 +00:00
|
|
|
|
2019-09-21 18:59:54 +00:00
|
|
|
#include "ns.h" // Must come before everything else!
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#define global_c_
|
2010-08-02 08:13:51 +00:00
|
|
|
#include "global.h"
|
2006-04-13 20:47:06 +00:00
|
|
|
#include "duke3d.h"
|
2010-08-02 08:13:51 +00:00
|
|
|
|
2019-09-21 20:53:00 +00:00
|
|
|
BEGIN_DUKE_NS
|
|
|
|
|
|
|
|
|
2012-11-05 03:48:03 +00:00
|
|
|
user_defs ud;
|
|
|
|
|
2012-12-29 10:58:38 +00:00
|
|
|
const char *s_buildDate = "20120522";
|
2009-06-24 08:20:10 +00:00
|
|
|
|
2015-01-11 04:52:15 +00:00
|
|
|
|
2017-06-19 23:06:07 +00:00
|
|
|
char g_gametypeNames[MAXGAMETYPES][33]
|
2019-12-04 00:38:51 +00:00
|
|
|
= { "$NETMNU_GAMETYPE1", "$NETMNU_GAMETYPE2", "NETMNU_GAMETYPE3", "NETMNU_GAMETYPE4", "NETMNU_GAMETYPE5" };
|
|
|
|
|
2017-06-19 23:06:07 +00:00
|
|
|
|
2016-08-27 01:42:01 +00:00
|
|
|
int32_t g_gametypeFlags[MAXGAMETYPES] =
|
2012-12-29 10:58:38 +00:00
|
|
|
{
|
2017-10-15 23:10:21 +00:00
|
|
|
GAMETYPE_FRAGBAR |
|
2017-10-15 23:10:18 +00:00
|
|
|
GAMETYPE_SCORESHEET |
|
|
|
|
GAMETYPE_DMSWITCHES |
|
|
|
|
GAMETYPE_ITEMRESPAWN |
|
|
|
|
GAMETYPE_MARKEROPTION |
|
|
|
|
GAMETYPE_ACCESSATSTART,
|
|
|
|
|
|
|
|
GAMETYPE_COOP |
|
|
|
|
GAMETYPE_WEAPSTAY |
|
|
|
|
GAMETYPE_COOPSPAWN |
|
|
|
|
GAMETYPE_ACCESSCARDSPRITES |
|
|
|
|
GAMETYPE_COOPVIEW |
|
|
|
|
GAMETYPE_COOPSOUND |
|
|
|
|
GAMETYPE_OTHERPLAYERSINMAP |
|
|
|
|
GAMETYPE_PLAYERSFRIENDLY |
|
|
|
|
GAMETYPE_FIXEDRESPAWN |
|
|
|
|
GAMETYPE_PRESERVEINVENTORYDEATH,
|
|
|
|
|
|
|
|
GAMETYPE_WEAPSTAY |
|
2017-10-15 23:10:21 +00:00
|
|
|
GAMETYPE_FRAGBAR |
|
2017-10-15 23:10:18 +00:00
|
|
|
GAMETYPE_SCORESHEET |
|
|
|
|
GAMETYPE_DMSWITCHES |
|
|
|
|
GAMETYPE_ACCESSATSTART,
|
|
|
|
|
2017-10-15 23:10:21 +00:00
|
|
|
GAMETYPE_FRAGBAR |
|
2017-10-15 23:10:18 +00:00
|
|
|
GAMETYPE_SCORESHEET |
|
|
|
|
GAMETYPE_DMSWITCHES |
|
|
|
|
GAMETYPE_ITEMRESPAWN |
|
|
|
|
GAMETYPE_MARKEROPTION |
|
|
|
|
GAMETYPE_ACCESSATSTART |
|
|
|
|
GAMETYPE_TDM |
|
|
|
|
GAMETYPE_TDMSPAWN,
|
|
|
|
|
|
|
|
GAMETYPE_WEAPSTAY |
|
2017-10-15 23:10:21 +00:00
|
|
|
GAMETYPE_FRAGBAR |
|
2017-10-15 23:10:18 +00:00
|
|
|
GAMETYPE_SCORESHEET |
|
|
|
|
GAMETYPE_DMSWITCHES |
|
|
|
|
GAMETYPE_ACCESSATSTART |
|
|
|
|
GAMETYPE_TDM |
|
|
|
|
GAMETYPE_TDMSPAWN,
|
2012-12-29 10:58:38 +00:00
|
|
|
};
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2019-10-19 23:45:49 +00:00
|
|
|
double g_gameUpdateAvgTime;
|
2018-08-02 07:53:09 +00:00
|
|
|
|
2017-07-15 21:56:21 +00:00
|
|
|
int32_t g_actorRespawnTime = 768;
|
|
|
|
int32_t g_bouncemineRadius = 2500;
|
|
|
|
int32_t g_deleteQueueSize = 64;
|
|
|
|
int32_t g_itemRespawnTime = 768;
|
2017-06-22 22:49:22 +00:00
|
|
|
|
2017-07-15 21:56:21 +00:00
|
|
|
int32_t g_morterRadius = 2500;
|
|
|
|
int32_t g_numFreezeBounces = 3;
|
|
|
|
int32_t g_gametypeCnt = 5;
|
|
|
|
int32_t g_volumeCnt = 3;
|
|
|
|
int32_t g_pipebombRadius = 2500;
|
|
|
|
int32_t g_playerFriction = 0xCFD0;
|
|
|
|
int32_t g_rpgRadius = 1780;
|
|
|
|
int32_t g_scriptSize = 1048576;
|
|
|
|
int32_t g_seenineRadius = 2048;
|
|
|
|
int32_t g_shrinkerRadius = 650;
|
|
|
|
int32_t g_spriteGravity = 176;
|
|
|
|
int32_t g_timerTicsPerSecond = TICRATE;
|
|
|
|
int32_t g_tripbombRadius = 3880;
|
2016-08-27 01:42:01 +00:00
|
|
|
|
|
|
|
int16_t g_blimpSpawnItems[15] =
|
2012-12-29 10:58:38 +00:00
|
|
|
{
|
|
|
|
RPGSPRITE__STATIC,
|
|
|
|
CHAINGUNSPRITE__STATIC,
|
|
|
|
DEVISTATORAMMO__STATIC,
|
|
|
|
RPGAMMO__STATIC,
|
|
|
|
RPGAMMO__STATIC,
|
|
|
|
JETPACK__STATIC,
|
|
|
|
SHIELD__STATIC,
|
|
|
|
FIRSTAID__STATIC,
|
|
|
|
STEROIDS__STATIC,
|
|
|
|
RPGAMMO__STATIC,
|
|
|
|
RPGAMMO__STATIC,
|
|
|
|
RPGSPRITE__STATIC,
|
|
|
|
RPGAMMO__STATIC,
|
|
|
|
FREEZESPRITE__STATIC,
|
|
|
|
FREEZEAMMO__STATIC
|
|
|
|
};
|
|
|
|
|
2016-08-27 01:42:01 +00:00
|
|
|
char CheatKeys[2] = { sc_D, sc_N };
|
2012-12-29 10:58:38 +00:00
|
|
|
|
2019-09-21 20:53:00 +00:00
|
|
|
END_DUKE_NS
|