forked from ZDoom/gzdoom
/
beast.txt
121 lines (112 loc) · 1.83 KB
/
beast.txt
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
// Beast --------------------------------------------------------------------
class Beast : Actor
{
Default
{
Health 220;
Radius 32;
Height 74;
Mass 200;
Speed 14;
Painchance 100;
Monster;
+FLOORCLIP
SeeSound "beast/sight";
AttackSound "beast/attack";
PainSound "beast/pain";
DeathSound "beast/death";
ActiveSound "beast/active";
Obituary "$OB_BEAST";
Tag "$FN_BEAST";
DropItem "CrossbowAmmo", 84, 10;
}
States
{
Spawn:
BEAS AB 10 A_Look;
Loop;
See:
BEAS ABCDEF 3 A_Chase;
Loop;
Missile:
BEAS H 10 A_FaceTarget;
BEAS I 10 A_CustomComboAttack("BeastBall", 32, random[BeastAttack](1,8)*3, "beast/attack");
Goto See;
Pain:
BEAS G 3;
BEAS G 3 A_Pain;
Goto See;
Death:
BEAS R 6;
BEAS S 6 A_Scream;
BEAS TUV 6;
BEAS W 6 A_NoBlocking;
BEAS XY 6;
BEAS Z -1;
Stop;
XDeath:
BEAS J 5;
BEAS K 6 A_Scream;
BEAS L 5;
BEAS M 6;
BEAS N 5;
BEAS O 6 A_NoBlocking;
BEAS P 5;
BEAS Q -1;
Stop;
}
}
// Beast ball ---------------------------------------------------------------
class BeastBall : Actor
{
Default
{
Radius 9;
Height 8;
Speed 12;
FastSpeed 20;
Damage 4;
Projectile;
-ACTIVATEIMPACT
-ACTIVATEPCROSS
-NOBLOCKMAP
+WINDTHRUST
+SPAWNSOUNDSOURCE
+ZDOOMTRANS
RenderStyle "Add";
SeeSound "beast/attack";
}
States
{
Spawn:
FRB1 AABBCC 2 A_SpawnItemEx("Puffy", random2[BeastPuff]()*0.015625, random2[BeastPuff]()*0.015625, random2[BeastPuff]()*0.015625,
0,0,0,0,SXF_ABSOLUTEPOSITION, 64);
Loop;
Death:
FRB1 DEFGH 4;
Stop;
}
}
// Puffy --------------------------------------------------------------------
class Puffy : Actor
{
Default
{
Radius 6;
Height 8;
Speed 10;
+NOBLOCKMAP
+NOGRAVITY
+MISSILE
+NOTELEPORT
+DONTSPLASH
+ZDOOMTRANS
RenderStyle "Add";
}
States
{
Spawn:
FRB1 DEFGH 4;
Stop;
}
}