ACTOR GE007RifleMelee : Weapon
{
  Weapon.Kickback 100
  Scale 0.1
  Inventory.PickupMessage "Placeholder"
  Tag "Sniper Rifle (Melee)"
  +WEAPON.MELEEWEAPON
		  +INVENTORY.UNDROPPABLE
  Obituary  "%k headbutted %o in the Sniper Rifle."
  	Inventory.PickupSound "TWINE/Items/Pickup"
  States
  {

Spawn:
    TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("GE007SniperRifle",0,0,0,random(1,2),0,5,random(0,360),SXF_NOCHECKPOSITION,0)
    Stop
  Ready:
    TK01 A 1 
    TK01 B 1
    TK01 C 1
    TK01 D 1
    TK01 EFGHIJKLMNOP 1
    TK01 Q -1 A_WeaponReady
    Goto Ready+6	
  Deselect:
    TK01 PONMLKJIHGFEDCB 1
    TK01 A 1
    TK08 A 0 A_Lower
    wait
  Select: 
    TK08 A 0 A_Raise 
    Loop  
  Fire: 
  TK01 A 0 A_Jump(128,"FireAlt")
    TK01 RSTUVXYZ 1
	TK02 ABCDEFGHIJKLMNOP 1
	 	TNT1 A 0 A_PlaySound ("GE007/Weapons/Unarmed","Weapon")
		TK01 P 0 A_CustomPunch(50, FALSE, 0, "GE007HitPuff")
	TK02 QRSTUVXYZ 1
	TK03 ABCDEFGHIJKLMNOPQRS 1
    Goto Ready+16
   FireAlt:
    TK03 TUVXYZ 1
	TK04 ABCDEFGHIJKLMNOP 1
	 	TNT1 A 0 A_PlaySound ("GE007/Weapons/Unarmed","Weapon")
			TK01 P 0 A_CustomPunch(50, FALSE, 0, "GE007HitPuff")
	TK04 QRSTUVXYZ 1
	TK05 ABCDEFGHIJKL 1
    Goto Ready+16
  }
}