ACTOR SurvivalistImpactorGauntlets : Weapon
{
	Weapon.SelectionOrder 3600
	+WEAPON.MELEEWEAPON
	Inventory.Icon "IMPAZ0"
	Weapon.UpSound "weapons/IMGRaise"
	Inventory.PickupMessage "You picked up the Impactor Gauntlet! Big punchy time!"
	Obituary "%o's face was smashed in by %k's Impactor Gauntlet!"
	Tag "Impactor Gauntlets"
	Inventory.RestrictedTo "SurvivalistClass"
	States
	{
	Spawn:
		IMPA Z -1
		Stop
	Select:
		IMPA A 1 A_Raise
		TNT1 A 0 A_Raise
		TNT1 A 0 A_Raise
		loop
	Deselect:
		IMPA A 1 A_Lower
		TNT1 A 0 A_Lower
		TNT1 A 0 A_Lower
		Wait
	Ready:
		IMPA A 1 A_WeaponReady
		loop
	Fire:
		IMPA AB 2
		TNT1 A 0 A_PlaySound("weapons/IMGCok")
		IMPA CDE 2
		TNT1 A 5
		Goto Hold
	Hold:
		TNT1 A 1
		TNT1 A 0 A_ReFire
		IMPA FGHI 1
		TNT1 A 0 A_CustomPunch (250, true, 0, "ImpactorPuff", 108)
		TNT1 A 0 A_playsound("weapons/IMGMiss", 6)
		TNT1 A 0 A_Blast(BF_DONTWARN | BF_NOIMPACTDAMAGE | BF_AFFECTBOSSES, 25, 128, 20, "GauntletImpact")
		TNT1 A 0 A_Quake(3, 10, 0, 10)
		IMPA JKLMN 1
		IMPA N 5
		IMPA OPQRS 3
		TNT1 A 5
		IMPA EDCBA 2
		Goto Ready
	AltFire:
		IMPA AB 2
		TNT1 A 0 A_PlaySound("weapons/IMGCok")
		IMPA CDE 2
		TNT1 A 5
		Goto AltHold
	AltHold:
		TNT1 A 1
		TNT1 A 0 A_ReFire
		IMPA FGHI 1
		TNT1 A 0 ThrustThing(angle * 256 / 360, 30, 1, 0)
		TNT1 A 0 A_PlaySound("weapons/IMGThrust")
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA J 1 A_CustomPunch (10,1,0 ,"ImpactorPuff",92)
		IMPA OPQRS 2
		TNT1 A 5
		IMPA EDCBA 2
		Goto Ready
	}
}
ACTOR ImpactorPuff : BulletPuff
{
  +PUFFONACTORS
  +FoilInvul
  States
  {
  Spawn:
    PUFF ABCD 4
 Xdeath:
	TNT1 A 0 A_playsound("weapons/IMGHIT", 7,1)
    Stop
  }
}  

Actor GauntletImpact : BlastEffect
{
  +NOBLOCKMAP
  +NOGRAVITY
  +NOCLIP
  +NOTELEPORT
  States
  {
  Spawn:
    TNT1 A 0
    Stop
  }
}