Actor GezzdtUMinigun : UWeapon
{
	Weapon.SelectionOrder 600
	Weapon.SlotNumber 5
	Weapon.AmmoType "UClip"
	Weapon.AmmoUse 1
	Weapon.AmmoGive 50
	Weapon.AmmoType2 "UClip"
	Weapon.AmmoUse2 1
	Weapon.AmmoGive2 0
	Inventory.PickupMessage "You got the Minigun"
	Obituary "%k's Minigun turned %o into a leaky piece of meat."
	+WEAPON.AMMO_CHECKBOTH
	Tag "Minigun"
	Inventory.Icon "1001B0"
	scale 0.1
	States
	{
	Select:
		TNT1 A 0 A_PlaySound("TurokRageWars/Weapons/TekCrossbowUp",6)
		TNT1 A 0 A_TakeInventory("altfiring")
		UMGI A 1 Offset(-67, 100)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-54, 81)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-32, 69)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-22, 58)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-10, 47)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-7, 39)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-2, 34)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 0 A_Raise
		Goto Ready
	Deselect:
		TNT1 A 0 A_Stopsound(7)
		TNT1 A 0 A_TakeInventory("altfiring")
		TNT1 A 0 a_playsound ("weapons/holster", 0)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-2, 34)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-7, 39)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-10, 47)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-22, 58)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-32, 69)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-54, 81)
		TNT1 A 0 A_WeaponReady(WRF_NoFire|WRF_NoSwitch)
		UMGI A 1 Offset(-67, 100)
		TNT1 A 0 A_Lower
		Wait
	Ready:
		UMGI A 1 A_Weaponready
		TNT1 A 0 A_TakeInventory("altfiring")
		loop
	Fire:
		TNT1 A 0 A_Playsound("umini/fire",7,1,TRUE)
		TNT1 A 0 A_Firebullets (1,1,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF1 A 1 Bright A_Quake(2,2,0,2,"none")
		UMGF BCDE 1
		TNT1 A 0 A_Firebullets (1,1,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF1 B 1 Bright A_Quake(2,2,0,2,"none")
		UMGF GHIJ 1
		TNT1 A 0 A_Firebullets (1,1,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF1 C 1 Bright A_Quake(2,2,0,2,"none")
		UMGF LMN 1
		TNT1 A 0 A_Firebullets (1,1,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF1 D 1 Bright A_Quake(2,2,0,2,"none")
		UMGF PQR 1
		TNT1 A 0 A_Firebullets (1,1,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF1 E 1 Bright A_Quake(2,2,0,2,"none")
		UMGF TUV 1
		TNT1 A 0 A_JumpIfInventory("altfiring",1,"firingalt")
		TNT1 A 0 A_Refire("Fire")
	FireEnd:
		TNT1 A 0 A_Stopsound(7)
		TNT1 A 0 A_TakeInventory("altfiring")
		TNT1 A 0 A_Playsound("umini/fireend",6)
		UMGE ABCDEFGHIJKLMNOPQRSTUVWXY 1
		goto Ready
	AltFire:
		TNT1 A 0 A_GiveInventory("altfiring",1)
		goto Fire
	FiringAlt:
		TNT1 A 0 A_Stopsound(7)
		TNT1 A 0 A_Playsound("umini/altfire",7,1,TRUE)
		UMGA ABC 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 A 1 Bright A_Quake(3,2,0,2,"none")
		UMGA E 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 B 1 Bright A_Quake(3,2,0,2,"none")
		UMGA GH 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 C 1 Bright A_Quake(3,2,0,2,"none")
		UMGA JK 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 D 1 Bright A_Quake(3,3,0,2,"none")
		UMGA MN 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 E 1 Bright A_Quake(3,2,0,2,"none")
		UMGA PQ 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 F 1 Bright A_Quake(3,2,0,2,"none")
		UMGA ST 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 G 1 Bright A_Quake(3,2,0,2,"none")
		UMGA VW 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 H 1 Bright A_Quake(3,2,0,2,"none")
		UMGA YZ 1
		TNT1 A 0 A_Firebullets (12,12,1,7,"UBulletpuff2",FBF_USEAMMO)
		UMF2 I 1 Bright A_Quake(3,2,0,2,"none")
		UMAA BC 1
		TNT1 A 0 A_Refire("FiringAlt")
		goto FireEnd
	Spawn:
		UMPK A -1
		stop
	}
}

Actor Altfiring : Inventory
{Inventory.Maxamount 1}