ACTOR AXE : FIST1 
{
    +PUFFONACTORS
	+WEAPON.NOAUTOFIRE
	+WEAPON.NOALERT
    Inventory.Icon "ENASA0"
	Inventory.PickupMessage "Picked up a fire axe!"
	Tag "Axe"
    Obituary "%k butchered %o with his axe!"
    Weapon.SlotNumber 1
	Weapon.BobStyle InverseSmooth
	Weapon.BobSpeed 2
	Weapon.BobRangeX 0.75
	Weapon.BobRangeY 0.75
	States
  {
	Spawn:
	  ENAS A -1
	  Stop
	
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


	ALASPINASWACHO:
	ENAX a 1 offset(-2,34)
	ENAX a 1 offset(-10,42)
	ENAX a 1 offset(-21,54)
	ENAX a 1 offset(-31,66)
	ENAX a 1 offset(-41,82)
	tnt1 a 2
	tmt1 a 0 offset(2,32)
	boss x 0 A_TakeInventory("PUNCHIN",1)
	boss a 0 A_GunFlash("Puchin")
	tnt1 aaaa 5
	ENAX a 1 offset(-10,69)
	ENAX a 1 offset(-8,66)
	ENAX a 1 offset(-6,48)
	ENAX a 1 offset(-4,42)
	ENAX a 1 offset(-2,36)
	ENAX a 1 offset(0,34)
	ENAX a 1 offset(0,33)
	ENAX a 1 offset(0,32)
	boss x 0 A_TakeInventory("PUNCHIN",1)
	boss a 0 A_GunFlash("CrossHair")
	goto ready
		

	grenadetr:
	boss x 0 A_TakeInventory("lanzalaputog",1)
	fast a 0 A_JumpIfInventory("GrenadeItem",1,1)
Goto Ready
	boss x 0 A_TakeInventory("GrenadeItem",1)
	ENAX a 1 offset(0,33)
	ENAX a 1 offset(0,34)
	ENAX a 1 offset(0,36)
	ENAX a 1 offset(0,42)
	ENAX a 1 offset(0,48)
	ENAX a 1 offset(0,54)
	ENAX a 1 offset(0,60)
	ENAX a 1 offset(0,66)
	ENAX a 1 offset(0,72)
	ENAX a 1 offset(0,82)
	tnt1 a 4
	boss x 0 A_TakeInventory("lanzalaputog",1)
	tmt1 a 0 offset(0,32)
	boss a 0 A_GunFlash("thorwgrenadewacho")
	tnt1 aaaaaa 8
	ENAX a 1 offset(0,69)
	ENAX a 1 offset(0,66)
	ENAX a 1 offset(0,48)
	ENAX a 1 offset(0,42)
	ENAX a 1 offset(0,36)
	ENAX a 1 offset(0,34)
	ENAX a 1 offset(0,33)
	ENAX a 1 offset(0,32)
		boss x 0 A_TakeInventory("lanzalaputog",1)
		boss a 0 A_GunFlash("CrossHair")
	goto ready

DawnForDaRoll:
		ENAX a 1 offset(0,33)
	    ENAX a 1 offset(0,34)
	    ENAX a 1 offset(0,36)
		ENAX a 1 offset(0,48)
		ENAX a 1 offset(0,54)
		ENAX a 1 offset(0,66)
		ENAX a 1 offset(0,82)
		fast a 0 A_JumpIfInventory("RunCheckItem",1,"startrun")
		fast a 0 A_JumpIfInventory("MakeARoll",1,"RollingStones")
		Goto AltoLevanteTieneElGil
		
SosReDawnWacho:
		ENAX a 1 offset(0,33)
	    ENAX a 1 offset(0,34)
	    ENAX a 1 offset(0,36)
		ENAX a 1 offset(0,42)
		ENAX a 1 offset(0,48)
		ENAX a 1 offset(0,54)
		ENAX a 1 offset(0,60)
		ENAX a 1 offset(0,66)
		ENAX a 1 offset(0,72)
		ENAX a 1 offset(0,82)
	Goto ItemCheck
	
AltoLevanteTieneElGil:
		boss a 0 ACS_NamedExecuteAlways("SetPlayerSpeed",0,30)
		ENAX a 1 offset(0,69)
		ENAX a 1 offset(0,66)
		ENAX a 1 offset(0,48)
		ENAX a 1 offset(0,42)
		ENAX a 1 offset(0,36)
		ENAX a 1 offset(0,34)
		ENAX a 1 offset(0,33)
		ENAX a 1 offset(0,32)
		boss x 0 A_TakeInventory("MakeARoll",1)
		boss a 0 A_GunFlash("CrossHair")
	Goto Ready


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


	Ready:
	  boss a 0 ACS_NamedExecuteAlways("SetPlayerSpeed",0,30)
	  boss a 0 ACS_NamedExecute("RCorrectorACS")
	  fast a 0 A_JumpIfInventory("PUNCHIN",1,"ALASPINASWACHO")
	  fast a 0 A_JumpIfInventory("MakeARoll",1,"DawnForDaRoll")
	  fast a 0 A_JumpIfInventory("UsoBASE",1,"SosReDawnWacho")
	  fast a 0 A_JumpIfInventory("RunCheckItem",1,"DawnForDaRoll")
	  fast a 0 A_JumpIfInventory("lanzalaputog",1,"grenadetr")
	  ENAX A 1 A_WeaponReady(WRF_ALLOWUSER1|WRF_ALLOWUSER2|WRF_ALLOWUSER3)
	  Loop
	Deselect:
	  TNT1 A 0 A_JumpIfInventory("RepairToken",1,"Rselect")
	  ENAX A 1 A_Lower
	  TNT1 A 0 A_TakeInventory("RepairToken",1)
	  22PS A 0 A_TakeInventory("PDAAxe",1)
	  ENAX A 1 A_Lower
	  Loop
	RSelect:
	  TNT1 A 0 A_TakeInventory("RepairToken")
	  TNT1 A 0 A_Print("Declined.")
	  TNT1 A 0 A_PlaySound("items/repairdont",0)
	  Goto Deselect+1
	Select:
	  ENAX A 1 A_Raise
	  22PS A 0 A_GiveInventory("PDAAxe",1)
	  ENAX A 1 A_Raise
	  Loop
	Fire:
	  ENAX A 0 A_JumpIfInventory("ZerkMode", 1, "Berserkified")
	Normal:
	  ENAX B 4
	  ENAX CDE 4
	  TNT1 A 15
	Proceed:
	  ENAX F 4 A_Refire
	  TNT1 A 0 Radius_Quake(3,15,0,25,0)
	  ENAX G 1 A_PlaySound("FORCE",1,1.0)
	  ENAX HI 0
	  ENAX J 0 A_CustomPunch(110+random(50, 50), 1, 0, "AxeHitPuff", 85)
	  ENAX KLTU 1
	  TNT1 A 16
	  ENAX MNOPRS 3
	  ENAX A 2
	  Goto Ready
	Hold:
	  ENAX A 0 A_JumpIfInventory("ZerkMode", 1, "Hold2")
	  ENAX F 1
	  Goto Proceed
	 
	  AltFire:
		fast a 0 A_JumpIfInventory("ColtRELOAD",1,"cargando")
		boss a 0 offset(0,34)
		fast a 0 A_JumpIfInventory("ZOOMED",1,"ZReady")
	Goto Ready
SACAELburst:
		boss a 0 A_Print("SEMI FIRE")
		fast a 0 A_JumpIfInventory("ZOOMED",1,"ZReady")
	Goto Ready	
  }
}


ACTOR AxeHitPuff : BulletPuff
{
  +PUFFONACTORS
  //+NOEXTREMEDEATH --Uncomment and remove this message to prevent gibs
  SeeSound "weapons/axecut"
  AttackSound "weapons/axebang"
  ActiveSound "weapons/silent"
  States
  {
  Spawn:
    PUFF ABCD 4
    Stop
  }
}