aboutsummaryrefslogtreecommitdiff
path: root/src/doomstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doomstat.c')
-rw-r--r--src/doomstat.c108
1 files changed, 108 insertions, 0 deletions
diff --git a/src/doomstat.c b/src/doomstat.c
new file mode 100644
index 0000000..56506ad
--- /dev/null
+++ b/src/doomstat.c
@@ -0,0 +1,108 @@
1/* Emacs style mode select -*- C++ -*-
2 *-----------------------------------------------------------------------------
3 *
4 *
5 * PrBoom: a Doom port merged with LxDoom and LSDLDoom
6 * based on BOOM, a modified and improved DOOM engine
7 * Copyright (C) 1999 by
8 * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 * Copyright (C) 1999-2000 by
10 * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
11 * Copyright 2005, 2006 by
12 * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 * 02111-1307, USA.
28 *
29 * DESCRIPTION:
30 * Put all global state variables here.
31 *
32 *-----------------------------------------------------------------------------
33 */
34
35#ifdef __GNUG__
36#pragma implementation "doomstat.h"
37#endif
38#include "doomstat.h"
39
40// Game Mode - identify IWAD as shareware, retail etc.
41GameMode_t gamemode = indetermined;
42GameMission_t gamemission = doom;
43
44// Language.
45Language_t language = english;
46
47// Set if homebrew PWAD stuff has been added.
48boolean modifiedgame;
49
50//-----------------------------------------------------------------------------
51
52// CPhipps - compatibility vars
53complevel_t compatibility_level, default_compatibility_level;
54
55int comp[COMP_TOTAL], default_comp[COMP_TOTAL]; // killough 10/98
56
57// v1.1-like pitched sounds
58int pitched_sounds; // killough
59
60int default_translucency; // config file says // phares
61boolean general_translucency; // true if translucency is ok // phares
62
63int demo_insurance, default_demo_insurance; // killough 1/16/98
64
65int allow_pushers = 1; // MT_PUSH Things // phares 3/10/98
66int default_allow_pushers; // killough 3/1/98: make local to each game
67
68int variable_friction = 1; // ice & mud // phares 3/10/98
69int default_variable_friction; // killough 3/1/98: make local to each game
70
71int weapon_recoil; // weapon recoil // phares
72int default_weapon_recoil; // killough 3/1/98: make local to each game
73
74int player_bobbing; // whether player bobs or not // phares 2/25/98
75int default_player_bobbing; // killough 3/1/98: make local to each game
76
77int monsters_remember; // killough 3/1/98
78int default_monsters_remember;
79
80int monster_infighting=1; // killough 7/19/98: monster<=>monster attacks
81int default_monster_infighting=1;
82
83int monster_friction=1; // killough 10/98: monsters affected by friction
84int default_monster_friction=1;
85
86#ifdef DOGS
87int dogs, default_dogs; // killough 7/19/98: Marine's best friend :)
88int dog_jumping, default_dog_jumping; // killough 10/98
89#endif
90
91// killough 8/8/98: distance friends tend to move towards players
92int distfriend = 128, default_distfriend = 128;
93
94// killough 9/8/98: whether monsters are allowed to strafe or retreat
95int monster_backing, default_monster_backing;
96
97// killough 9/9/98: whether monsters are able to avoid hazards (e.g. crushers)
98int monster_avoid_hazards, default_monster_avoid_hazards;
99
100// killough 9/9/98: whether monsters help friends
101int help_friends, default_help_friends;
102
103int flashing_hom; // killough 10/98
104
105int doom_weapon_toggles; // killough 10/98
106
107int monkeys, default_monkeys;
108