Forum
HUD Health Value
Created 15th July 2010 @ 10:16
Add A Reply Pages: 1
Is there a way, and can someone give me a hand, to make the health value change color when buffed and low.
I’m using a modded out m0re
http://www.easilysharing.com/images/41017795453930200645.jpg
dude you need a new pc or gfx card! gl m8!
awesome! how did you turn the graphics so low?
(And sry, i can’t help you dude :( )
Quoted from Peign slays dragons
awesome! how did you turn the graphics so low?
(And sry, i can’t help you dude :( )
Seems to be mostly due to mat_picmip 4 (mat_filtertextures 1).
You need to open HudAnimations_tf which is in your scripts folder and find the part in m0res hud similar to this, only m0re only animates the health cross and not the numbers.
Replace with this.
//===========================================
//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.0001
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” Linear 0.0 0.0001
}
//===========================================
//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 “white” Linear 0.125 0.075
Animate PlayerStatusHealthValue FgColor “HUDDeathWarning” Linear 0.0 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 “White” Linear 0.0 0.0001
}
//===========================================
If it doesn’t work then you may need to rename the entities within HudPlayerHealth.res so that they match the parts that this script is trying to animate.
Finaly done, took some time to make it work and get it into shape, but im really pleased the way it turned out. Many thanks SteveyJJ for the help.
Screens wont do it any justice so i put together a quick vid:
http://www.youtube.com/watch?v=78yW4D6fdNA
Here’s also a download link if anyone wishes to give it a go. Should run just fine on m0res HUD for 1680×1050. But your mileage may vary.
http://www.2shared.com/file/bfrF9IzV/tf_online.html
Last edited by Chux,
nice rates and picmap hacks :]]
must be fun playing against u
Last edited by AnimaL,
Add A Reply Pages: 1