ACTOR BoomerFlakGun : Weapon
{
  Weapon.SelectionOrder 1900
  Weapon.AmmoUse 4
  Weapon.AmmoGive 8
  Weapon.AmmoType "BoomerFlak"
  Inventory.PickupMessage "You got your friend Stanislav! Big and BAD!"
  +WEAPON.WIMPY_WEAPON
  Tag "Self-Crafted Flak Cannon 'Stanislav'"
  Obituary "%o got flakked by %k."
  SelfObituary "%o got flakked."
  DECAL "BULLETCHIP"
  Inventory.RestrictedTo "BoomerClass"
  States
  {
  Ready:
    SNTS A 1 OFFSET(9,128)
	SNTS A 1 OFFSET(7,96)
	SNTS A 1 OFFSET(5,72)
	SNTS A 1 OFFSET(3,48)
	SNTS A 1 OFFSET(1,36)
    TNT1 A 0 A_PLAYSOUND("SVTPUMP", CHAN_AUTO)
	SNTS F 2 OFFSET(-2,35)
	SNTS F 2 OFFSET(0,32)
	SNTS G 1 OFFSET(2,35)
	SNTS H 1 OFFSET(2,36)
	SNTS H 1 OFFSET(3,39)
	SNTS H 2 OFFSET(2,36)
	SNTS G 2 OFFSET(2,35)
	SNTS F 2 OFFSET(0,32)
	SNTS F 2 OFFSET(-2,35)
    GOTO READY2
	Ready2:
    SNTS A 1 A_WeaponReady
    Loop
  Deselect:
    SNTS AA 0 A_Lower
	SNTS A 1 A_Lower
    Loop
  Select:
    SNTS AA 0 A_Raise
	SNTS A 0 A_Raise
    Loop
  Fire:
    SNTS A 1 OFFSET(0,36)
	TNT1 A 0 A_PLAYWEAPONSOUND("SVTSHOT")
	SNTS B 2 BRIGHT OFFSET(0,37) A_FireBullets(11,11,48,2,"PELLETEXPLO")
	SNTS C 2 OFFSET(0,42)
    SNTS D 2 OFFSET(0,39)
	SNTS E 2 OFFSET(0,37) 
	SNTS A 1 OFFSET(0,34)
	TNT1 A 0 A_PLAYSOUND("SVTPUMP", CHAN_AUTO)
	SNTS F 2 OFFSET(-2,35)
	SNTS F 2 OFFSET(0,32)
	SNTS G 1 OFFSET(2,35)
	SNTS H 1 OFFSET(2,36)
	SNTS H 1 OFFSET(3,39)
	SNTS H 2 OFFSET(2,36)
	SNTS G 2 OFFSET(2,35)
	SNTS F 2 OFFSET(0,32)
	SNTS F 2 OFFSET(-2,35)
	SNTS A 6 OFFSET(0,32)
    Goto Ready2
  Spawn:
    PIST A -1
    Stop
  }
}

Actor BoomerFlak : Ammo
{
	Inventory.Amount 10
	Inventory.Maxamount 100
	Ammo.Backpackamount 20
	Ammo.BackpackMaxamount 200
}