Upvote Upvoted 2 Downvote Downvoted
Last damage lifetime
posted in Q/A Help
1
#1
1 Frags +

I'm using a standard HUD but I've added this HudDamageAccount.res:

"Resource/UI/HudDamageAccount.res"
{
	"CDamageAccountPanel"
	{
		"fieldName"				"CDamageAccountPanel"
		"text_x"				"0"
		"text_y"				"0"
		"delta_item_end_y"		"0"
		"PositiveColor"			"0 255 0 255"
		"NegativeColor"			"255 255 0 255"
		"delta_lifetime"		"1.5"
		"delta_item_font"		"HudFontMedium"
		"delta_item_font_big"	"HudFontBig"
	}
	"DamageAccountValue"
	{
		"ControlName"	"CExLabel"
		"fieldName"		"DamageAccountValue"
		"xpos"			"c-310"
		"xpos_minmode"		"c-55"
		"ypos"			"r35"
		"ypos_minmode"		"r90"
		"zpos"	 		"2"
		"wide"			"100"
		"tall"			"26"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"%metal%"
		"textAlignment"	"west"
		"textAlignment_minmode"	"center"
		"fgcolor"		"255 255 0 255"
		"font"			"HudFontMedium"
		"font_minmode"		"HudFontMedium"
	}

	"DamageAccountValueBG"
	{
		"ControlName"	"CExLabel"
		"fieldName"		"DamageAccountValue"
		"xpos"			"c-309"
		"xpos_minmode"		"c-54"
		"ypos"			"r34"
		"ypos_minmode"		"r89"
		"zpos"			"1"
		"wide"			"100"
		"tall"			"26"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"%metal%"
		"textAlignment"	"west"
		"textAlignment_minmode"	"center"
		"fgcolor"		"0 0 0 255"
		"font"			"HudFontMedium"
		"font_minmode"		"HudFontMedium"
	}
}

Here comes the problem: the last damage done (and its shadow) just disappear with the number showed up on the target (lifetime 1.5). I've tried with delta_lifetime but nothing happens. How can I set a different the lifetime?

I'm using a standard HUD but I've added this HudDamageAccount.res:
[code]"Resource/UI/HudDamageAccount.res"
{
"CDamageAccountPanel"
{
"fieldName" "CDamageAccountPanel"
"text_x" "0"
"text_y" "0"
"delta_item_end_y" "0"
"PositiveColor" "0 255 0 255"
"NegativeColor" "255 255 0 255"
"delta_lifetime" "1.5"
"delta_item_font" "HudFontMedium"
"delta_item_font_big" "HudFontBig"
}
"DamageAccountValue"
{
"ControlName" "CExLabel"
"fieldName" "DamageAccountValue"
"xpos" "c-310"
"xpos_minmode" "c-55"
"ypos" "r35"
"ypos_minmode" "r90"
"zpos" "2"
"wide" "100"
"tall" "26"
"visible" "1"
"enabled" "1"
"labelText" "%metal%"
"textAlignment" "west"
"textAlignment_minmode" "center"
"fgcolor" "255 255 0 255"
"font" "HudFontMedium"
"font_minmode" "HudFontMedium"
}

"DamageAccountValueBG"
{
"ControlName" "CExLabel"
"fieldName" "DamageAccountValue"
"xpos" "c-309"
"xpos_minmode" "c-54"
"ypos" "r34"
"ypos_minmode" "r89"
"zpos" "1"
"wide" "100"
"tall" "26"
"visible" "1"
"enabled" "1"
"labelText" "%metal%"
"textAlignment" "west"
"textAlignment_minmode" "center"
"fgcolor" "0 0 0 255"
"font" "HudFontMedium"
"font_minmode" "HudFontMedium"
}
}[/code]
Here comes the problem: the last damage done (and its shadow) just disappear with the number showed up on the target (lifetime 1.5). I've tried with delta_lifetime but nothing happens. How can I set a different the lifetime?
2
#2
0 Frags +

i don't know much about HUDDamageAccount but maybe there's a section in hudanimations_tf.txt for it

i don't know much about HUDDamageAccount but maybe there's a section in hudanimations_tf.txt for it
3
#3
1 Frags +

This seems interesting. I hope people add this to their future HUDs.

This seems interesting. I hope people add this to their future HUDs.
4
#4
3 Frags +
Injection...

No way. Lifetime of last damage equally with damage over enemy head, after the last update. I hope Valve will fix it.
sorry 4 bad eng

[quote=Injection]...[/quote]
No way. Lifetime of last damage equally with damage over enemy head, after the last update. I hope Valve will fix it.
sorry 4 bad eng
5
#5
1 Frags +
skappaInjection...No way. Lifetime of last damage equally with damage over enemy head, after the last update. I hope Valve will fix it.
sorry 4 bad eng

Thanks.

[quote=skappa][quote=Injection]...[/quote]
No way. Lifetime of last damage equally with damage over enemy head, after the last update. I hope Valve will fix it.
sorry 4 bad eng[/quote]
Thanks.
Please sign in through STEAM to post a comment.