-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathZScript.zsc
72 lines (56 loc) · 1.49 KB
/
ZScript.zsc
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
// HD's main ZScript lump.
version "4.11"
#include "ZScript/MACZombie.zsc"
#include "ZScript/ColtZombie.zsc"
#include "ZScript/ACRZombie_Old.zsc"
//#include "ZScript/Weapons/M4Flechette.zsc"
class PB_HDCaesarSaladSpawner : EventHandler
{
override void CheckReplacement(ReplaceEvent e) {
if (!PB_CaesarSalad_AllowReplacement)
return;
switch (e.Replacee.GetClassName()) {
//Andy McNab look-a-like
case 'ZombieMan' : if (!random(0, 3))
{
if(random(0,1)){e.Replacement = "PB_UndeadHomeslice";}
else{e.Replacement = "PB_ColtSMGZombie";}
}
break;
case 'ShotgunGuy' : if (!random(0, 3))
{
if(random(0,1)){e.Replacement = "PB_UndeadHomeslice";}
else{e.Replacement = "PB_ColtSMGZombie";}
}
break;
case 'ChaingunGuy' : if (!random(0, 2))
{
if(random(0,1)){e.Replacement = "PB_ACRZombie";}
else{e.Replacement = "PB_ACRZombie";}
//placeholder since I'm planning to have a different enemy also spawn on the chaingunner
}
break;
}
e.IsFinal = false;
}
//honestly considering whether i should really keep the AR-15 or not
/*
void PushItem(Actor T, string item) {
let A = HDPickup(T);
A.itemsthatusethis.push(item);
}
override void WorldThingSpawned(WorldEvent e) {
let T = e.Thing;
// Null check for event removal.
if(!T)return;
switch (T.GetClassName()) {
case 'HD6mmFlechetteAmmo':
PushItem(T, "HDColtCommando_CS");
break;
case 'PB_HDSteyrACRMag':
PushItem(T, "HDColtCommando_CS");
break;
}
}
*/
}