ACTOR TK1MiniGun : Weapon
{
  Weapon.Kickback 100
  Scale 0.2
  Weapon.AmmoUse 4
	Weapon.AmmoGive 125
	Weapon.AmmoType "TK1Ammo_Mags"
  Inventory.Icon "TKA3H0"
  Inventory.PickupMessage "Minigun"
  TAG "Minigun"
  Obituary  "%o dared to touch %k's Sasha."
  	Inventory.PickupSound "Turok1/Items/PickupWeapon"
  States
  {
  Spawn:
    TKA2 F -1
    Loop
  Ready:
  TK13 F 0 A_PlayWeaponSound("Turok1/Weapons/MiniGunup")
    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)
    TN04 IJKLM 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 1
	TNT1 A 0 A_SpawnItemEx("TK1BulletCasing", 20,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")
	TK12 XY 1
	TNT1 A 0 A_SpawnItemEx("TK1BulletCasing", 20,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
	TK12 Z 2 BRIGHT A_FireBullets(0, 0, 1, 10, "BulletPuff")
	TK13 AB 1
	TNT1 A 0 A_SpawnItemEx("TK1BulletCasing", 20,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
	TK13 C 2 BRIGHT A_FireBullets(0, 0, 1, 10, "BulletPuff")
	TK13 DE 2 A_ReFire	
	TNT1 A 0 A_ReFire	
	Rest:
	TNT1 A 0 A_Stopsound(7)
	TK13 F 2 A_PlayWeaponSound("Turok1/Weapons/MiniGunStop")
	TK13 GHIJKLMNOPQRSTUVXYZ 2 A_Refire
	TN04 ABCDEFGH 2 A_Refire
	TK13 IJKLMN 3 A_Refire
    Goto Ready+13
  }
}