actor "M134 Minigun" : RGUWeapon
{
  obituary "%k gunned %o down with the Minigun."
  inventory.pickupmessage "You got the M134 Minigun. Holy shit!!!"
  weapon.bobspeed 1.0
  Weapon.BobRangeX 0.5
  Weapon.BobRangeY 0.5
  //attacksound "ump45/fire6"
  weapon.selectionorder 99
  weapon.ammotype "MinigunClip"
  weapon.ammouse 1
  weapon.ammogive 0
  -NOAUTOFIRE
  states
  {
  Ready:
    GRNA L 0 A_TakeInventory("weapondropper",2)
    TNT1 A 0 A_PlaySoundEx("MINIEQUP","SoundSlot5")
    MING AB 18 //A_WeaponReady(WRF_NOPRIMARY|WRF_ALLOWZOOM|WRF_NOBOB)
	TNT1 A 0 A_PlaySoundEx("MINISTAR","SoundSlot6")
	MING C 3 //A_WeaponReady(WRF_NOPRIMARY|WRF_ALLOWZOOM|WRF_NOBOB)
	MING B 5 //A_WeaponReady(WRF_NOPRIMARY|WRF_ALLOWZOOM|WRF_NOBOB)
	MING DEFGH 3 //A_WeaponReady(WRF_NOPRIMARY|WRF_ALLOWZOOM|WRF_NOBOB)
	MING IJKIJKIJKIJKIJKIJKIJK 2 A_WeaponReady(WRF_NOPRIMARY|WRF_ALLOWZOOM)
	MING IJKIJK 1 A_WeaponReady(WRF_NOPRIMARY|WRF_ALLOWZOOM)
    M4CA J 0 A_JumpIfInventory("ThrowingGrenade",1,"FragGrenade")
    M4CA J 0 A_JumpIfInventory("KnifeAttack",1,"KnifeAttack")
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    MING IJK 1 A_WeaponReady(WRF_ALLOWRELOAD|WRF_ALLOWZOOM)
	Goto Ready+39
  Deselect:
    M4CA J 0 A_PlaySoundEx("MINISTOP","SoundSlot6")
    M4CA J 0 A_TakeInventory("Aiming",1)
    M4CA J 0 A_TakeInventory("Reloading",1)
	MING IJKIJKIJKIJKIJKIJK 1
	MING IJKIJKIJK 2
	MING HGFED 2
    MING A 0 A_Lower
    MING D 1 A_Lower
    Goto Deselect+34
  Select:
    M4CC A 0 A_Raise
    Loop
  Fire:
    M4CB A 0 A_JumpIfInventory("Perk3_SteadyAim",1,"Fire_SteadyAim")
    M4CB A 0 A_PlayWeaponSound("MINIFIRE")
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuffLong",0,0,0,2)
    M4CB A 0 BRIGHT A_GunFlash
    MING L 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-4.00,4.00), 1, 0, 4, 0, frandom(-4.00,4.00))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
	MING M 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-4.00,4.00), 1, 0, 4, 0, frandom(-4.00,4.00))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
	MING N 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-4.00,4.00), 1, 0, 4, 0, frandom(-4.00,4.00))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
    M4CB A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
    M4CB A 0 A_JumpIfNoAmmo("FireEmpty")
    M4CB C 0 A_ReFire
    Goto Ready+39
  Hold:
    M4CB A 0 A_JumpIfInventory("Perk3_SteadyAim",1,"Fire_SteadyAim")
    M4CB A 0 A_PlayWeaponSound("MINIFIRE")
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuffLong",0,0,0,2)
    M4CB A 0 BRIGHT A_GunFlash
    MING L 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-4.00,4.00), 1, 0, 4, 0, frandom(-4.00,4.00))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
	MING M 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-4.00,4.00), 1, 0, 4, 0, frandom(-4.00,4.00))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
	MING N 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-4.00,4.00), 1, 0, 4, 0, frandom(-4.00,4.00))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
    M4CB A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
    M4CB A 0 A_JumpIfNoAmmo("FireEmpty")
    M4CB C 0 A_ReFire
    Goto Ready+39
  FireEmpty:
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    MING IJKIJKIJKIJKHGFEDB 1
    GRNA IKMN 1
	KNFA B 0 A_PlaySound("knife/swing")
	M4CB A 0 A_FireCustomMissile("MinigunThrown",0,0,7,2)
	TNT1 A 0 A_TakeInventory("M134 Minigun",1)
    Stop
  Zoom:
  Flash:
    TNT1 A 2 bright A_Light1
    TNT1 A 0 bright A_Light0
    stop
  Spawn:
    MINP A 0
    MINP A 0 A_SpawnItem("MinigunPickup")
    stop
  Fire_SteadyAim:
    M4CB A 0 A_PlayWeaponSound("MINIFIRE")
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuffLong",0,0,0,2)
    M4CB A 0 BRIGHT A_GunFlash
    MING L 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-2.50,2.50), 1, 0, 4, 0, frandom(-2.50,2.50))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
	MING M 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-2.50,2.50), 1, 0, 4, 0, frandom(-2.50,2.50))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
	MING N 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-2.50,2.50), 1, 0, 4, 0, frandom(-2.50,2.50))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
    M4CB A 0 A_JumpIfNoAmmo("FireEmpty")
    M4CB C 0 A_ReFire
    Goto Ready+39
  Hold_SteadyAim:
    M4CB A 0 A_PlayWeaponSound("MINIFIRE")
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuffLong",0,0,0,2)
    M4CB A 0 BRIGHT A_GunFlash
    MING L 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-2.50,2.50), 1, 0, 4, 0, frandom(-2.50,2.50))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
	MING M 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-2.50,2.50), 1, 0, 4, 0, frandom(-2.50,2.50))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	M16B A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
	MING N 1 BRIGHT A_FireCustomMissile("HHCBSCAR", frandom(-2.50,2.50), 1, 0, 4, 0, frandom(-2.50,2.50))
	M4CB A 0 A_FireCustomMissile("WeaponSmokePuff",0,0,0,2)
	SCAB A 0 A_SpawnItemEx("RifleCasingSCAR",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
	SCAB A 0 A_SpawnItemEx("RifleLink",Cos(Pitch)*30,9,22-(Sin(Pitch)*25),Cos(Pitch)*FRandom(2,14),FRandom(3,36),-Sin(Pitch)*FRandom(3,36),0,SXF_NOCHECKPOSITION|SXF_TRANSFERPITCH)
    M4CB A 0 BRIGHT ACS_NamedExecuteAlways("RefKick",0,0,0,0)
    M4CB A 0 A_JumpIfNoAmmo("FireEmpty")
    M4CB C 0 A_ReFire
    Goto Ready+39
  FragGrenade:
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    MING IJKIJKIJK 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING HGFED 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    U45F A 0 ACS_NamedExecuteAlways("RefSpeak",0,1,0,0)
    U45F A 0 A_ZoomFactor(1.0)
    U45A L 0 A_TakeInventory("Aiming",1)
    U45A L 0 A_TakeInventory("Reloading",1)
    U45F A 0 ACS_NamedExecuteAlways("RefSpeed",0,0,0,0)
	M4CA J 0 A_JumpIfInventory("ThrowingStun",1,"StunGrenade")
	M4CA J 0 A_JumpIfInventory("ThrowingIncd",1,"IncGrenade")
    U45A L 0 A_JumpIfInventory("Perk1_SOH_Pro",1,"FragGrenade_SOH")
    GRNA ABC 2
    GRNA D 2 A_PlaySound("grenade/pinpull")
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA EFGH 2
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 0 A_PlaySound("grenade/throw")
    GRNA A 0 A_PlaySoundEx("us/grenades","Voice")
    GRNA IJK 2
    GRNA L 0 A_TakeInventory("GrenadeAmmo",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
    U45A L 0 A_TakeInventory("Aiming",1)
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA L 2 A_FireCustomMissile("FragGrenade",frandom(-2.00,2.00),0,0,16,0,frandom(-1.50,1.50))
    GRNA MN 2
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    Goto Ready+39
  FragGrenade_SOH:
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA ABC 1
    GRNA D 1 A_PlaySound("grenade/pinpull")
    GRNA EFGH 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 0 A_PlaySound("grenade/throw")
    GRNA A 0 A_PlaySoundEx("us/grenades","Voice")
    GRNA IJK 1
    GRNA L 0 A_TakeInventory("GrenadeAmmo",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
    U45A L 0 A_TakeInventory("Aiming",1)
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
    GRNA L 1 A_FireCustomMissile("FragGrenade",frandom(-2.00,2.00),0,0,16,0,frandom(-1.50,1.50))
    GRNA MN 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    Goto Ready+39
  KnifeAttack:
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    MING IJKIJKIJK 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING HGFED 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    U45F A 0 A_ZoomFactor(1.0)
    U45A L 0 A_JumpIfInventory("ThrowingGrenade",1,"FragGrenade")
    U45A L 0 A_TakeInventory("Aiming",1)
    U45A L 0 A_TakeInventory("Reloading",1)
    U45F A 0 ACS_NamedExecuteAlways("RefSpeed",0,0,0,0)
    U45A L 0 A_JumpIfInventory("Perk1_SOH_Pro",1,"KnifeAttack_SOH")
    U45C A 0 A_JumpIfInventory("Perk3_Commando",1,"KnifeAttack_Commando")
    KNFA A 0 ACS_NamedExecuteAlways("RefSlash",0,0,0,0)
    KNFA AB 1
    KNFA B 0 A_PlaySound("knife/swing")
    KNFA C 1 A_CustomPunch(102,1,0,"KnifePuff",104)
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    KNFA DEFGHIJKL 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
    Goto Ready+39
  KnifeAttack_Commando:
    KNFA A 0 ACS_NamedExecuteAlways("RefSlash",0,0,0,0)
    KNFA AB 1
    KNFA B 0 A_PlaySound("knife/swing")
    KNFA C 1 A_CustomPunch(102,1,0,"KnifePuff",160)
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    KNFA DEFGHIJKL 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
    Goto Ready+39
  KnifeAttack_SOH:
    U45C A 0 A_JumpIfInventory("Perk3_Commando",1,"KnifeAttack_SOH_Commando")
    KNFA A 0 ACS_NamedExecuteAlways("RefSlash",0,0,0,0)
    KNFA AB 1
    KNFA B 0 A_PlaySound("knife/swing")
    KNFA C 1 A_CustomPunch(102,1,0,"KnifePuff",104)
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    KNFA DEFGHIJKL 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
    Goto Ready+39
  KnifeAttack_SOH_Commando:
    KNFA A 0 ACS_NamedExecuteAlways("RefSlash",0,0,0,0)
    KNFA AB 1
    KNFA B 0 A_PlaySound("knife/swing")
    KNFA C 1 A_CustomPunch(102,1,0,"KnifePuff",160)
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    KNFA DEFGHIJKL 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
    Goto Ready+39
  StunGrenade:
    U45A L 0 A_JumpIfInventory("Perk1_SOH_Pro",1,"StunGrenade_SOH")
    GRNA ABC 2
    GRNA D 2 A_PlaySound("grenade/pinpull")
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA EFGH 2
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 0 A_PlaySound("grenade/throw")
    GRNA A 0 A_PlaySoundEx("us/grenades","Voice")
    GRNA IJK 2
    GRNA L 0 A_TakeInventory("StunAmmo",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
	GRNA L 0 A_TakeInventory("ThrowingStun",1)
	GRNA L 0 A_TakeInventory("ThrowingIncd",1)
    U45A L 0 A_TakeInventory("Aiming",1)
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA L 2 A_FireCustomMissile("StunGrenade",frandom(-2.00,2.00),0,0,16,0,frandom(-1.50,1.50))
    GRNA MN 2
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    Goto Ready+39
  IncGrenade:
    U45A L 0 A_JumpIfInventory("Perk1_SOH_Pro",1,"IncGrenade_SOH")
    GRNA ABC 2
    GRNA D 2 A_PlaySound("grenade/pinpull")
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA EFGH 2
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 0 A_PlaySound("grenade/throw")
    GRNA A 0 A_PlaySoundEx("us/grenades","Voice")
    GRNA IJK 2
    GRNA L 0 A_TakeInventory("IncdAmmo",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
	GRNA L 0 A_TakeInventory("ThrowingStun",1)
	GRNA L 0 A_TakeInventory("ThrowingIncd",1)
    U45A L 0 A_TakeInventory("Aiming",1)
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA L 2 A_FireCustomMissile("IncGrenade",frandom(-2.00,2.00),0,0,16,0,frandom(-1.50,1.50))
    GRNA MN 2
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    Goto Ready+39
  StunGrenade_SOH:
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA ABC 1
    GRNA D 1 A_PlaySound("grenade/pinpull")
    GRNA EFGH 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 0 A_PlaySound("grenade/throw")
    GRNA A 0 A_PlaySoundEx("us/grenades","Voice")
    GRNA IJK 1
    GRNA L 0 A_TakeInventory("StunAmmo",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
	GRNA L 0 A_TakeInventory("ThrowingStun",1)
	GRNA L 0 A_TakeInventory("ThrowingIncd",1)
    U45A L 0 A_TakeInventory("Aiming",1)
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
    GRNA L 1 A_FireCustomMissile("StunGrenade",frandom(-2.00,2.00),0,0,16,0,frandom(-1.50,1.50))
    GRNA MN 1
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    Goto Ready+39
  IncGrenade_SOH:
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    GRNA ABC 1
    GRNA D 1 A_PlaySound("grenade/pinpull")
    GRNA EFGH 1
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
    TNT1 A 0 A_PlaySound("grenade/throw")
    GRNA A 0 A_PlaySoundEx("us/grenades","Voice")
    GRNA IJK 1
    GRNA L 0 A_TakeInventory("IncdAmmo",1)
    GRNA L 0 A_TakeInventory("ThrowingGrenade",1)
	GRNA L 0 A_TakeInventory("ThrowingStun",1)
	GRNA L 0 A_TakeInventory("ThrowingIncd",1)
    U45A L 0 A_TakeInventory("Aiming",1)
    GRNA L 0 A_TakeInventory("KnifeAttack",1)
    GRNA L 1 A_FireCustomMissile("IncGrenade",frandom(-2.00,2.00),0,0,16,0,frandom(-1.50,1.50))
    GRNA MN 1
    TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	TNT1 A 8
	TNT1 A 0 A_PlaySoundEx("MINILOOP","SoundSlot6")
	MING DEFGH 1
    Goto Ready+39
  }
}
actor MinigunClip : Ammo
{
    inventory.icon "CLIPA0"
    inventory.amount 0
    inventory.maxamount 999
    ammo.backpackamount 0
    ammo.backpackmaxamount 999
    +IGNORESKILL
}
actor MinigunPickup : CustomInventory
{
  inventory.pickupmessage "You got the M134 Minigun. Holy shit!!!"
  inventory.pickupsound ""
  +INVENTORY.AUTOACTIVATE
  //inventory.respawntics 70
  scale 0.30
  States
  {
  Spawn:
    MINP A -1
    stop
  Pickup:
    WEAP T 0
    WEAP T 0 A_JumpIfInventory("MinigunClip",999,"FailPickup")
	WEAP T 0 A_GiveInventory("MinigunClip",999)
	WEAP T 0 A_GiveInventory("M134 Minigun",1)
	WEAP J 0 A_GiveInventory("BIGGRINSound",1)
    stop
  FailPickup:
    WEAP T 1
    fail
  }
}
ACTOR MinigunEmpty : CustomInventory
{
Radius 2
Height 2
+MISSILE
+CLIENTSIDEONLY
+NOTELEPORT	
+DOOMBOUNCE
+THRUACTORS
+DROPOFF
BounceFactor 0.5
WallBounceFactor 0.25
BounceCount 3
Scale 0.30
States
{
Spawn:
	TNT1 A 0
	MINP A 8 A_FadeOut(0.1)
	Loop
	}
}