Upvote Upvoted 0 Downvote Downvoted
Help me with my HUD please!
posted in Customization
1
#1
0 Frags +

I've been trying for a few weeks now to customize my HUD so that the health value turns a certain color when at a certain amount of health. I would very much appreciate if anyone could help me.

I've been trying for a few weeks now to customize my HUD so that the health value turns a certain color when at a certain amount of health. I would very much appreciate if anyone could help me.
2
#2
1 Frags +

most custom huds have colour labelled overheal/buff/hp bonus or something in that sense in /resource/clientscheme, change that
if not, go to /scripts/hudanimations_tf, under "event HudHealthBonusPulse" find "PlayerStatusHealthValue" and change the fgcolour to desired one

most custom huds have colour labelled overheal/buff/hp bonus or something in that sense in /resource/clientscheme, change that
if not, go to /scripts/hudanimations_tf, under "event HudHealthBonusPulse" find "PlayerStatusHealthValue" and change the fgcolour to desired one
3
#3
0 Frags +

I'm gonna try that.

I'm gonna try that.
4
#4
0 Frags +

It didn't change anything. Try looking at my hudanimations, maybe you can figure out whats wrong:

event HudHealthBonusPulse
{
Animate PlayerStatusHealthValue FgColor "Green" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImageBG Alpha "150" Linear 0.0 0.5
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
RunEvent HudHealthBonusPulseLoop 0.4
}

event HudHealthBonusPulseStop
{
StopEvent HudHealthBonusPulse 0.0
StopEvent HudHealthBonusPulseLoop 0.0
Animate PlayerStatusHealthBonusImageBG Alpha "0" Linear 0.0 0.0
Animate G_PlayerStatusHealthValue FgColor "G_HealthValue" Linear 0.0 0.0
}

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

event HudHealthDyingPulse
{
Animate G_PlayerStatusHealthValue FgColor "G_LowHealthValue" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "50" Linear 0.2 0.4

RunEvent HudHealthDyingPulseLoop 0.4
}

event HudHealthDyingPulseStop
{
Animate G_PlayerStatusHealthValue FgColor "G_HealthValue" Linear 0.0 0.0
StopEvent HudHealthDyingPulse 0.0
StopEvent HudHealthDyingPulseLoop 0.0
}

It didn't change anything. Try looking at my hudanimations, maybe you can figure out whats wrong:

event HudHealthBonusPulse
{
Animate PlayerStatusHealthValue FgColor "Green" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImageBG Alpha "150" Linear 0.0 0.5
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
RunEvent HudHealthBonusPulseLoop 0.4
}

event HudHealthBonusPulseStop
{
StopEvent HudHealthBonusPulse 0.0
StopEvent HudHealthBonusPulseLoop 0.0
Animate PlayerStatusHealthBonusImageBG Alpha "0" Linear 0.0 0.0
Animate G_PlayerStatusHealthValue FgColor "G_HealthValue" Linear 0.0 0.0
}

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

event HudHealthDyingPulse
{
Animate G_PlayerStatusHealthValue FgColor "G_LowHealthValue" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "50" Linear 0.2 0.4

RunEvent HudHealthDyingPulseLoop 0.4
}

event HudHealthDyingPulseStop
{
Animate G_PlayerStatusHealthValue FgColor "G_HealthValue" Linear 0.0 0.0
StopEvent HudHealthDyingPulse 0.0
StopEvent HudHealthDyingPulseLoop 0.0
}
5
#5
1 Frags +

Animate PlayerStatusHealthValue FgColor "Green" Linear 0.0 0.0

change the green to the colour you want

Animate PlayerStatusHealthValue FgColor "Green" Linear 0.0 0.0

change the green to the colour you want
6
#6
0 Frags +

Green is the color I want.

Green is the color I want.
7
#7
0 Frags +

Here's my hud's link:

https://www.dropbox.com/sh/6q0jxn5y3qvc0hp/AACYVLiykbF0axB-WvwhknpSa?dl=0

Here's my hud's link:

https://www.dropbox.com/sh/6q0jxn5y3qvc0hp/AACYVLiykbF0axB-WvwhknpSa?dl=0
8
#8
-1 Frags +

PlayerStatusHealthValue sets the colour, the health will change the colour when buffed ( HudHealthBonusPulse) or under set % of hp (can be set in hudplayerheath) HudHealthDyingPulse

PlayerStatusHealthValue sets the colour, the health will change the colour when buffed ( HudHealthBonusPulse) or under set % of hp (can be set in hudplayerheath) HudHealthDyingPulse
9
#9
0 Frags +

It's just not working..
I hope someone can just fix it for me.

It's just not working..
I hope someone can just fix it for me.
10
#10
1 Frags +
creeprootIt's just not working..
I hope someone can just fix it for me.

then say what you want
do you want to change the colour when buffed or when low

[quote=creeproot]It's just not working..
I hope someone can just fix it for me.[/quote]
then say what you want
do you want to change the colour when buffed or when low
11
#11
1 Frags +

When you have a line like:

Animate PlayerStatusHealthValue FgColor "Green" Linear 0.0 0.0

The color "Green" is actually looking for a clientscheme definition with that name. You don't have any clientscheme definition named "Green", so it fails.

Try to do something more along the lines of:

Animate PlayerStatusHealthValue FgColor "0 255 0 255" Linear 0.0 0.0

You could also change the clientscheme to include green, or change them to use a clientscheme definition that exists, but just using the raw RGBA numbers are fine too.

You should use the hud editing questions thread in the future by the way:
http://www.teamfortress.tv/19073/hud-editing-short-questions-quick-answers

When you have a line like:[code]Animate PlayerStatusHealthValue FgColor "Green" Linear 0.0 0.0[/code]The color "Green" is actually looking for a clientscheme definition with that name. You don't have any clientscheme definition named "Green", so it fails.

Try to do something more along the lines of:[code]Animate PlayerStatusHealthValue FgColor "0 255 0 255" Linear 0.0 0.0[/code]You could also change the clientscheme to include green, or change them to use a clientscheme definition that exists, but just using the raw RGBA numbers are fine too.

You should use the hud editing questions thread in the future by the way:
http://www.teamfortress.tv/19073/hud-editing-short-questions-quick-answers
12
#12
0 Frags +

@JarateKing I have tried that. In my clientscheme I put a definition of green to be "0 255 0 255". Still nothing.
@degu I wanted a yellow for low health and light green for overheal

@JarateKing I have tried that. In my clientscheme I put a definition of green to be "0 255 0 255". Still nothing.
@degu I wanted a yellow for low health and light green for overheal
13
#13
1 Frags +
creeproot@JarateKing I have tried that. In my clientscheme I put a definition of green to be "0 255 0 255". Still nothing.
@degu I wanted a yellow for low health and light green for overheal

Did you restart tf2 because you need to restart tf2 for the changes to be shown.

[quote=creeproot]@JarateKing I have tried that. In my clientscheme I put a definition of green to be "0 255 0 255". Still nothing.
@degu I wanted a yellow for low health and light green for overheal[/quote]

Did you restart tf2 because you need to restart tf2 for the changes to be shown.
14
#14
0 Frags +
creeproot@JarateKing I have tried that. In my clientscheme I put a definition of green to be "0 255 0 255". Still nothing.
@degu I wanted a yellow for low health and light green for overheal
event HudHealthBonusPulse
{
Animate	PlayerStatusHealthValue	FgColor	"0 255 0 255"	Linear 0.0 0.0
Animate	PlayerStatusHealthBonusImageBG	Alpha	"150"	Linear 0.0 0.5
Animate	PlayerStatusHealthBonusImage Alpha	"255"	Linear 0.0 0.2
Animate	PlayerStatusHealthBonusImage Alpha	"0"	Linear 0.2 0.4
RunEvent HudHealthBonusPulseLoop	0.4
}
event HudHealthDyingPulse
{
Animate	PlayerStatusHealthValue	FgColor	"255 255 0 255"	Linear 0.0 0.0
Animate	PlayerStatusHealthBonusImage Alpha	"255"	Linear 0.0 0.2
Animate	PlayerStatusHealthBonusImage Alpha	"50"	Linear 0.2 0.4

RunEvent HudHealthDyingPulseLoop	0.4
}

what does that mean "nothing"

[quote=creeproot]@JarateKing I have tried that. In my clientscheme I put a definition of green to be "0 255 0 255". Still nothing.
@degu I wanted a yellow for low health and light green for overheal[/quote]

[code]event HudHealthBonusPulse
{
Animate PlayerStatusHealthValue FgColor "0 255 0 255" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImageBG Alpha "150" Linear 0.0 0.5
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
RunEvent HudHealthBonusPulseLoop 0.4
}
[/code][code]
event HudHealthDyingPulse
{
Animate PlayerStatusHealthValue FgColor "255 255 0 255" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "50" Linear 0.2 0.4

RunEvent HudHealthDyingPulseLoop 0.4
}
[/code]
what does that mean "nothing"
15
#15
0 Frags +

@dego nothing happened. I'm gonna paste that now in my animation file.

@dego nothing happened. I'm gonna paste that now in my animation file.
16
#16
0 Frags +

Seems like none of these are working.. Guys, I think someone should just download the HUD and try it out in-game until they manage to make the colors change.

Seems like none of these are working.. Guys, I think someone should just download the HUD and try it out in-game until they manage to make the colors change.
17
#17
0 Frags +

oh i see where's the problem, create a .txt file called hudanimations_manifest.txt, put it into scripts and insert:

hudanimations_manifest

{
	"file"			"scripts/hudanimations.txt"
	"file"			"scripts/toonhudanimations.txt"
	"file"			"scripts/hudanimations_tf.txt"
}

you've done some customizations which resulted in the file missing

oh i see where's the problem, create a .txt file called hudanimations_manifest.txt, put it into scripts and insert:
[code]hudanimations_manifest

{
"file" "scripts/hudanimations.txt"
"file" "scripts/toonhudanimations.txt"
"file" "scripts/hudanimations_tf.txt"
}
[/code]
you've done some customizations which resulted in the file missing
18
#18
0 Frags +

will do

will do
19
#19
0 Frags +

I really hope this will work..

I really hope this will work..
20
#20
0 Frags +

;

;
21
#21
0 Frags +

there you go, fixed it. I just hadn't put hudpulsehealth stop :P thank you so so much!!

there you go, fixed it. I just hadn't put hudpulsehealth stop :P thank you so so much!!
22
#22
0 Frags +

still not fully fixed.. when i get overheal/hurt my health color remains the same after going into the cabinet.

animations:

event HudHealthBonusPulse
{
Animate PlayerStatusHealthValue FgColor "178 255 102 255" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImageBG Alpha "150" Linear 0.0 0.5
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
RunEvent HudHealthBonusPulseLoop 0.4
}

event HudHealthBonusPulseStop
{
StopEvent HudHealthBonusPulse 0.0
StopEvent HudHealthBonusPulseLoop 0.4
Animate PlayerStatusHealthBonusImageBG Alpha "0" Linear 0.0 0.0
Animate G_PlayerStatusHealthValue FgColor "G_HealthValue" Linear 0.0 0.0
}

event HudHealthDyingPulse
{
Animate PlayerStatusHealthValue FgColor "255 255 0 255" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4

RunEvent HudHealthDyingPulseLoop 0.4

}

event HudHealthDyingPulseStop
{
Animate G_PlayerStatusHealthValue FgColor "G_HealthValue" Linear 0.0 0.0
StopEvent HudHealthDyingPulse 0.0
StopEvent HudHealthDyingPulseLoop 0.0
}

still not fully fixed.. when i get overheal/hurt my health color remains the same after going into the cabinet.

animations:


event HudHealthBonusPulse
{
Animate PlayerStatusHealthValue FgColor "178 255 102 255" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImageBG Alpha "150" Linear 0.0 0.5
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
RunEvent HudHealthBonusPulseLoop 0.4
}

event HudHealthBonusPulseStop
{
StopEvent HudHealthBonusPulse 0.0
StopEvent HudHealthBonusPulseLoop 0.4
Animate PlayerStatusHealthBonusImageBG Alpha "0" Linear 0.0 0.0
Animate G_PlayerStatusHealthValue FgColor "G_HealthValue" Linear 0.0 0.0
}

event HudHealthDyingPulse
{
Animate PlayerStatusHealthValue FgColor "255 255 0 255" Linear 0.0 0.0
Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4

RunEvent HudHealthDyingPulseLoop 0.4


}

event HudHealthDyingPulseStop
{
Animate G_PlayerStatusHealthValue FgColor "G_HealthValue" Linear 0.0 0.0
StopEvent HudHealthDyingPulse 0.0
StopEvent HudHealthDyingPulseLoop 0.0
}
23
#23
0 Frags +

Alright, I just fixed it: just had to change "g_statushealthvalue" to just healtvalue. Thank you very very much degu!

Alright, I just fixed it: just had to change "g_statushealthvalue" to just healtvalue. Thank you very very much degu!
24
#24
6 Frags +

what a rollercoaster

what a rollercoaster
25
#25
0 Frags +

haha I know right?

haha I know right?
Please sign in through STEAM to post a comment.