Forum
Text done over the target when you damage them.
Created 1st July 2010 @ 01:03
Add A Reply Pages: 1
I like the text thingy Fragga is using.
Like in this vid: http://www.youtube.com/watch?v=sDLqYdsV9Ak
Can someone help me get that?
“Resource/UI/HudDamageAccount.res”
{
“CDamageAccountPanel”
{
“fieldName” “CDamageAccountPanel”
“text_x” “0”
“text_y” “0”
“delta_item_end_y” “0”
“PositiveColor” “255 255 0 255”
“NegativeColor” “255 255 0 255”
“delta_lifetime” “1.5”
“delta_item_font” “HudFontSmallBold”
“delta_item_font_big” “HudFontSmallBold”
}
}
Make a notepad file called HudDamageAccount.res and put the above in it
put it in resource/ui
There ya go!
EDIT: any more Qs, just ask. =]
Last edited by Deleteme,
Alt. static solution: http://img27.imageshack.us/img27/8494/dmgnums.png
“Resource/UI/HudDamageAccount.res”
{
“CDamageAccountPanel”
{
“fieldName” “CDamageAccountPanel”
“xpos” “312”
“ypos” “246”
“wide” “23”
“tall” “9”
“text_x” “0”
“text_y” “0”
“delta_item_end_y” “0”
“PositiveColor” “255 255 0 255”
“NegativeColor” “255 255 0 255”
“delta_lifetime” “0”
“delta_item_font” “HudFontMediumSmall”
“delta_item_font_big” “HudFontMediumSmall”
}
“DamageAccountValue”
{
“ControlName” “CTFLabel”
“fieldName” “DamageAccountValue”
“xpos” “-4”
“ypos” “0”
“zpos” “2”
“wide” “22”
“tall” “8”
“visible” “1”
“enabled” “1”
“labelText” “%metal%”
“textAlignment” “left”
“fgcolor” “255 255 0 255”
“font” “HudFontMediumSmallBold”
}
“DamageAccountValueBG”
{
“ControlName” “CTFLabel”
“fieldName” “DamageAccountValue”
“xpos” “-3”
“ypos” “1”
“zpos” “1”
“wide” “22”
“tall” “8”
“visible” “1”
“enabled” “1”
“labelText” “%metal%”
“textAlignment” “left”
“fgcolor” “0 0 0 255”
“font” “HudFontMediumSmallBold”
}
}
dont work
Quoted from wic
dont work
Make sure you have damage numbers enabled in your config.
the font colour is red :/
Quoted from wic
the font colour is red :/
We got this problem too, check that you don’t have questionmarks in your code. They seem to crop up when you copy from the forum, or through notepad, don’t know which.
Try this instead: http://pastebin.com/TB6Y2cae
vim text editor: ftp://ftp.vim.org/pub/vim/pc/gvim72.exe if you cant type, press i multiple times.
Last edited by ell,
Picture demonstrating how the minus of the damage numbers is masked away in my code to avoid superfluous clutter http://img295.imageshack.us/img295/5021/dmgnumshideminus.png
“xpos” “-4″ is the key line. It offsets the text 4 units outside the left border.
Last edited by ell,
Can’t edit the colour or display time of the original HudDamageAccount.res for some reason.
It’s:
in my tf/resource/ui folder
it’s .res (not .res.txt)
it wasn’t copy-pasted from this forum (I found a download link)
I still have the remnants of an ancient m0rehud installed, could that be intefering with the damage indicator?
The code copied from this post seemed to work for me:
http://forums.steampowered.com/forums/showpost.php?s=b27968117a75f0d230aa42b3bf95f642&p=12783187&postcount=16
Last edited by fJack,
http://www.megaupload.com/?d=3IRSFH20. That’s it. Download and replace with your current HudDamageAccount.res
Add A Reply Pages: 1