-
Notifications
You must be signed in to change notification settings - Fork 0
/
zscript.zc
187 lines (172 loc) · 4.58 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
version "4.13"
class UIKeybinds
{
static string getKeyboard(string keybind)
{
Array<int> keyInts;
Bindings.GetAllKeysForCommand(keyInts, keybind);
return Bindings.NameAllKeys(keyInts);
}
}
enum ECheckSolidFootingFlags
{
CSF_SOLIDGROUND = 1,
CSF_SOLIDACTORS = 2,
CSF_ALL = CSF_SOLIDGROUND|CSF_SOLIDACTORS,
}
enum DMObj
{
DMG_NO_DODGE = 8192,
DMG_CANTKILL = 16384,
DMG_NODASHAVOID = 32768,
DMG_IGNOREDEF = 65536,
DMG_NO_SARMOR = 131072,
DMG_FIXEDDMG = 262144,
}
// Services? V:
class KC_Service : Service
{
}
// An global variables thinker [attempting to get around ACS use for certain things >.>]
class KCGlobalVariables : Thinker
{
bool heiwavhardmodifier;
int GameMode;
int MapsFinished;
int ClassCheck;
int PlayerLevel;
int TruePlayerLevel;
int PlayerATK, TruePlayerATK;
int PlayerDEF, TruePlayerDEF;
int PlayerSPD, TruePlayerSPD;
int PlayerVIT, TruePlayerVIT;
int PlayerIQ, TruePlayerIQ;
int PlayerGUTS, TruePlayerGUTS;
int PlayerLUCK, TruePlayerLUCK, TempLUCK;
int Experience;
int MaxHealthTrue;
int HealthLevelAdd;
int HealthNoRPGAdd;
int HealthNoRPGAdd2;
int HealthBonusAdd;
int MaxPsychicPoints;
int MaxPsychicPointsRF;
int PPLevelAdd;
int PPNoRPGAdd;
double PPNoRPGAdd2;
int PPBonusAdd;
int MaxPPLimit;
int MaxMagicPoints;
int MPLevelAdd;
int MPNoRPGAdd;
double MPNoRPGAdd2;
int MPBonusAdd;
int MaxMPLimit;
double VitalityPieces;
int VitalityCurrHPBoosts;
int VitalityCurrHPBoosts2;
double IQPieces;
int IQCurrPPBoosts;
int IQCurrPPBoosts2;
double SensesPieces;
int SensesCurrMPBoosts;
int SensesCurrMPBoosts2;
int MassLevelAdd;
int MassNoRPGAdd;
double MassNoRPGAdd2;
int MassBonusAdd;
int AirLevelAdd;
int AirNoRPGAdd;
int AirNoRPGAdd2;
int AirBonusAdd;
int BaseStartMaxHealth;
int BaseStartMaxPP;
int BaseStartMaxMP;
int DashCharge;
int BaseDashChargeMax;
int TotalMonstersKilled;
int TotalItemsGrabbed;
int TotalSecretsFound;
double atkfct, deffct, spdfct, jmpfct, suvfct, mssfct, evdfct;
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;
double timefreeze1duration;
double timefreeze1cooldown;
double timefreeze2duration;
double timefreeze2cooldown;
double timefreeze3duration;
double timefreeze3cooldown;
bool PlayingCCards;
array<int> MiscellaneousVars;
KCGlobalVariables Init()
{
ChangeStatNum(STAT_STATIC); // Change this to STAT_STATIC if persisting between maps is desired.
return self;
}
static KCGlobalVariables Get()
{
ThinkerIterator it = ThinkerIterator.Create("KCGlobalVariables",STAT_STATIC); // Change this to STAT_STATIC if persisting between maps is desired.
let p = KCGlobalVariables(it.Next());
if (p == null)
{
p = new("KCGlobalVariables").Init();
}
return p;
}
}
const HARMORWEIGHTGREEN = 0.25;
const HARMORWEIGHTBLUE = 0.20;
const HARMORWEIGHTRED = 0.15;
const MARMORWEIGHTGREEN = 0.21875;
const MARMORWEIGHTBLUE = 0.175;
const MARMORWEIGHTRED = 0.13125;
const ARMORBONUS1DOUBLE = 0.01;
const ARMORBONUS1MININT = 1;
const ARMORBONUS2DOUBLE = 0.10;
const ARMORBONUS2MININT = 10;
const GREENARMORSAVEPER = 33.335;
const GREENARMORVALINT = 100;
const GREENARMORVALDOUBLE = 1.0;
const BLUEARMORSAVEPER = 50;
const BLUEARMORVALINT = 200;
const BLUEARMORVALDOUBLE = 2.0;
const REDARMORSAVEPER = 87.5;
const REDARMORVALINT = 425;
const REDARMORVALDOUBLE = 4.25;
const ARMORFLICKERTIMERBASE = 40;
const CCTAOKILLBASEMULTMIN = 0.0625;
const CCTAOKILLBASEMULTMAX = 0.125;
#include "zscript/KC-actors.zc"
#include "zscript/KC-compatibility.zc"
#include "zscript/KC-effects.zc"
#include "zscript/KC-events.zc"
#include "zscript/KC-intermission.zc"
#include "zscript/KC-items.zc"
#include "zscript/KC-ldl.zc"
#include "zscript/KC-misc.zc"
#include "zscript/KC-mixins.zc"
#include "zscript/KC-monsters.zc"
#include "zscript/KC-monsters-doom.zc"
#include "zscript/KC-monsters-heretic.zc"
#include "zscript/KC-monsters-hexen.zc"
#include "zscript/KC-monsterspawners.zc"
#include "zscript/KC-players.zc"
#include "zscript/KC-projectiles.zc"
#include "zscript/KC-specvuln.zc"
#include "zscript/KC-statfunc.zc"
#include "zscript/KC-statusbars.zc"
#include "zscript/KC-weapons.zc"
#include "zscript/KC-weaponsextra.zc"
#include "zscript/KC-tilt.zc"
#include "zscript/KC-tips.zc"
// Extra
#include "zscript/KC-ccardscompat.zc"
#include "zscript/KC-dmghudind.zc"
// Aetherius to KC steps
//~dvds_expgains~ -> ~kc_expgains~
// EE to KC steps
//~exex_expenabled~ -> ~kc_expgains~