ACTOR HPBAR
{
	Height 1
	Radius 1
	Scale 0.25
	+NOINTERACTION
	+CLIENTSIDEONLY
	+NOCLIP
	-SOLID
	+DONTBLAST
	Renderstyle Translucent
	states
    {
    Spawn:
	   HP32 C 0 NODELAY ACS_ExecuteAlways(705)
	Spawned:
       HP32 C -1  
       Loop
    HP32:
       HP32 C -1  
       Loop
    HP31:
       HP31 C -1  
       Loop
    HP30:
       HP30 C -1  
       Loop
    HP29:
       HP29 C -1  
       Loop
    HP28:
       HP28 C -1  
       Loop
    HP27:
       HP27 C -1  
       Loop
    HP26:
       HP26 C -1  
       Loop
    HP25:
       HP25 C -1  
       Loop
    HP24:
       HP24 C -1  
       Loop
    HP23:
       HP23 C -1  
       Loop
    HP22:
       HP22 C -1  
       Loop
    HP21:
       HP21 C -1  
       Loop
    HP20:
       HP20 C -1  
       Loop
    HP19:
       HP19 C -1  
       Loop
    HP18:
       HP18 C -1  
       Loop
    HP17:
       HP17 C -1  
       Loop
    HP16:
       HP16 C -1  
       Loop
    HP15:
       HP15 C -1  
       Loop
    HP14:
       HP14 C -1  
       Loop
    HP13:
       HP13 C -1  
       Loop
    HP12:
       HP12 C -1  
       Loop
    HP11:
       HP11 C -1  
       Loop
    HP10:
       HP10 C -1  
       Loop
    HP09:
       HP09 C -1  
       Loop
    HP08:
       HP08 C -1  
       Loop
    HP07:
       HP07 C -1  
       Loop
    HP06:
       HP06 C -1  
       Loop
    HP05:
       HP05 C -1  
       Loop
    HP04:
       HP04 C -1  
       Loop
    HP03:
       HP03 C -1  
       Loop
    HP02:
       HP02 C -1  
       Loop
    HP01:
       HP01 C -1  
       Loop
    HP00:
       HP00 C -1  
       Loop
    }
}

ACTOR HPBAR2
{
	Height 1
	Radius 1
	Scale 0.25
	+NOINTERACTION
	+CLIENTSIDEONLY
	+NOCLIP
	-SOLID
	+DONTBLAST
	Renderstyle Translucent
	states
    {
    Spawn:
	   HP32 B 0 NODELAY ACS_ExecuteAlways(705, 0, 1)
	Spawned:
       HP32 B -1 
       Loop
    HP32:
       HP32 B -1 
       Loop
    HP31:
       HP31 B -1 
       Loop
    HP30:
       HP30 B -1 
       Loop
    HP29:
       HP29 B -1 
       Loop
    HP28:
       HP28 B -1 
       Loop
    HP27:
       HP27 B -1 
       Loop
    HP26:
       HP26 B -1 
       Loop
    HP25:
       HP25 B -1 
       Loop
    HP24:
       HP24 B -1 
       Loop
    HP23:
       HP23 B -1 
       Loop
    HP22:
       HP22 B -1 
       Loop
    HP21:
       HP21 B -1 
       Loop
    HP20:
       HP20 B -1 
       Loop
    HP19:
       HP19 B -1 
       Loop
    HP18:
       HP18 B -1 
       Loop
    HP17:
       HP17 B -1 
       Loop
    HP16:
       HP16 B -1 
       Loop
    HP15:
       HP15 B -1 
       Loop
    HP14:
       HP14 B -1 
       Loop
    HP13:
       HP13 B -1 
       Loop
    HP12:
       HP12 B -1 
       Loop
    HP11:
       HP11 B -1 
       Loop
    HP10:
       HP10 B -1 
       Loop
    HP09:
       HP09 B -1 
       Loop
    HP08:
       HP08 B -1 
       Loop
    HP07:
       HP07 B -1 
       Loop
    HP06:
       HP06 B -1 
       Loop
    HP05:
       HP05 B -1 
       Loop
    HP04:
       HP04 B -1 
       Loop
    HP03:
       HP03 B -1 
       Loop
    HP02:
       HP02 B -1 
       Loop
    HP01:
       HP01 B -1 
       Loop
    HP00:
       HP00 B -1 
       Loop
    }
}

ACTOR HPBAR3
{
	Height 1
	Radius 1
	Scale 0.25
	+NOINTERACTION
	+CLIENTSIDEONLY
	+NOCLIP
	-SOLID
	+DONTBLAST
	Renderstyle Translucent
	states
    {
    Spawn:
	   //HP32 A 0 NODELAY ACS_ExecuteAlways(705, 0, 2)
       HP32 B -1  
       Loop
    HP32:
       HP32 B -1  
       Loop
    HP31:
       HP31 B -1  
       Loop
    HP30:
       HP30 B -1  
       Loop
    HP29:
       HP29 B -1  
       Loop
    HP28:
       HP28 B -1  
       Loop
    HP27:
       HP27 B -1  
       Loop
    HP26:
       HP26 B -1  
       Loop
    HP25:
       HP25 B -1  
       Loop
    HP24:
       HP24 B -1  
       Loop
    HP23:
       HP23 B -1  
       Loop
    HP22:
       HP22 B -1  
       Loop
    HP21:
       HP21 B -1  
       Loop
    HP20:
       HP20 B -1  
       Loop
    HP19:
       HP19 B -1  
       Loop
    HP18:
       HP18 B -1  
       Loop
    HP17:
       HP17 B -1  
       Loop
    HP16:
       HP16 B -1  
       Loop
    HP15:
       HP15 B -1  
       Loop
    HP14:
       HP14 B -1  
       Loop
    HP13:
       HP13 B -1  
       Loop
    HP12:
       HP12 B -1  
       Loop
    HP11:
       HP11 B -1  
       Loop
    HP10:
       HP10 B -1  
       Loop
    HP09:
       HP09 B -1  
       Loop
    HP08:
       HP08 B -1  
       Loop
    HP07:
       HP07 B -1  
       Loop
    HP06:
       HP06 B -1  
       Loop
    HP05:
       HP05 B -1  
       Loop
    HP04:
       HP04 B -1  
       Loop
    HP03:
       HP03 B -1  
       Loop
    HP02:
       HP02 B -1  
       Loop
    HP01:
       HP01 B -1  
       Loop
    HP00:
       HP00 B -1  
       Loop
    }
}

Actor HPBARINIT : Custominventory
{
	Inventory.MaxAmount 0
	+Inventory.AUTOACTIVATE
	states
	{
		Use:
		TNT1 A 0 ACS_ExecuteAlways(705)
		Stop
	}
}

Actor HPBARSPAWN : Custominventory
{
	+Inventory.AUTOACTIVATE
	States
	{
	Use:
		TNT1 A 0 A_SpawnItemEx("HPBAR",0,0,56,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,1700+ACS_ExecuteWithResult(WOC_DECORATE,STATS,PLAYERNUM))
		Stop
	}
}

/*Actor HPBARWARP : Custominventory
{
	+Inventory.AUTOACTIVATE
	var int user_height;
	States
	{
	Use:
		TNT1 A 0 A_Warp(AAPTR_MASTER, 0, 0, user_height+1, 0, WARPF_NOCHECKPOSITION|WARPF_COPYINTERPOLATION)
		Stop
	}
}*/