// Health Bonus Pulse
event HudHealthBonusPulse
{
	Animate	PlayerStatusHealthBonusImage 	Alpha		"255"			Linear 0.0 0.2
	Animate	PlayerStatusHealthBonusImage 	Alpha		"0"			Linear 0.2 0.4

	Animate PlayerStatusHealthValue		FgColor		"0 220 127 255"		Linear 0.0 0.2

	Animate PlayerStatusHealthValueTargetID	FgColor		"0 220 127 255"		Linear 0.0 0.2

	RunEvent HudHealthBonusPulseLoop	0.4
}

event HudHealthBonusPulseLoop
{
	RunEvent HudHealthBonusPulse				0.0
}

event HudHealthBonusPulseStop
{
	StopEvent HudHealthBonusPulse 0.0
	StopEvent HudHealthBonusPulseLoop 0.0
	
	Animate PlayerStatusHealthValue			FgColor		"255 255 255 255"		Accel 0.0 0.0	

	Animate PlayerStatusHealthValueTargetID		FgColor		"255 255 255 255"		Accel 0.0 0.0		
}

//===========================================

// Low Health Pulse
event HudHealthDyingPulse
{
	Animate	PlayerStatusHealthBonusImage 	Alpha		"255"			Linear 0.0 0.075
	Animate	PlayerStatusHealthBonusImage 	Alpha		"0"			Linear 0.125 0.075

	Animate PlayerStatusHealthValue		FgColor		"BrightYellow"		Linear 0.0 0.2

	Animate PlayerStatusHealthValueTargetID	FgColor		"BrightYellow"		Linear 0.0 0.2
	
	RunEvent HudHealthDyingPulseLoop	0.25
}

event HudHealthDyingPulseStop
{
	StopEvent HudHealthDyingPulse 0.0
	StopEvent HudHealthDyingPulseLoop 0.0

	Animate PlayerStatusHealthValue		FgColor		"255 255 255 255"		Accel 0.0 0.0	

	Animate PlayerStatusHealthValueTargetID	FgColor		"255 255 255 255"		Accel 0.0 0.0	
}

// Fix lingering health animations
event CompetitiveGame_RestoreChatWindow
{
	RunEvent HudHealthDyingPulseStop			0.1
	RunEvent HudHealthBonusPulseStop			0.1
}