ACTOR TK1AutoShotgun : Weapon
{
  Weapon.Kickback 100
  Scale 0.1
  Weapon.AmmoUse1 1
	Weapon.AmmoGive1 12
	Weapon.AmmoType1 "TK1Ammo_Shell"
	Weapon.AmmoUse2 1
	Weapon.AmmoType2 "TK1Ammo_ExpShell"
  Inventory.Icon "TKA3B0"
  Inventory.PickupMessage "Auto Shotgun"
  Tag "Auto Shotgun"
  Obituary  "%k's Auto Shotgun turned %o into roast meat."
  	Inventory.PickupSound "Turok1/Weapons/ShotgunSelect"
  States
  {
  Spawn:
    TKA2 C -1
    Loop
  Ready:
    TK07 A 2 
    TK07 B 2
    TK07 C 2
    TK07 D 2
    TK07 EFGH 2
    TK07 I -1 A_WeaponReady
    Goto Ready+7
  Deselect:
    TN03 CDEFGHIJK 2
    TK07 Y 0 A_Lower
    wait
  Select: 
    TK07 A 0 A_Raise 
    Loop  
  Fire: 
 	TNT1 A 0 A_PlayWeaponSound ("Turok1/Weapons/AutoShotgunFire")
	TNT1 A 0 A_SpawnItemEx("TK1ShellCasing", 20,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
    TK07 J 2 BRIGHT A_FireBullets(3.0, 3, 5, 7, "BulletPuff")
	TK07 KLMN 2
	TK07 OP 2
	TK07 QRSTUVXYZ 2 A_Refire
	TN03 AB 2 A_Refire
    Goto Ready+8
  AltFire: 
 	TNT1 A 0 A_PlayWeaponSound ("Turok1/Weapons/AutoShotgunFire")
    TK07 J 2 BRIGHT A_FireCustomMissile("TK1ExpShellShot")
	TK07 KLMN 2
	TK07 OP 2
	TK07 QRSTUVXYZ 2 A_Refire
	TN03 AB 2 A_Refire
    Goto Ready+8
  }
}