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.
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
if not, go to /scripts/hudanimations_tf, under "event HudHealthBonusPulse" find "PlayerStatusHealthValue" and change the fgcolour to desired one
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
}
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
}
Animate PlayerStatusHealthValue FgColor "Green" Linear 0.0 0.0
change the green to the colour you want
change the green to the colour you want
Here's my hud's link:
https://www.dropbox.com/sh/6q0jxn5y3qvc0hp/AACYVLiykbF0axB-WvwhknpSa?dl=0
https://www.dropbox.com/sh/6q0jxn5y3qvc0hp/AACYVLiykbF0axB-WvwhknpSa?dl=0
PlayerStatusHealthValue sets the colour, the health will change the colour when buffed ( HudHealthBonusPulse) or under set % of hp (can be set in hudplayerheath) HudHealthDyingPulse
It's just not working..
I hope someone can just fix it for me.
I hope someone can just fix it for me.
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
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
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
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
@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
@degu I wanted a yellow for low health and light green for overheal
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.
@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.
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"
@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"
@dego nothing happened. I'm gonna paste that now in my animation file.
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.
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
[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
there you go, fixed it. I just hadn't put hudpulsehealth stop :P thank you so so much!!
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
}
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
}