-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgencustominv.py
More file actions
37 lines (31 loc) · 788 Bytes
/
Copy pathgencustominv.py
File metadata and controls
37 lines (31 loc) · 788 Bytes
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
baseStr = """
actor {0}: Weapon
{{
States
{{
Select:
TNT1 A 0 A_GiveInventory("{1}")
TNT1 A 0 A_TakeInventory("{0}")
TNT1 A 0 A_SelectWeapon("{1}")
TNT1 A 1 A_Raise
loop
Deselect:
TNT1 A 1 A_Lower
loop
Ready:
TNT1 A 0 A_GiveInventory("{1}")
TNT1 A 1 A_WeaponReady
loop
Fire:
TNT1 A 1 A_GiveInventory("{1}")
goto Ready
}}
}}
"""
for n, w in ((1, "Chainsaw"), (1, "Fist"), (2, "Pistol"), (3, "Shotgun"),
(3, "Super Shotgun"), (4, "Chaingun"), (4, "Minigun"),
(5, "Rocket Launcher"), (1, "Grenade Launcher"), (6, "Plasma Rifle"),
(6, "Railgun"), (7, "BFG9000"), (7, "BFG10k")):
w1 = w.replace(" ", "")
w2 = "Uber-{0}".format(w)
print(baseStr.format(w1, w2))