-
Notifications
You must be signed in to change notification settings - Fork 3
/
zscript.zc
101 lines (93 loc) · 2.66 KB
/
zscript.zc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version "4.13"
/*
exex_expenabled -> dvds_expgains
*/
const HellCoreLevelDefine = 9;
class UIKeybinds
{
static string getKeyboard(string keybind)
{
Array<int> keyInts;
Bindings.GetAllKeysForCommand(keyInts, keybind);
return Bindings.NameAllKeys(keyInts);
}
}
// An global variables thinker [attempting to get around ACS use for certain things >.>]
class DSGlobalVariables : Thinker
{
int GameMode;
int MapsFinished;
int ClassCheck;
int PlayerLevel;
int TruePlayerLevel;
int PlayerSTR;
int PlayerDEF;
int PlayerSOR;
int PlayerTHE;
int PlayerAGL;
int PlayerDFT;
int Experience;
int MaxHealthTrue;
int HealthLevelAdd;
int HealthBonusAdd;
int MassLevelAdd;
int MassBonusAdd;
int AirLevelAdd;
int AirBonusAdd;
int BaseStartMaxHealth;
double ItemPoints;
int DashCharge;
int BaseDashChargeMax;
int TotalMonstersKilled;
int TotalItemsGrabbed;
int TotalSecretsFound;
double atkfct, deffct, spdfct, jmpfct, suvfct;
array<bool> AllKills, AllItems, AllSecrets, AllCompletion;
array<int> NumKills, NumItems, NumSecrets;
array<int> MaxKills, MaxItems, MaxSecrets;
array<int> MapNum;
array<int> AllKillsTimer, AllItemsTimer, AllSecretsTimer, AllCompletionTimer;
array<bool> AllKillsSound, AllItemsSound, AllSecretsSound, AllCompletionSound;
bool PlayingCCards;
array<int> MiscellaneousVars;
DSGlobalVariables Init()
{
ChangeStatNum(STAT_STATIC); // Change this to STAT_STATIC if persisting between maps is desired.
return self;
}
static DSGlobalVariables Get()
{
ThinkerIterator it = ThinkerIterator.Create("DSGlobalVariables",STAT_STATIC); // Change this to STAT_STATIC if persisting between maps is desired.
let p = DSGlobalVariables(it.Next());
if (p == null)
{
p = new("DSGlobalVariables").Init();
}
return p;
}
}
#include "zscript/dvds-compatibility.zc"
#include "zscript/dvds-tips.zc"
#include "zscript/dvds-mixins.zc"
#include "zscript/dvds-statusbars.zc"
#include "zscript/dvds-eventhandlers.zc"
#include "zscript/dvds-damageindicators.zc"
#include "zscript/dvds-staticfunctions.zc"
#include "zscript/dvds-weapclass.zc"
#include "zscript/dvds-weapon-sceptre.zc"
#include "zscript/dvds-hellcoreweapons.zc"
#include "zscript/dvds-actorclass.zc"
#include "zscript/dvds-items.zc"
#include "zscript/dvds-playerclass.zc"
#include "zscript/dvds-projectiles.zc"
#include "zscript/dvds-spellsystem.zc"
#include "zscript/dvds-monsters.zc"
#include "zscript/dvds-monsters_doom.zc"
#include "zscript/dvds-gibs.zc"
#include "zscript/dvds-misc.zc"
#include "zscript/dvds-monsterspawners.zc"
#include "zscript/dvds-buffslevelups.zc"
#include "zscript/dvds-legendoomlite.zc"
#include "zscript/dvds-dmghudind.zc"
#include "zscript/tilt.zc"
#include "zscript/tiltmenu.zc"