diff options
Diffstat (limited to 'src/doomstat.c')
-rw-r--r-- | src/doomstat.c | 108 |
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. | ||
41 | GameMode_t gamemode = indetermined; | ||
42 | GameMission_t gamemission = doom; | ||
43 | |||
44 | // Language. | ||
45 | Language_t language = english; | ||
46 | |||
47 | // Set if homebrew PWAD stuff has been added. | ||
48 | boolean modifiedgame; | ||
49 | |||
50 | //----------------------------------------------------------------------------- | ||
51 | |||
52 | // CPhipps - compatibility vars | ||
53 | complevel_t compatibility_level, default_compatibility_level; | ||
54 | |||
55 | int comp[COMP_TOTAL], default_comp[COMP_TOTAL]; // killough 10/98 | ||
56 | |||
57 | // v1.1-like pitched sounds | ||
58 | int pitched_sounds; // killough | ||
59 | |||
60 | int default_translucency; // config file says // phares | ||
61 | boolean general_translucency; // true if translucency is ok // phares | ||
62 | |||
63 | int demo_insurance, default_demo_insurance; // killough 1/16/98 | ||
64 | |||
65 | int allow_pushers = 1; // MT_PUSH Things // phares 3/10/98 | ||
66 | int default_allow_pushers; // killough 3/1/98: make local to each game | ||
67 | |||
68 | int variable_friction = 1; // ice & mud // phares 3/10/98 | ||
69 | int default_variable_friction; // killough 3/1/98: make local to each game | ||
70 | |||
71 | int weapon_recoil; // weapon recoil // phares | ||
72 | int default_weapon_recoil; // killough 3/1/98: make local to each game | ||
73 | |||
74 | int player_bobbing; // whether player bobs or not // phares 2/25/98 | ||
75 | int default_player_bobbing; // killough 3/1/98: make local to each game | ||
76 | |||
77 | int monsters_remember; // killough 3/1/98 | ||
78 | int default_monsters_remember; | ||
79 | |||
80 | int monster_infighting=1; // killough 7/19/98: monster<=>monster attacks | ||
81 | int default_monster_infighting=1; | ||
82 | |||
83 | int monster_friction=1; // killough 10/98: monsters affected by friction | ||
84 | int default_monster_friction=1; | ||
85 | |||
86 | #ifdef DOGS | ||
87 | int dogs, default_dogs; // killough 7/19/98: Marine's best friend :) | ||
88 | int dog_jumping, default_dog_jumping; // killough 10/98 | ||
89 | #endif | ||
90 | |||
91 | // killough 8/8/98: distance friends tend to move towards players | ||
92 | int distfriend = 128, default_distfriend = 128; | ||
93 | |||
94 | // killough 9/8/98: whether monsters are allowed to strafe or retreat | ||
95 | int monster_backing, default_monster_backing; | ||
96 | |||
97 | // killough 9/9/98: whether monsters are able to avoid hazards (e.g. crushers) | ||
98 | int monster_avoid_hazards, default_monster_avoid_hazards; | ||
99 | |||
100 | // killough 9/9/98: whether monsters help friends | ||
101 | int help_friends, default_help_friends; | ||
102 | |||
103 | int flashing_hom; // killough 10/98 | ||
104 | |||
105 | int doom_weapon_toggles; // killough 10/98 | ||
106 | |||
107 | int monkeys, default_monkeys; | ||
108 | |||