Go Back   Steam Users' Forums > Steam Game Discussions > T - Z > Team Fortress 2

Reply
 
Thread Tools Display Modes
Old 08-09-2012, 02:21 PM   #1
fireemblemrox
 
 
 
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.
fireemblemrox is offline  
Reply With Quote
Old 08-09-2012, 02:51 PM   #2
Just_A_Gamer
 
 
 
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

	
}
Don't forget to back it up first, don't say I didnt warn you.

Last edited by Just_A_Gamer: 08-09-2012 at 03:06 PM.
Just_A_Gamer is offline   Reply With Quote
Old 08-09-2012, 06:40 PM   #3
fireemblemrox
 
 
 
Join Date: Sep 2011
Reputation: 5
Posts: 215
It works awesomely, +rep. The blue's a bit too blue. How do I change it?
fireemblemrox is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Game Discussions > T - Z > Team Fortress 2


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 10:13 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.