Upvote Upvoted 1 Downvote Downvoted
Help with tournament spec hud numbers (buff/hurt)
posted in Customization
1
#1
0 Frags +

I've been having troubles animating the health numbers for the advanced spectator Hud. When the code should make them go green at above normal health, and red when below half, for some strange reason it isn't working.

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

//Health Bonus Pulse
event HudHealthBonusPulse
{
	Animate PlayerStatusHealthValueSpec		FgColor		"0 166 19 255"	Accel 0.0 0.0

	RunEvent HudHealthBonusPulseLoop	0.4
}

// call to loop HudHealthBonusPulse
event HudHealthBonusPulseLoop
{
	RunEvent HudHealthBonusPulse 0.0
}

event HudHealthBonusPulseStop
{
	Animate PlayerStatusHealthValueSpec		FgColor		"TanLight"		Accel 0.0 0.0

	StopEvent HudHealthBonusPulse 0.0
	StopEvent HudHealthBonusPulseLoop 0.0
}

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

//Health Dying Pulse
event HudHealthDyingPulse
{

	Animate PlayerStatusHealthValueSpec		FgColor		"176 36 36 255"	Accel 0.0 0.0

	RunEvent HudHealthDyingPulseLoop	0.25
}

// call to loop HudHealthDyingPulse
event HudHealthDyingPulseLoop
{
	RunEvent HudHealthDyingPulse 0.0
}

event HudHealthDyingPulseStop
{
	Animate PlayerStatusHealthValueSpec		FgColor		"TanLight"		Accel 0.0 0.0

	StopEvent HudHealthDyingPulse 0.0
	StopEvent HudHealthDyingPulseLoop 0.0
}

That's the code I have so far in HudAnimations.txt. Is there something wrong with it, or do I need to do anything else to get it working. Thanks again!

I've been having troubles animating the health numbers for the advanced spectator Hud. When the code [i]should[/i] make them go green at above normal health, and red when below half, for some strange reason it isn't working. [code]//===========================================

//Health Bonus Pulse
event HudHealthBonusPulse
{
Animate PlayerStatusHealthValueSpec FgColor "0 166 19 255" Accel 0.0 0.0

RunEvent HudHealthBonusPulseLoop 0.4
}

// call to loop HudHealthBonusPulse
event HudHealthBonusPulseLoop
{
RunEvent HudHealthBonusPulse 0.0
}

event HudHealthBonusPulseStop
{
Animate PlayerStatusHealthValueSpec FgColor "TanLight" Accel 0.0 0.0

StopEvent HudHealthBonusPulse 0.0
StopEvent HudHealthBonusPulseLoop 0.0
}

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

//Health Dying Pulse
event HudHealthDyingPulse
{

Animate PlayerStatusHealthValueSpec FgColor "176 36 36 255" Accel 0.0 0.0

RunEvent HudHealthDyingPulseLoop 0.25
}

// call to loop HudHealthDyingPulse
event HudHealthDyingPulseLoop
{
RunEvent HudHealthDyingPulse 0.0
}

event HudHealthDyingPulseStop
{
Animate PlayerStatusHealthValueSpec FgColor "TanLight" Accel 0.0 0.0

StopEvent HudHealthDyingPulse 0.0
StopEvent HudHealthDyingPulseLoop 0.0
}
[/code] That's the code I have so far in HudAnimations.txt. Is there something wrong with it, or do I need to do anything else to get it working. Thanks again!
2
#2
0 Frags +

I believe the animations stuff is handled by SpectatorTournamentGUIHealth.res you might want to try fiddling around in there and see if you can solve your problems. If not i'll try to help you come to a better solution tomorrow.

I believe the animations stuff is handled by SpectatorTournamentGUIHealth.res you might want to try fiddling around in there and see if you can solve your problems. If not i'll try to help you come to a better solution tomorrow.
3
#3
0 Frags +
BenroadsI believe the animations stuff is handled by SpectatorTournamentGUIHealth.res you might want to try fiddling around in there and see if you can solve your problems. If not i'll try to help you come to a better solution tomorrow.

Thanks! I don't really know how to animate a font entity based on health, so I might have a bit of trouble with that.

[quote=Benroads]I believe the animations stuff is handled by SpectatorTournamentGUIHealth.res you might want to try fiddling around in there and see if you can solve your problems. If not i'll try to help you come to a better solution tomorrow.[/quote] Thanks! I don't really know how to animate a font entity based on health, so I might have a bit of trouble with that.
4
#4
0 Frags +

Don't forget that hud animations file in your scripts folder handles most animations for low ammo/health. I'm not sure if it handles the spectator ones though.

Don't forget that hud animations file in your scripts folder handles most animations for low ammo/health. I'm not sure if it handles the spectator ones though.
5
#5
-1 Frags +

Can you go into your SpectatorTournamentGUIHealth.res and tell me the fieldName for the Health Value entry? As far as I can tell you've done it correctly, it might just be a fieldName issue.

Can you go into your SpectatorTournamentGUIHealth.res and tell me the fieldName for the Health Value entry? As far as I can tell you've done it correctly, it might just be a fieldName issue.
6
#6
0 Frags +
ZimmyCan you go into your SpectatorTournamentGUIHealth.res and tell me the fieldName for the Health Value entry? As far as I can tell you've done it correctly, it might just be a fieldName issue.

It's PlayerStatusHealthValueSpec, which is correct (I think) since I copy and pasted it right into HudAnimations.txt.

[quote=Zimmy]Can you go into your SpectatorTournamentGUIHealth.res and tell me the fieldName for the Health Value entry? As far as I can tell you've done it correctly, it might just be a fieldName issue.[/quote] It's PlayerStatusHealthValueSpec, which is correct (I think) since I copy and pasted it right into HudAnimations.txt.
7
#7
0 Frags +

It seems to me that it should be working. What HUD are you using?

It seems to me that it should be working. What HUD are you using?
8
#8
0 Frags +
ZimmyIt seems to me that it should be working. What HUD are you using?

It's a custom HUD that's loosely based on flameHUD, but the tournament scoreboard thing I stole directly from OMP and I modified the fonts a bit, but that's about it.This is a picture of what it looks right now, and as you can see, the buffs just aren't working at all. The same thing is going on with hurt players at <50% health.

i.imgur.com/aw7sZQp.jpg The previous pic isn't working for me, so just use this link instead.

[quote=Zimmy]It seems to me that it should be working. What HUD are you using?[/quote] It's a custom HUD that's loosely based on flameHUD, but the tournament scoreboard thing I stole directly from OMP and I modified the fonts a bit, but that's about it.[url=i.imgur.com/aw7sZQp.jpg]This[/url] is a picture of what it looks right now, and as you can see, the buffs just aren't working at all. The same thing is going on with hurt players at <50% health.

i.imgur.com/aw7sZQp.jpg The previous pic isn't working for me, so just use this link instead.
9
#9
0 Frags +

So the health animations aren't working at all, not just for the tournament panels?

So the health animations aren't working at all, not just for the tournament panels?
10
#10
0 Frags +

I don't have any other health animations, since it's just a health cross. The numbers don't change at all, only the cross. The ammo animation works fine. http://i.imgur.com/kYCPtDr.jpg Actually, I might have just found a culprit. BRB fixing stupid mistake.

I don't have any other health animations, since it's just a health cross. The numbers don't change at all, only the cross. The ammo animation works fine. http://i.imgur.com/kYCPtDr.jpg Actually, I might have just found a culprit. BRB fixing stupid mistake.
11
#11
0 Frags +

YES! I have it working! I didn't know that you couldn't have multiple entities that pertain to the same animation trigger. I guess that's why my damage circle wasn't working either... anyways, thanks for the help guys, I probably would have given up by now c:

YES! I have it working! I didn't know that you couldn't have multiple entities that pertain to the same animation trigger. I guess that's why my damage circle wasn't working either... anyways, thanks for the help guys, I probably would have given up by now c:
Please sign in through STEAM to post a comment.