ACTOR BoomerSHVAK : Weapon
{
  Weapon.SelectionOrder 1900
  Weapon.AmmoUse 1
  Weapon.AmmoGive 50
  Weapon.AmmoType "BoomerAutocannonRounds"
  Inventory.PickupMessage "You got The ShVAK AutoCannon! Armed And Dangerous!"
  Tag "ShVAK AutoCannon"
  Obituary "%o was perforated by %k's ShVAK."
  SelfObituary "%o experienced danger close."
  DECAL "BULLETCHIP"
  Inventory.RestrictedTo "BoomerClass"
  States
  {
  Ready:
    SHVK C 1 OFFSET(9,128)
	SHVK D 1 OFFSET(7,96)
	SHVK D 1 OFFSET(5,72)
	SHVK E 1 OFFSET(3,48)
	SHVK A 1 OFFSET(1,36)
    GOTO READY2
	Ready2:
    SHVK A 1 A_WeaponReady
    Loop
  Deselect:
    SHVK AA 0 A_Lower
	SHVK A 1 A_Lower
    Loop
  Select:
    SHVK AA 0 A_Raise
	SHVK A 0 A_Raise
    Loop
  Fire:
    SHVK A 1 OFFSET(0,36)
	TNT1 A 0 A_PLAYSOUND("SHVKSHT", CHAN_5)
	SHVK B 2 BRIGHT OFFSET(0,37) A_FireBullets(5,3,1,35,"PELLETSHVAK")
	SHVK C 1 OFFSET(0,39)
	SHVK D 2 OFFSET(0,36) 
	SHVK E 1 OFFSET(0,34) A_REFIRE
	SHVK A 1 OFFSET(0,32)
	SHVK A 1 OFFSET(2,34)
	SHVK A 1 OFFSET(4,36)
	TNT1 A 0 A_PLAYWEAPONSOUND("SHVKRLD")
	SHVK E 1 OFFSET(4,37)
	SHVK D 1 OFFSET(4,38)
	SHVK C 1 OFFSET(4,39)
	SHVK D 1 OFFSET(4,38)
	SHVK E 1 OFFSET(4,37)
	SHVK A 1 OFFSET(4,36)
	SHVK A 1 OFFSET(2,34)
	SHVK A 1 OFFSET(0,32)
    Goto Ready2
  Spawn:
    PIST A -1
    Stop
  }
}

ACTOR PelletSHVAK
{
	Radius 11
	Height 8
	Speed 30
	+NoBlockMap
	+NoGravity
	+ActivateImpact
	+ActivatePCross
	+NoTeleport
	+PuffOnActors
	+PuffGetsOwner
	+ForceRadiusDmg
	+FORCEXYBILLBOARD
	+EXTREMEDEATH
	DamageType "BoomerExplosive"
	Obituary "%o go %p legs blown off by %k's ShVAK."
    SelfObituary "%o experienced danger close."
	RenderStyle Translucent
	Alpha 0.7
	Scale 0.5
	Damage 1
	States
	{
	Spawn:
		EXPX A 0 Bright 
		EXPX A 3 Bright	A_Explode(50, 75, 1)
		EXPX B 3 Bright	
		EXPX C 3 Bright 
		EXPX D 3 Bright
		EXPX E 3 Bright
		EXPX F 3 Bright
		Stop
	}
}

Actor BoomerAutocannonRounds  : Ammo
{
	Inventory.Amount 50
	Inventory.Maxamount 300
	Ammo.Backpackamount 50
	Ammo.BackpackMaxamount 600
}