|
|
|
|
#1 |
![]() Join Date: Sep 2011
Reputation: 5
Posts: 215
|
Another Question About Custom HUDs
Does any HUD expert actually know how to make it so that the health number turns blue when overhealed and red when hurt significantly?
Kind of like Garm3nhud. I read Flame's guide on editing, but the file corresponding to the text only gives the color option once and not under specific conditions. Help of any sort would be appreciated. http://code.google.com/p/flamehud/do...D.pdf&can=2&q= Link to his guide. |
|
|
|
|
|
#2 |
![]() Join Date: Jun 2011
Reputation: 77
Posts: 199
|
Something like this?
Modify event HudHealthBonusPulse, event HudHealthBonusPulseStop, event HudHealthDyingPulse, and event HudHealthDyingPulseLoop in scripts/HudAnimations_tf.txt to look something like this. 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 "0 0 255 255" Linear 0.0 0.2
Animate PlayerStatusHealthValue FgColor "15 15 240 255" Linear 0.2 0.4
Animate PlayerStatusHealthValue2 FgColor "0 0 255 255" Linear 0.0 0.2
Animate PlayerStatusHealthValue2 FgColor "15 15 240 255" Linear 0.2 0.4
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 "TanLight" Linear 0.0 0.0
Animate PlayerStatusHealthValue2 FgColor "TanLight" Linear 0.0 0.0
}
//===========================================
//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 "255 0 0 255" Linear 0.0 0.075
Animate PlayerStatusHealthValue FgColor "240 35 15 255" Linear 0.125 0.075
Animate PlayerStatusHealthValue2 FgColor "255 35 15 255" Linear 0.0 0.075
Animate PlayerStatusHealthValue2 FgColor "215 35 15 255" Linear 0.125 0.075
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 "TanLight" Linear 0.0 0.0
Animate PlayerStatusHealthValue2 FgColor "TanLight" Linear 0.0 0.0
}
Last edited by Just_A_Gamer: 08-09-2012 at 03:06 PM. |
|
|
|
|
|
#3 |
![]() Join Date: Sep 2011
Reputation: 5
Posts: 215
|
It works awesomely, +rep. The blue's a bit too blue. How do I change it?
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|