forked from BLOODWOLF333/Brutal-Doom-Community-Expansion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDualPlasma.txt
335 lines (312 loc) · 11 KB
/
DualPlasma.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
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
ACTOR DualPlasmaRifles : BrutalWeapon
{
Weapon.SelectionOrder 100
Weapon.AmmoUse1 0
Weapon.AmmoGive1 0
Weapon.AmmoUse2 0
Weapon.AmmoGive2 0
Inventory.PickupSound "PLSDRAW"
Weapon.AmmoType1 "AmmoCell"
Weapon.AmmoType2 "DoublePlasmaAmmo"
+WEAPON.NOAUTOAIM
+FORCEXYBILLBOARD
+WEAPON.NO_AUTO_SWITCH
Tag "Dual Plasma Rifles"
Inventory.PickupMessage "You got dual plasma rifles! (Slot 2)"
DropItem "PLasmagunSpawner"
scale 0.9
States
{
Ready:
Ready3:
DUPL A 0 A_JumpIfInventory("Kicking",1,"DoKick")
DUPL A 0 A_JumpIfInventory("Taunting",1,"Taunt")
DUPL A 0 A_JumpIfInventory("Salute1", 1, "Salute")
DUPL A 0 A_JumpIfInventory("Salute2", 1, "Salute")
DUPL A 0 A_JumpIfInventory("Reloading",1,"Reload")
DUPL A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
TNT1 A 0 A_JumpIfInventory("ExecuteDownedEnemy", 1, "DoExecution")
DUPL A 1 A_WeaponReady(WRF_ALLOWRELOAD)
DUPL A 0 A_JumpIfInventory("Unloading",1,"Unload")
DUPL A 0 A_JumpIfInventory("IsRunning",1,"CheckSprint")
DUPL A 0 A_JumpIfInventory("StartDualWield",1,"DualWield")
Loop
DualWield:
DUPL A 1
DUPL A 0 A_GiveInventory("Plasma_Gun",1)
DUPL A 0 A_Takeinventory("StartDualWield",1)
DUPL A 0 A_SelectWEapon("Plasma_Gun")
Goto Ready
CheckSprint:
DUPL A 1 A_WeaponReady(WRF_NOFIRE)
DUPL A 0 A_JumpIfInventory("IsStandingStill", 1, "Ready3")
DUPL A 0 A_JumpIfInventory("IsTacticalClass", 1, "StartSprint")
Goto Ready
StartSprint:
DUPL A 1 A_WeaponReady(WRF_NOFIRE)
DUPL A 0 A_Takeinventory("Zoomed",1)
DUPL A 0 A_Takeinventory("ADSmode",1)
DUPL A 0 A_ZoomFactor(1.0)
DUPL A 0 A_JumpIfInventory("UsedStamina", 40, "StopSprintTired")
Sprinting:
DUPL A 0 offset(-9,32)
DUPL A 0 offset(-9,32) A_JumpIfInventory("IsStandingStill", 1, "Ready3")
DUPL A 0 offset(-9,32) A_JumpIfInventory("UsedStamina", 100, "StopSprintTired")
PLAY A 0 offset(-9,32) ACS_NamedExecuteAlways("BDSprint", 0, 0, 0, 0)//Makes player faster.
DUPL A 0 offset(-9,32) A_JumpIfInventory("PowerStrength", 1, 2)
DUPL A 0 offset(-9,32) A_GiveInventory("UsedStamina", 8)
DUPL A 0 offset(-9,32)
DUPL A 1 offset(-9,34) A_SetPitch(pitch -0.5)
DUPL A 1 offset(-6,36) A_SetPitch(pitch -0.5)
DUPL A 1 offset(-3,38) A_SetPitch(pitch -0.5)
DUPL A 1 offset(0,38) A_SetPitch(pitch -0.5)
DUPL A 1 offset(3,36) A_SetPitch(pitch -0.5)
DUPL A 1 offset(6,34) A_SetPitch(pitch -0.5)
DUPL A 1 offset(9,32) A_SetPitch(pitch -0.5)
DUPL A 0 offset(9,32) A_WeaponReady(WRF_NOBOB)
DUPL A 0 A_JumpIfInventory("Kicking",1,"DoKick")
DUPL A 0 A_JumpIfInventory("Taunting",1,"Taunt")
DUPL A 0 A_JumpIfInventory("Reloading",1,"Reload")
DUPL A 0 offset(-9,32) A_GiveInventory("UsedStamina", 8)
DUPL A 0 offset(9,33) A_SpawnItemEx("FootStep", 0, 0, 2, 0, 0, -4)
DUPL A 1 offset(9,34) A_SetPitch(pitch +0.5)
DUPL A 1 offset(6,36) A_SetPitch(pitch +0.5)
DUPL A 1 offset(3,38) A_SetPitch(pitch +0.5)
DUPL A 1 offset(0,38) A_SetPitch(pitch +0.5)
DUPL A 1 offset(-3,36) A_SetPitch(pitch +0.5)
DUPL A 1 offset(-6,34) A_SetPitch(pitch +0.5)
DUPL A 1 offset(-9,32) A_SetPitch(pitch +0.5)
DUPL A 0 offset(-9,32) A_WeaponReady(WRF_NOBOB)
DUPL A 0 offset(-9,32) A_JumpIfInventory("IsRunning", 1, "Sprinting")
Goto StopSprint
StopSprintTired:
DUPL A 1
PLAY A 0 ACS_NamedExecuteAlways("BDTacticalSpeed", 0, 0, 0, 0)//Makes player slower.
DUPL A 0 A_PlaySound("Tired", 2)
DUPL A 0 A_TakeInventory("UsedStamina", 2)
DUPL A 5 A_WeaponReady
DUPL A 0 A_TakeInventory("UsedStamina", 2)
DUPL A 5 A_WeaponReady
DUPL A 0 A_TakeInventory("UsedStamina", 2)
DUPL A 5 A_WeaponReady
DUPL A 0 A_TakeInventory("UsedStamina", 2)
DUPL A 5 A_WeaponReady
DUPL A 0 A_TakeInventory("UsedStamina", 2)
DUPL A 5 A_WeaponReady
Goto Ready
StopSprint:
DUPL A 1
DUPL A 0 A_JumpIfInventory("UsedStamina", 60, "StopSprintTired")
PLAY A 0 ACS_NamedExecuteAlways("BDTacticalSpeed", 0, 0, 0, 0)//Makes player slower.
Goto Ready
Deselect:
DUPL A 0 A_Takeinventory("Reloading",1)
DUPL A 0 A_Takeinventory("HasPlasmaWeapon",1)
DUPL A 0 A_TakeInventory("TossGrenade", 1)
DUPL A 1 Offset(0, 34)
DUPL A 1 Offset(0, 38)
DUPL A 1 Offset(0, 42)
DUPL A 1 Offset(0, 50)
DUPL A 0 Offset(0, 32)
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
TNT1 A 1 A_Lower
Wait
Select:
TNT1 A 0 A_Giveinventory("GoSpecial",1)
DUPL A 0 A_Giveinventory("HasPlasmaWeapon",1)
TNT1 A 0 A_TakeInventory("FistsSelected", 1)
TNT1 A 0 A_TakeInventory("ShotgunSelected", 1)
TNT1 A 0 A_TakeInventory("MinigunSelected", 1)
TNT1 A 0 A_TakeInventory("SSGSelected", 1)
TNT1 A 0 A_TakeInventory("RocketLauncherSelected", 1)
TNT1 A 0 A_TakeInventory("GrenadeLauncherSelected", 1)
TNT1 A 0 A_GiveInventory("PlasmaGunSelected", 1)
TNT1 A 0 A_GiveInventory("HasDualPlasma",1)
TNT1 A 0 A_TakeInventory("RailGunSelected", 1)
TNT1 A 0 A_TakeInventory("RevenantLauncherSelected", 1)
TNT1 A 0 A_TakeInventory("SubMachineGunSelected", 1)
TNT1 A 0 A_TakeInventory("BFG10KSelected", 1)
TNT1 A 0 A_TakeInventory("BFGSelected", 1)
TNT1 A 0 A_TakeInventory("FlameCannonSelected", 1)
TNT1 A 0 A_TakeInventory("SawSelected", 1)
DUPL A 0 A_Takeinventory("HasBarrel",1)
DUPL A 0 A_TakeInventory("TossGrenade", 1)
DUPL A 0 A_TakeInventory("Plasma_Gun", 1)
TNT1 A 1 A_Raise
TNT1 AAAAAA 0 A_Raise
DUPL A 0 A_GunFlash
DUPL A 0 A_PlaySound("PLSDRAW")
SelectAnimation:
DUPL A 1 Offset(0, 50)
DUPL A 1 Offset(0, 42)
DUPL A 1 Offset(0, 38)
DUPL A 1 Offset(0, 34)
DUPL A 0 Offset(0, 32)
DUPL A 0 A_Takeinventory("StartDualWield",1)
DUPL A 0 A_GunFlash
Goto Ready
Fire:
DUPL A 0
DUPL A 0 A_JumpIfInventory("Reloading",1,"Reload")
DUPL A 0 A_JumpIfInventory("PlasmaAmmo",1,1)
Goto FireLeft
DUPL A 0 A_PlaySound("PLSM9", CHAN_WEAPON)
DUPL A 0 A_FireCustomMissile("PlasmaFlareSpawn", 8, 0, 0, 0)
TNT1 A 0 A_FireCustomMissile("Alerter",0,0)
DUPL A 0 A_JumpIfInventory("DMgame", 1, "FireDM")
DUPL B 1 BRIGHT A_FireCustomMissile("Plasma_Ball", frandom(-1.6, 1.6), 1, 8, 0, 0, frandom(-1.2, 1.2))
DUPL A 0 A_ZoomFactor(0.99)
DUPL A 0 A_Takeinventory("PlasmaAmmo",1)
DUPL A 0 A_Takeinventory("DoublePlasmaAmmo",1)
TNT1 A 0 A_SetPitch(-0.2 + pitch)
DUPL C 0
FireLeft:
DUPL A 0 A_JumpIfInventory("Reloading",1,"Reload")
DUPL A 0 A_JumpIfInventory("DoublePlasmaAmmo",1,1)
Goto NoAmmo
DUPL A 0 A_PlaySound("PLSM9", CHAN_WEAPON)
DUPL A 0 A_FireCustomMissile("PlasmaFlareSpawn", -8, 0, 0, 0)
TNT1 A 0 A_SetPitch(-0.2 + pitch)
DUPL D 1 BRIGHT A_FireCustomMissile("Plasma_Ball", frandom(-1.6, 1.6), 1, -8, 0, 0, frandom(-1.2, 1.2))
DUPL A 0 A_ZoomFactor(0.99)
DUPL A 0 A_Takeinventory("DoublePlasmaAmmo",1)
DUPL E 1
DUPL A 0 A_ZoomFactor(1.0)
DUPL C 2
DUPL A 0 A_Refire("Fire")
Goto Ready
FireDM:
DUPL A 0
DUPL B 1 BRIGHT A_FireCustomMissile("PlasmaBallDM", frandom(-1.6, 1.6), 1, 8, 0, 0, frandom(-1.2, 1.2))
DUPL A 0 A_ZoomFactor(0.99)
DUPL A 0 A_Takeinventory("PlasmaAmmo",1)
DUPL A 0 A_Takeinventory("DoublePlasmaAmmo",1)
TNT1 A 0 A_SetPitch(-0.2 + pitch)
DUPL A 0 A_JumpIfInventory("Reloading",1,"Reload")
DUPL A 0 A_JumpIfInventory("DoublePlasmaAmmo",1,2)
Goto NoAmmo
TNT1 AAAA 0
DUPL A 0 A_PlaySound("PLSM9", CHAN_WEAPON)
DUPL A 0 A_FireCustomMissile("PlasmaFlareSpawn", -12, 0, 0, 0)
TNT1 A 0 A_SetPitch(-0.2 + pitch)
DUPL D 1 BRIGHT A_FireCustomMissile("PlasmaBallDM", frandom(-1.6, 1.6), 1, -8, 0, 0, frandom(-1.2, 1.2))
DUPL A 0 A_ZoomFactor(0.99)
DUPL A 0 A_Takeinventory("DoublePlasmaAmmo",1)
DUPL E 1
DUPL A 0 A_ZoomFactor(1.0)
DUPL C 2
DUPL A 0 A_Refire("Fire")
Goto Ready
Spawn:
PLAS A -1
Stop
Reload:
DUPL A 0 A_Takeinventory("Reloading",1)
DUPL A 0
DUPL A 0 A_JumpIfInventory("AmmoCell",1,1)
Goto Ready
DUPL A 0
DUPL A 0 A_JumpIfInventory("DoublePlasmaAmmo",100,"Ready")
DUPL A 0 A_JumpIfInventory("TurboReload",1,"TurboReload")
DUPL A 0 A_JumpIfInventory("AmmoCell",1,7)
DUPL A 1 Offset(0, 34)
DUPL A 1 Offset(0, 38)
DUPL A 1 Offset(0, 42)
DUPL A 1 Offset(0, 50)
DUPL A 0 Offset(0, 32)
TNT1 A 5
PLSR B 1
DUPL A 0 A_PlaySound("PLREADY", 1)
DUPL A 0 A_FireCustomMissile("PlasmaCaseSpawn",45,0,10,-20)
PLSR CDEEEEEEEEEEEEEEEF 1
PLSR GHHIIIJJJJJJJJIKLB 1
TNT1 A 10
P2SR B 1
DUPL A 0 A_PlaySound("PLREADY", 1)
DUPL A 0 A_FireCustomMissile("PlasmaCaseSpawn",180,0,-10,-20)
P2SR CDEEEEEEEEEEEEEEEF 1
P2SR GHHIIIJJJJJJJJIKLB 1
DUPL A 0 A_TakeInventory("StopDualWield", 1)
DUPL A 0 A_TakeInventory("FiredPrimary", 1)
DUPL A 0 A_TakeInventory("FiredSecondary", 1)
TNT1 A 5
DUPL A 1 Offset(0, 50)
DUPL A 1 Offset(0, 42)
DUPL A 1 Offset(0, 38)
DUPL A 1 Offset(0, 34)
DUPL A 0 Offset(0, 32)
ReloadingSequence:
TNT1 AAAAAAAAAA 0
DUPL A 0 A_JumpIfInventory("DoublePlasmaAmmo",100,15)
DUPL A 0 A_JumpIfInventory("AmmoCell",1,3)
Goto Ready
TNT1 AAAAAA 0
DUPL A 0 A_Giveinventory("PlasmaAmmo",1)
DUPL A 0 A_Giveinventory("DoublePlasmaAmmo",1)
DUPL A 0 A_Takeinventory("AmmoCell",1)
Goto ReloadingSequence
TNT1 AAAAAAAA 0
TNT1 A 0 A_Refire
DUPL A 1 A_Takeinventory("Reloading",1)
Goto Ready
TurboReload:
DUPL A 0 A_Takeinventory("Unloading",1)
DUPL A 0 A_JumpIfInventory("AmmoCell",1,3)
Goto Ready
DUPL AAA 0
Goto ReloadingSequence
Unload:
DUPL A 0 A_Takeinventory("Unloading",1)
DUPL A 0 A_JumpIfInventory("DoublePlasmaAmmo",1,7)
Goto Ready
TNT1 AAAAA 0
PLSR AB 1
DUPL A 0 A_PlaySound("PLREADY", 1)
PLSR CDJJJJJJ 1
PLSR IHGFDECBA 2
TNT1 A 5
P2SR AB 1
P2SR CDJJJJJJ 1
P2SR IHGFDECBA 2
UnloadingSequence:
DUPL A 0
DUPL A 0 A_Takeinventory("Unloading",1)
DUPL A 0 A_JumpIfInventory("DoublePlasmaAmmo",1,3)
Goto Ready
TNT1 AAAAAAA 0
DUPL A 0 A_Takeinventory("PlasmaAmmo",1)
DUPL A 0 A_Takeinventory("DoublePlasmaAmmo",1)
DUPL A 0 A_Giveinventory("AmmoCell",1)
Goto UnloadingSequence
NoAmmo:
RIFG A 0
RIFG A 0 A_ZoomFactor(1.0)
RIFG A 0 A_Takeinventory("Zoomed",1)
RIFG A 0 A_Takeinventory("ADSmode",1)
RIFG A 0 A_JumpIfInventory("TurboReload",1,"TurboReload")
TNT1 A 0 A_PlaySound("weapons/empty", 4)
NoAmmo2:
RIFG A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
RIFG A 0 A_JumpIfInventory("Taunting",1,"Taunt")
RIFG A 0 A_JumpIfInventory("Salute1", 1, "Salute")
RIFG A 0 A_JumpIfInventory("Salute2", 1, "Salute")
RIFG A 0 A_JumpIfInventory("IsRunning",1,"CheckSprint")
RIFG A 0 A_JumpIfInventory("ExecuteDownedEnemy", 1, "DoExecution")
RIFG A 0 A_JumpIfInventory("Kicking",1,"DoKick")
DUPL A 5 A_WeaponReady(WRF_ALLOWRELOAD | WRF_NOFIRE)
RIFG A 0 A_JumpIfInventory("Reloading",1,"Reload")
RIFG A 0 A_JumpIfInventory("TurboReload",1,"TurboReload")
TNT1 A 0 A_JumpIfInventory("NoAutoReload", 1, "NoAmmo2")
RIFG A 0 A_JumpIfInventory("AmmoCell",1,"Reload")
RIFG A 0 A_JumpIfInventory("FiredPrimary",1,"NoAmmo2")
Goto Ready3
}
}
ACTOR DoublePlasmaAmmo : Ammo //Your weapon's magazine ammo.
{
Inventory.Amount 0
Inventory.MaxAmount 100 //Your weapon's magazine ammo limit. Always leave one more bullet, so you can do the 12+1 effect.
Ammo.BackpackAmount 0
Ammo.BackpackMaxAmount 100
Inventory.Icon "PLASB0"
}