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?
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
This seems interesting. I hope people add this to their future HUDs.
This seems interesting. I hope people add this to their future HUDs.
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
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.