ACTOR TK1AutoShotgun : Weapon
{
  Weapon.Kickback 100
  Scale 0.1
  Weapon.AmmoUse1 1
	Weapon.AmmoGive1 12
	Weapon.AmmoType1 "Ammo_Shell"
	Weapon.AmmoUse2 1
	Weapon.AmmoType2 "Ammo_ExpShell"
  Inventory.Icon "TKA3B0"
  Inventory.PickupMessage "Auto Shotgun"
  Obituary  "%k's Auto Shotgun turned %o into roast meat."
  	Inventory.PickupSound "Turok1/Items/PickupWeapon"
  States
  {
  Spawn:
    TAA2 C -1
    Loop
  Ready:
    TK07 A 2 
    TK07 B 2
    TK07 C 2
    TK07 D 2
    TK07 EFG 2
    TK07 G -1 A_WeaponReady
    Goto Ready+7
  Deselect:
    TK07 P 2
    TK07 QRSTU 2
    TK07 Y 0 A_Lower
    wait
  Select: 
    TK07 A 0 A_Raise 
    Loop  
  Fire: 
 	TNT1 A 0 A_PlaySound ("Turok1/Weapons/AutoShotgunFire","Weapon")
	TNT1 A 0 A_SpawnItemEx("TK1ShellCasing", 30,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
    TK07 H 2 BRIGHT A_FireBullets(3.0, 3, 5, 5, "BulletPuff")
	TK07 IJKLMN 2
	TK07 O 2 A_Refire
    Goto Ready+7
  AltFire: 
 	TNT1 A 0 A_PlaySound ("Turok1/Weapons/AutoShotgunFire","Weapon")
    TK07 H 2 BRIGHT A_FireCustomMissile("TK1ExpShellShot")
	TK07 IJKLMN 2
	TK07 O 2 A_Refire
    Goto Ready+7
  }
}