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


// Active Timer BG Pulse
event ActiveTimerBGPulse
{
	Animate	ActiveTimerBG 					Alpha		"0"					Linear 0.1 0.1
	Animate	ActiveTimerBG 					Alpha		"255"				Linear 0.3 0.1
	
	Animate	ActiveTimerBG 					Alpha		"0"					Linear 0.5 0.1
	Animate	ActiveTimerBG 					Alpha		"255"				Linear 0.7 0.1
	
	Animate	ActiveTimerBG 					Alpha		"0"					Linear 0.9 0.1
	Animate	ActiveTimerBG 					Alpha		"255"				Linear 1.1 0.1
	
}

event ActiveTimerHighlight
{
	Animate TimePanelValue					FgColor		"245 245 245 235"	Linear 0.0 0.1
	
	
}

event ActiveTimerDim
{
	// Slow fade out
	Animate TimePanelValue 					FgColor		"245 245 245 110"	Linear 0.0 0.2
	
}



//Health Bonus Pulse
event HudHealthBonusPulse
{
	Animate	PlayerStatusHealthValueSpectator 							BgColor		"HighColor"					Linear 0.0 0.0
	Animate	PlayerStatusHealthBonusImage 	Alpha		"50"					Linear 0.0 0.075
	Animate	PlayerStatusHealthBonusImage 	Alpha		"50"					Linear 0.125 0.075
	Animate	HPReal 							FgColor		"47 185 123 240"	Linear 0.0 0.0
	Animate PlayerStatusHealthValueBG				FgColor			"HighColor"		Linear 0.0 0.0
	
	Animate	PlayerStatusHealthValueMain 	FgColor		"White"	Linear 0.0 0.0
	Animate PlayerStatusHealthValueMainShadowHiddenExtra	Alpha	"0"		Linear	0.0 0.0
	
	//STANDARD STYLE
	Animate	PlayerStatusHealthValueMain 	FgColor		"White"			Linear 0.0 0.0
	
	//M0RESHADOW STYLE
	Animate m0reHealth						Alpha 		"255" 								Linear 	0.0		0.0
	Animate m0reHealthShadow					FgColor 	"HighColor" 						Linear 	0.0		0.0
	Animate m0reHealthShadowExtra					Alpha 		"255" 								Linear 	0.0		0.0
	
	//SHADOW STYLE
	Animate Health_Shadow						Alpha 		"255" 								Linear 	0.0		0.0
	Animate Health_Shadow_Buff					FgColor 	"HighColor" 						Linear 	0.0		0.0
	Animate Health_Shadow_Buff					Position 	"-1 -1" 						Linear 	0.0		0.0
	Animate Health_Shadow_Extra					FgColor 		"0 0 0 255" 								Linear 	0.0		0.0
	
	//INVERSE STYLE
	Animate Health_Inverse						Alpha 		"255" 								Linear 	0.0		0.0
	Animate Health_Inverse_Buff					FgColor 	"0 0 0 255" 						Linear 	0.0		0.0
	Animate Health_Inverse_Buff					Position 	"-1 -1" 						Linear 	0.0		0.0
	Animate Health_Inverse_Extra					FgColor 		"HighColor" 								Linear 	0.0		0.0
	
	//MINIMAL STYLE
	Animate HealthMinimal		FgColor		"HighColor"	Linear 0.0	0.0
	
	//BOX STYLE
	Animate	HealthBoxBG		BgColor		"HighColor"		Accel 0.0 0.0
	Animate	HealthBoxBG		Alpha		"200"		Accel 0.0 0.2
	Animate	HealthBoxBG		Alpha		"0"		Accel 0.2 0.4
	
	Animate	BuffBG 							Alpha		"255"				Linear 0.0 0.0
	Animate	BuffBG2							Alpha		"200"				Linear 0.0 0.0

	RunEvent HudHealthBonusPulseLoop		0.25
}

// call to loop HudHealthBonusPulse
event HudHealthBonusPulseLoop
{
	RunEvent HudHealthBonusPulse 			0.0
}

event HudHealthBonusPulseStop
{
	StopEvent HudHealthBonusPulse 			0.0
	StopEvent HudHealthBonusPulseLoop 		0.0
	Animate	BuffBG 							Alpha		"0"					Linear 0.0 0.0
	Animate	PlayerStatusHealthValueSpectator 							BgColor		"CollyHudTransparentGray"					Linear 0.0 0.0
	Animate	BuffBG2 						Alpha		"0"					Linear 0.0 0.0
	Animate	HPReal 							FgColor		"220 220 220 250"	Linear 0.0 0.0
	Animate PlayerStatusHealthValueBG				FgColor			"0 0 0 200"		Linear 0.0 0.0
	Animate	PlayerStatusHealthValueMain 	FgColor		"0 0 0 255"			Linear 0.0 0.0
	
	//STANDARD STYLE
	Animate	PlayerStatusHealthValueMain 	FgColor		"White"			Linear 0.0 0.0
	
	//M0RESHADOW STYLE
	Animate m0reHealth						Alpha 		"255" 								Linear 	0.0		0.0
	Animate m0reHealthShadow					FgColor 	"0 0 0 255" 						Linear 	0.0		0.0
	Animate m0reHealthShadowExtra					Alpha 		"0" 								Linear 	0.0		0.0
	
	//SHADOW STYLE
	Animate Health_Shadow						Alpha 		"255" 								Linear 	0.0		0.0
	Animate Health_Shadow_Buff					FgColor 	"0 0 0 255" 						Linear 	0.0		0.0
	Animate Health_Shadow_Buff					Position 	"-2 -2" 						Linear 	0.0		0.0
	Animate Health_Shadow_Extra					FgColor 		"0 0 0 0" 								Linear 	0.0		0.0
	
	//INVERSE STYLE
	Animate Health_Inverse						Alpha 		"255" 								Linear 	0.0		0.0
	Animate Health_Inverse_Buff					FgColor 	"0 0 0 255" 						Linear 	0.0		0.0
	Animate Health_Inverse_Buff					Position 	"-2 -2" 						Linear 	0.0		0.0
	Animate Health_Inverse_Extra					FgColor 		"0 0 0 0" 								Linear 	0.0		0.0
	
	//MINIMAL STYLE
	Animate HealthMinimal		FgColor		"White"	Linear 0.0	0.0
	
	//BOX STYLE
	Animate	HealthBoxBG		BgColor		"Blank"		Accel 0.0 0.0
	Animate	HealthBoxBG		Alpha		"0"		Accel 0.0 0.0
	
	
	Animate PlayerStatusHealthValueMainShadowHiddenExtra	Alpha	"0"		Linear	0.0 0.0
}

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

//Health Dying Pulse
event HudHealthDyingPulse
{
	Animate	PlayerStatusHealthValueSpectator 							BgColor		"LowColor"					Linear 0.0 0.0
	Animate	PlayerStatusHealthValueTourn2 	FgColor		"LowColor"			Linear 0.0 0.0
	Animate	PlayerStatusHealthBonusImage 	Alpha		"160"				Linear 0.0 0.075
	Animate	PlayerStatusHealthBonusImage			Alpha		"165"									Linear	0.125	0.075
	Animate	HurtBG 							Alpha		"255"				Linear 0.0 0.0

	//STANDARD STYLE
	Animate	PlayerStatusHealthValueMain 	FgColor		"White"			Linear 0.0 0.0
	
	//M0RESHADOW STYLE
	Animate m0reHealth						Alpha 		"255" 								Linear 	0.0		0.0
	Animate m0reHealthShadow					FgColor 	"LowColor" 						Linear 	0.0		0.0
	Animate m0reHealthShadowExtra					Alpha 		"255" 								Linear 	0.0		0.0

	//SHADOW STYLE
	Animate Health_Shadow						Alpha 		"255" 								Linear 	0.0		0.0
	Animate Health_Shadow_Buff					FgColor 	"LowColor" 						Linear 	0.0		0.0
	Animate Health_Shadow_Buff					Position 	"-1 -1" 						Linear 	0.0		0.0
	Animate Health_Shadow_Extra					FgColor 		"0 0 0 255" 								Linear 	0.0		0.0

	//INVERSE STYLE
	Animate Health_Inverse						Alpha 		"255" 								Linear 	0.0		0.0
	Animate Health_Inverse_Buff					FgColor 	"0 0 0 255" 						Linear 	0.0		0.0
	Animate Health_Inverse_Buff					Position 	"-1 -1" 						Linear 	0.0		0.0
	Animate Health_Inverse_Extra					FgColor 		"LowColor" 								Linear 	0.0		0.0

	//MINIMAL STYLE
	Animate HealthMinimal		FgColor		"LowColor"	Linear 0.0	0.0

	//BOX STYLE
	Animate	HealthBoxBG		BgColor		"LowColor"		Accel 0.0 0.0
	Animate	HealthBoxBG		Alpha		"200"		Accel 0.0 0.2
	Animate	HealthBoxBG		Alpha		"0"		Accel 0.2 0.4


	RunEvent HudHealthDyingPulseLoop		0.25
}

// call to loop HudHealthDyingPulse
event HudHealthDyingPulseLoop
{
	RunEvent HudHealthDyingPulse 			0.0
}

event HudHealthDyingPulseStop
{
	StopEvent HudHealthDyingPulse			0.0
	StopEvent HudHealthDyingPulseLoop 		0.0
	Animate	PlayerStatusHealthValueSpectator 							BgColor		"CollyHudTransparentGray"					Linear 0.0 0.0
	Animate	HurtBG 							Alpha		"0"					Linear 0.0 0.0
	Animate	PlayerStatusHealthBonusImage 	Alpha		"0"					Linear 0.0 0.0
	Animate	PlayerStatusHealthValueTourn2 	FgColor		"White"			Linear 0.0 0.0

	//STANDARD STYLE
	Animate	PlayerStatusHealthValueMain 	FgColor		"White"			Linear 0.0 0.0

	//M0RESHADOW STYLE
	Animate m0reHealth						Alpha 		"255" 								Linear 	0.0		0.0
	Animate m0reHealthShadow					FgColor 	"0 0 0 255" 						Linear 	0.0		0.0
	Animate m0reHealthShadowExtra					Alpha 		"0" 								Linear 	0.0		0.0

	//SHADOW STYLE
	Animate Health_Shadow						Alpha 		"255" 								Linear 	0.0		0.0
	Animate Health_Shadow_Buff					FgColor 	"0 0 0 255" 						Linear 	0.0		0.0
	Animate Health_Shadow_Buff					Position 	"-2 -2" 						Linear 	0.0		0.0
	Animate Health_Shadow_Extra					FgColor 		"0 0 0 0" 								Linear 	0.0		0.0

	//INVERSE STYLE
	Animate Health_Inverse						Alpha 		"255" 								Linear 	0.0		0.0
	Animate Health_Inverse_Buff					FgColor 	"0 0 0 255" 						Linear 	0.0		0.0
	Animate Health_Inverse_Buff					Position 	"-2 -2" 						Linear 	0.0		0.0
	Animate Health_Inverse_Extra					FgColor 		"0 0 0 0" 								Linear 	0.0		0.0

	//MINIMAL STYLE
	Animate HealthMinimal		FgColor		"White"	Linear 0.0	0.075

	//BOX STYLE
	Animate	HealthBoxBG		BgColor		"Blank"		Accel 0.0 0.0
	Animate	HealthBoxBG		Alpha		"0"		Accel 0.0 0.0

}

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

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

event HudLowAmmoPulse
{
	Animate	HudWeaponLowAmmoImage			Alpha		"80"				Linear 0.0 0.075
	Animate	HudWeaponLowAmmoImage			Alpha		"255"				Linear 0.125 0.075
	Animate	AmmoInClip								FgColor		"LowColor"					Linear	0.0		0.075
	Animate	AmmoInClip								FgColor		"White"					Linear	0.125	0.075

	Animate	AmmoInReserve							FgColor		"LowColor"					Linear	0.0		0.075
	Animate	AmmoInReserve							FgColor		"White"					Linear	0.125	0.075

	Animate	AmmoNoClip								FgColor		"LowColor"					Linear	0.0		0.075
	Animate	AmmoNoClip								FgColor		"White"					Linear	0.125	0.075

	RunEvent HudLowAmmoPulseLoop			0.25
}

// call to loop HudLowAmmoPulse
event HudLowAmmoPulseLoop
{
	RunEvent HudLowAmmoPulse 				0.0
}

event HudLowAmmoPulseStop
{
	StopEvent HudLowAmmoPulse 				0.0
	StopEvent HudLowAmmoPulseLoop 			0.0
	Animate	HudWeaponAmmoBGLow				Alpha		"0"					Linear 0.0 0.0
	Animate	AmmoInReserve					FgColor		"White"	Linear 0.0 0.0
	Animate	AmmoInClip						FgColor		"White"			Linear 0.0 0.0
	Animate	AmmoNoClip						FgColor		"White"			Linear 0.0 0.0
}

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

// Flash the medic charge hud when we have full charge

event HudMedicCharged
{
    Animate              ChargeLabel                    fgcolor            HighColor            Linear            0              0.0
    Animate              ChargeMeter                    fgcolor            HighColor            Linear            0              0.0


    Animate              ChargeLabel2                    fgcolor            White            Linear            0              0.0
    Animate              ChargeLabelShadow                    fgcolor            "HighColor"            Linear            0.0           0.0
    Animate              ChargeLabelShadow                    Position 	"-1 -1"            Linear            0.0          0.0
    Animate              ChargeLabelShadowExtra                    fgcolor            "0 0 0 255"            Linear            0.0            0.0

	RunEvent HudMedicChargedLoop			0.6
}

// call to loop HudHealthBonusPulse
event HudMedicChargedLoop
{
	RunEvent HudMedicCharged 				0.0
}

event HudMedicChargedStop
{
	StopEvent HudMedicCharged 				0.0
	StopEvent HudMedicChargedLoop 			0.0


	Animate	ChargeLabel 					FgColor		"White"	Linear 0.0 0.0
    Animate              ChargeLabelShadow                    fgcolor            "0 0 0 255"            Linear            0.0           0.0
    Animate              ChargeLabelShadow                    Position 	"-2 -2"            Linear            0.0          0.0
    Animate              ChargeLabelShadowExtra                    fgcolor            "0 0 0 0"            Linear            0.0            0.0

	Animate	ChargeMeter 					FgColor		"216 216 216 255"	Linear 0.0 0.0001
}

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


event MenuOpen
{
	StopEvent	MenuClose 0.2

	// fade in
	Animate HudMenu							Alpha 			"255"			Accel 0.0 0.2
	Animate HudMenu 						SelectionAlpha 	"255"			Accel 0.0 0.2
	Animate HudMenu 						FgColor			"tanlight"		Accel 0.0 0.2
	Animate HudMenu 						BgColor			"tanlight"		Accel 0.0 0.2
	Animate HudMenu 						MenuColor		"tanlight"		Accel 0.0 0.2
	Animate HudMenu 						ItemColor		"0 0 0 100"		Accel 0.0 0.0
	Animate HudMenu 						TextScan		"0"				Accel 0.0 0.0

	// Undo any blur
	Animate HudMenu							Blur			"1"				Linear	0	0
	RunEvent LevelInitAny 					0.2
}

event MenuClose
{
	// Hide it
	Animate HudMenu 						Alpha 			"0" 			Accel 0.0 0.4
	Animate HudMenu 						SelectionAlpha 	"0" 			Accel 0.0 0.4
	Animate HudMenu 						FgColor			"tanlight" 		Accel 0.0 0.4
	Animate HudMenu 						MenuColor		"tanlight" 		Accel 0.0 0.4
	Animate HudMenu 						ItemColor		"tanlight" 		Accel 0.0 0.4
	RunEvent LevelInitAny 					0.2
}


event TeamStatus_PlayerDead
{
	SetVisible 	SkullPanel  																				1 0
	Animate 	SkullPanel 							ypos 		"29" 								Accel 	0.1 	0.4
}
event TeamStatus_PlayerAlive
{
	Animate 	SkullPanel 							ypos 		"-30" 								Accel 	0.1		0.2
}

// Spy Disguise
event HudSpyDisguiseFadeIn
{
	RunEvent HudSpyDisguiseChanged		0.0
	Animate PlayerStatusSpyImage		Alpha		"255"				Linear 0.9	0.1
}

event HudSpyDisguiseFadeOut
{
	RunEvent HudSpyDisguiseChanged		0.0
	Animate PlayerStatusSpyImage		Alpha		"0"					Linear 0.9	0.1
}

event HudSpyDisguiseChanged
{
	Animate	PlayerStatusSpyOutlineImage	Alpha		"200"				Linear 0.0 0.2
	Animate	PlayerStatusSpyOutlineImage	Position	"c-350 r175"		Linear 0.0 0.2
	Animate	PlayerStatusSpyOutlineImage	Size		"150 150"			Linear 0.0 0.2

	RunEvent HudSpyDisguiseHide			0.7
}