ACTOR TK1MiniGun : Weapon
{
  Weapon.Kickback 100
  Scale 0.1
  Weapon.AmmoUse 4
	Weapon.AmmoGive 125
	Weapon.AmmoType "TK1Ammo_Mags"
  Inventory.Icon "TKA3H0"
  Inventory.PickupMessage "The Minigun"
  Obituary  "%k's Street sweeper clipped off %o's head."
  	Inventory.PickupSound "Turok1/Items/PickupWeapon"
  States
  {
  Spawn:
    TKA2 F -1
    Loop
  Ready:
    TK12 A 2 
    TK12 B 2
    TK12 C 2
    TK12 D 2
    TK12 EFGHIK 2
	TK12 LMNOPQ 2 A_WeaponReady
    TK12 R -1 A_WeaponReady
    Goto Ready+8
  Deselect:
  TNT1 A 0 A_Stopsound(7)
    TK12 YZ 2
    TK13 ABC 2
    TK12 Y 0 A_Lower
    wait
  Select: 
    TK12 A 0 A_Raise 
    Loop  
  Fire: 
 	TNT1 A 0 A_PlaySound ("Turok1/Weapons/MiniGunFireLoop",7,1,TRUE)
	TNT1 A 0 
    TK12 STU 2
	TNT1 A 0 A_SpawnItemEx("TK1BulletCasing", 30,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
	TK12 V 2 BRIGHT A_FireBullets(0, 0, 1, 10, "BulletPuff")
	TNT1 A 0 A_SpawnItemEx("TK1BulletCasing", 30,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
	TK12 XY 2
	TK12 Z 2 BRIGHT A_FireBullets(0, 0, 1, 10, "BulletPuff")
	TNT1 A 0 A_ReFire	
	TK12 PQR 2
	TK12 S 2 A_ReFire	
	Rest:
	TNT1 A 0 A_Stopsound(7)
	TK12 T 2 A_PlaySound("Turok1/Weapons/MiniGunStop","Weapon")
	TK12 UVX 2 
    Goto Ready+8
  }
}