Upvote Upvoted 1 Downvote Downvoted
hudanimations delay/other issues
posted in Customization
1
#1
0 Frags +

I am trying to change the color of my health using hudanimations_tf.txt but I am coming across some issues.

1) When going from normal to low, there is a delay and then the health sort of reloads as red.
2) When going from low to normal, the same delay happens.
3) I have it set to use a spline when going from overheal > normal but it seems to be splining at other times (can't seem to recreate at will)

Here is the relevant part of my hudanimations file:

//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		"OverhealGreen_Custom"	Linear 0.0 0.0

	RunEvent HudHealthBonusPulseLoop	0.4
}

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

event HudHealthBonusPulseStop
{
	StopEvent HudHealthBonusPulse 0.0
	StopEvent HudHealthBonusPulseLoop 0.0

	Animate PlayerStatusHealthValue		FgColor		"White_Custom"	Spline 0.0 0.25
}

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

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

	Animate PlayerStatusHealthValue			FgColor		"LowHealthRed_Custom"	Linear 0.0 0.0

	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 PlayerStatusHealthValue			FgColor		"White_Custom"		Linear 0.0 0.0
}
I am trying to change the color of my health using hudanimations_tf.txt but I am coming across some issues.

1) When going from normal to low, there is a delay and then the health sort of reloads as red.
2) When going from low to normal, the same delay happens.
3) I have it set to use a spline when going from overheal > normal but it seems to be splining at other times (can't seem to recreate at will)

Here is the relevant part of my hudanimations file:

[code]//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 "OverhealGreen_Custom" Linear 0.0 0.0

RunEvent HudHealthBonusPulseLoop 0.4
}

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

event HudHealthBonusPulseStop
{
StopEvent HudHealthBonusPulse 0.0
StopEvent HudHealthBonusPulseLoop 0.0

Animate PlayerStatusHealthValue FgColor "White_Custom" Spline 0.0 0.25
}

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

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

Animate PlayerStatusHealthValue FgColor "LowHealthRed_Custom" Linear 0.0 0.0

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 PlayerStatusHealthValue FgColor "White_Custom" Linear 0.0 0.0
}[/code]
2
#2
0 Frags +

in HudHealthBonusPulseStop you have

Animate PlayerStatusHealthValue FgColor "White_Custom" Spline 0.0 0.25
it should be
Animate PlayerStatusHealthValue FgColor "White_Custom" Linear 0.0 0.25

in HudHealthBonusPulseStop you have

Animate PlayerStatusHealthValue FgColor "White_Custom" Spline 0.0 0.25
it should be
Animate PlayerStatusHealthValue FgColor "White_Custom" Linear 0.0 0.25
3
#3
0 Frags +

Hm, changed it and still get the delay with the low health stuff, but now I can replicate the other fade. When going from low to normal it fades. Any ideas?

Hm, changed it and still get the delay with the low health stuff, but now I can replicate the other fade. When going from low to normal it fades. Any ideas?
4
#4
0 Frags +

So, when I change
Animate PlayerStatusHealthValue FgColor "White_Custom" Linear 0.0 0.25
to
Animate PlayerStatusHealthValue FgColor "White_Custom" Linear 0.0 0.0

all issues are fixed. Is there a reason that putting that small fade in when overheal is over causes all of these issues?

So, when I change
Animate PlayerStatusHealthValue FgColor "White_Custom" Linear 0.0 0.25
to
Animate PlayerStatusHealthValue FgColor "White_Custom" Linear 0.0 0.0

all issues are fixed. Is there a reason that putting that small fade in when overheal is over causes all of these issues?
5
#5
0 Frags +

Is anyone here experienced with hudanimations and can help?

Is anyone here experienced with hudanimations and can help?
Please sign in through STEAM to post a comment.