Add weapon cycling bindings for mouse and joystick buttons. Add weapon cycling bindi...
[chocolate-doom.git] / src / deh_misc.h
bloba589b10454d1760745b8d5fab42eae58b012a059
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // Copyright(C) 2005 Simon Howard
5 //
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 // 02111-1307, USA.
21 //-----------------------------------------------------------------------------
23 // Parses "Misc" sections in dehacked files
25 //-----------------------------------------------------------------------------
27 #ifndef DEH_MISC_H
28 #define DEH_MISC_H
30 #include "doomfeatures.h"
32 #define DEH_DEFAULT_INITIAL_HEALTH 100
33 #define DEH_DEFAULT_INITIAL_BULLETS 50
34 #define DEH_DEFAULT_MAX_HEALTH 200
35 #define DEH_DEFAULT_MAX_ARMOR 200
36 #define DEH_DEFAULT_GREEN_ARMOR_CLASS 1
37 #define DEH_DEFAULT_BLUE_ARMOR_CLASS 2
38 #define DEH_DEFAULT_MAX_SOULSPHERE 200
39 #define DEH_DEFAULT_SOULSPHERE_HEALTH 100
40 #define DEH_DEFAULT_MEGASPHERE_HEALTH 200
41 #define DEH_DEFAULT_GOD_MODE_HEALTH 100
42 #define DEH_DEFAULT_IDFA_ARMOR 200
43 #define DEH_DEFAULT_IDFA_ARMOR_CLASS 2
44 #define DEH_DEFAULT_IDKFA_ARMOR 200
45 #define DEH_DEFAULT_IDKFA_ARMOR_CLASS 2
46 #define DEH_DEFAULT_BFG_CELLS_PER_SHOT 40
47 #define DEH_DEFAULT_SPECIES_INFIGHTING 0
49 #ifdef FEATURE_DEHACKED
51 extern int deh_initial_health;
52 extern int deh_initial_bullets;
53 extern int deh_max_health;
54 extern int deh_max_armor;
55 extern int deh_green_armor_class;
56 extern int deh_blue_armor_class;
57 extern int deh_max_soulsphere;
58 extern int deh_soulsphere_health;
59 extern int deh_megasphere_health;
60 extern int deh_god_mode_health;
61 extern int deh_idfa_armor;
62 extern int deh_idfa_armor_class;
63 extern int deh_idkfa_armor;
64 extern int deh_idkfa_armor_class;
65 extern int deh_bfg_cells_per_shot;
66 extern int deh_species_infighting;
68 #else
70 // If dehacked is disabled, hard coded values
72 #define deh_initial_health DEH_DEFAULT_INITIAL_HEALTH
73 #define deh_initial_bullets DEH_DEFAULT_INITIAL_BULLETS
74 #define deh_max_health DEH_DEFAULT_MAX_HEALTH
75 #define deh_max_armor DEH_DEFAULT_MAX_ARMOR
76 #define deh_green_armor_class DEH_DEFAULT_GREEN_ARMOR_CLASS
77 #define deh_blue_armor_class DEH_DEFAULT_BLUE_ARMOR_CLASS
78 #define deh_max_soulsphere DEH_DEFAULT_MAX_SOULSPHERE
79 #define deh_soulsphere_health DEH_DEFAULT_SOULSPHERE_HEALTH
80 #define deh_megasphere_health DEH_DEFAULT_MEGASPHERE_HEALTH
81 #define deh_god_mode_health DEH_DEFAULT_GOD_MODE_HEALTH
82 #define deh_idfa_armor DEH_DEFAULT_IDFA_ARMOR
83 #define deh_idfa_armor_class DEH_DEFAULT_IDFA_ARMOR_CLASS
84 #define deh_idkfa_armor DEH_DEFAULT_IDKFA_ARMOR
85 #define deh_idkfa_armor_class DEH_DEFAULT_IDKFA_ARMOR_CLASS
86 #define deh_bfg_cells_per_shot DEH_DEFAULT_BFG_CELLS_PER_SHOT
87 #define deh_species_infighting DEH_DEFAULT_SPECIES_INFIGHTING
89 #endif
91 #endif /* #ifndef DEH_MISC_H */