Code: Select all
Fire:
TNT1 A 0 A_JumpIfInventory("RifleAmmo",1,2)
TNT1 AAAA 0
TNT1 A 0 A_JumpIfInventory("Zoomed",1,"Fire2")
TNT1 A 0 A_PlaySound("weapons/rifle", 1)
RIFF A 1 BRIGHT
TNT1 A 0 A_GunFlash
TNT1 A 0 A_AlertMonsters
RIFF B 1 BRIGHT A_FireBullets (2, 2, -1, 8.5, "BulletPuffed")
TNT1 A 0 A_GunFlash
TNT1 A 0 A_Takeinventory("RifleAmmo",1)
RIFF C 1 A_FireCustomMissile("ChaingunCasingSpawner",5,0,8,-9)
RIFG A 2
RIFG A 1 A_ReFire
RIFG A 7 A_WeaponReady(1)
Goto Ready+6