XenevaOS
Loading...
Searching...
No Matches
deh_misc.h
Go to the documentation of this file.
1//
2// Copyright(C) 2005-2014 Simon Howard
3//
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.
8//
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. See the
12// GNU General Public License for more details.
13//
14//
15// Parses "Misc" sections in dehacked files
16//
17
18#ifndef DEH_MISC_H
19#define DEH_MISC_H
20
21#include "doomfeatures.h"
22
23#define DEH_DEFAULT_INITIAL_HEALTH 100
24#define DEH_DEFAULT_INITIAL_BULLETS 50
25#define DEH_DEFAULT_MAX_HEALTH 200
26#define DEH_DEFAULT_MAX_ARMOR 200
27#define DEH_DEFAULT_GREEN_ARMOR_CLASS 1
28#define DEH_DEFAULT_BLUE_ARMOR_CLASS 2
29#define DEH_DEFAULT_MAX_SOULSPHERE 200
30#define DEH_DEFAULT_SOULSPHERE_HEALTH 100
31#define DEH_DEFAULT_MEGASPHERE_HEALTH 200
32#define DEH_DEFAULT_GOD_MODE_HEALTH 100
33#define DEH_DEFAULT_IDFA_ARMOR 200
34#define DEH_DEFAULT_IDFA_ARMOR_CLASS 2
35#define DEH_DEFAULT_IDKFA_ARMOR 200
36#define DEH_DEFAULT_IDKFA_ARMOR_CLASS 2
37#define DEH_DEFAULT_BFG_CELLS_PER_SHOT 40
38#define DEH_DEFAULT_SPECIES_INFIGHTING 0
39
40#ifdef FEATURE_DEHACKED
41
42extern int deh_initial_health;
43extern int deh_initial_bullets;
44extern int deh_max_health;
45extern int deh_max_armor;
46extern int deh_green_armor_class;
47extern int deh_blue_armor_class;
48extern int deh_max_soulsphere;
49extern int deh_soulsphere_health;
50extern int deh_megasphere_health;
51extern int deh_god_mode_health;
52extern int deh_idfa_armor;
53extern int deh_idfa_armor_class;
54extern int deh_idkfa_armor;
55extern int deh_idkfa_armor_class;
56extern int deh_bfg_cells_per_shot;
57extern int deh_species_infighting;
58
59#else
60
61// If dehacked is disabled, hard coded values
62
63#define deh_initial_health DEH_DEFAULT_INITIAL_HEALTH
64#define deh_initial_bullets DEH_DEFAULT_INITIAL_BULLETS
65#define deh_max_health DEH_DEFAULT_MAX_HEALTH
66#define deh_max_armor DEH_DEFAULT_MAX_ARMOR
67#define deh_green_armor_class DEH_DEFAULT_GREEN_ARMOR_CLASS
68#define deh_blue_armor_class DEH_DEFAULT_BLUE_ARMOR_CLASS
69#define deh_max_soulsphere DEH_DEFAULT_MAX_SOULSPHERE
70#define deh_soulsphere_health DEH_DEFAULT_SOULSPHERE_HEALTH
71#define deh_megasphere_health DEH_DEFAULT_MEGASPHERE_HEALTH
72#define deh_god_mode_health DEH_DEFAULT_GOD_MODE_HEALTH
73#define deh_idfa_armor DEH_DEFAULT_IDFA_ARMOR
74#define deh_idfa_armor_class DEH_DEFAULT_IDFA_ARMOR_CLASS
75#define deh_idkfa_armor DEH_DEFAULT_IDKFA_ARMOR
76#define deh_idkfa_armor_class DEH_DEFAULT_IDKFA_ARMOR_CLASS
77#define deh_bfg_cells_per_shot DEH_DEFAULT_BFG_CELLS_PER_SHOT
78#define deh_species_infighting DEH_DEFAULT_SPECIES_INFIGHTING
79
80#endif
81
82#endif /* #ifndef DEH_MISC_H */
83
#define deh_max_armor
Definition deh_misc.h:66
#define deh_idfa_armor_class
Definition deh_misc.h:74
#define deh_green_armor_class
Definition deh_misc.h:67
#define deh_max_soulsphere
Definition deh_misc.h:69
#define deh_idkfa_armor_class
Definition deh_misc.h:76
#define deh_idkfa_armor
Definition deh_misc.h:75
#define deh_initial_bullets
Definition deh_misc.h:64
#define deh_megasphere_health
Definition deh_misc.h:71
#define deh_god_mode_health
Definition deh_misc.h:72
#define deh_soulsphere_health
Definition deh_misc.h:70
#define deh_species_infighting
Definition deh_misc.h:78
#define deh_max_health
Definition deh_misc.h:65
#define deh_bfg_cells_per_shot
Definition deh_misc.h:77
#define deh_initial_health
Definition deh_misc.h:63
#define deh_idfa_armor
Definition deh_misc.h:73
#define deh_blue_armor_class
Definition deh_misc.h:68