Upvote Upvoted 1 Downvote Downvoted
HUD question - damage numbers
posted in Q/A Help
1
#1
0 Frags +

I'm a complete novice to editing HUDs and hoped someone here could help me out. I'd like to change the font size of the damage numbers that pop up above enemies (not the ones that appear near the health meter). I've looked in my HudDamageAccount file and the HUD I have currently doesn't seem to have any settings specifically for those damage numbers, though I suspect there might be one. What would I have to add to change that?

I'm a complete novice to editing HUDs and hoped someone here could help me out. I'd like to change the font size of the damage numbers that pop up above enemies (not the ones that appear near the health meter). I've looked in my HudDamageAccount file and the HUD I have currently doesn't seem to have any settings specifically for those damage numbers, though I suspect there might be one. What would I have to add to change that?
2
#2
0 Frags +

http://teamfortress.tv/forum/thread/6338/1

edit: I think I misread the question. Foster is right though.

http://teamfortress.tv/forum/thread/6338/1

edit: I think I misread the question. Foster is right though.
3
#3
0 Frags +

In DamageAccount there should be an element called DamageAccountPanel and one called DamageAccount value. I believe you just have to change the values in DamageAccountPanel.

In DamageAccount there should be an element called DamageAccountPanel and one called DamageAccount value. I believe you just have to change the values in DamageAccountPanel.
4
#4
0 Frags +

Yeah, that's the one I've been messing with. To explain my problem, I'll post what my DamageAccount panel looks like.

http://puu.sh/2sNGB

I understand that, the way the font is in this example, is 12-point with an outline. If I change the font size but try to keep the outline (OL), the numbers won't show up at all. If I omit the "OL" and change the font size, it works, but the numbers are quite difficult to read without the outlines. :\ what do

Yeah, that's the one I've been messing with. To explain my problem, I'll post what my DamageAccount panel looks like.

http://puu.sh/2sNGB

I understand that, the way the font is in this example, is 12-point with an outline. If I change the font size but try to keep the outline (OL), the numbers won't show up at all. If I omit the "OL" and change the font size, it works, but the numbers are quite difficult to read without the outlines. :\ what do
5
#5
0 Frags +

fonts don't magically appear in your hud because you change the font name.

You might have to define the font you want in "clientscheme.res"

Search for the OL font you like and try and copy its parameters to the smaller size you prefer.

ps, i think your puush screenshot is broken, not that it makes a difference...

fonts don't magically appear in your hud because you change the font name.

You might have to define the font you want in "clientscheme.res"

Search for the OL font you like and try and copy its parameters to the smaller size you prefer.

ps, i think your puush screenshot is broken, not that it makes a difference...
6
#6
0 Frags +

To mess with numbers that show up above enemies, you play around with DamageAccountValue

Here's what mines looks like:

"DamageAccountValue"
	{
		"ControlName"	"CExLabel"
		"fieldName"		"DamageAccountValue"
		"xpos"			"c-184"
		"ypos"			"r65"
		"zpos"			"2"
		"wide"			"100"
		"tall"			"26"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"%metal%"
		"textAlignment"	"west"
		"fgcolor"		"255 255 255 255"
		"font"			"HudFontMediumBigBold"
	}

	"DamageAccountValueBG"
	{
		"ControlName"	"CExLabel"
		"fieldName"		"DamageAccountValue"
		"xpos"			"c-183"
		"ypos"			"r64"
		"zpos"			"1"
		"wide"			"101"
		"tall"			"27"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"%metal%"
		"textAlignment"	"west"
		"fgcolor"		"0 0 0 0"
		"font"			"HudFontMediumBigBold"
	}

Notice that the wide and tall values for DamageAccountValueBG are 1 greater than DamageAccountValue's. This creates a outline by virtue of having a slightly bigger damage value that's a contrasting color for the damage value.

To mess with numbers that show up above enemies, you play around with DamageAccountValue

Here's what mines looks like:
[code]"DamageAccountValue"
{
"ControlName" "CExLabel"
"fieldName" "DamageAccountValue"
"xpos" "c-184"
"ypos" "r65"
"zpos" "2"
"wide" "100"
"tall" "26"
"visible" "1"
"enabled" "1"
"labelText" "%metal%"
"textAlignment" "west"
"fgcolor" "255 255 255 255"
"font" "HudFontMediumBigBold"
}

"DamageAccountValueBG"
{
"ControlName" "CExLabel"
"fieldName" "DamageAccountValue"
"xpos" "c-183"
"ypos" "r64"
"zpos" "1"
"wide" "101"
"tall" "27"
"visible" "1"
"enabled" "1"
"labelText" "%metal%"
"textAlignment" "west"
"fgcolor" "0 0 0 0"
"font" "HudFontMediumBigBold"
}[/code]

Notice that the wide and tall values for DamageAccountValueBG are 1 greater than DamageAccountValue's. This creates a outline by virtue of having a slightly bigger damage value that's a contrasting color for the damage value.
7
#7
0 Frags +
OTLfonts don't magically appear in your hud because you change the font name.

You might have to define the font you want in "clientscheme.res"

Search for the OL font you like and try and copy its parameters to the smaller size you prefer.

ps, i think your puush screenshot is broken, not that it makes a difference...

I wonder if you even read what I wrote. I'm not trying to change the font, just resize it.
Here is a fixed screenshot: http://puu.sh/2tbcH

As I said earlier, the 12 is for the font size. When I change it in DamageAccountValue, my "last damage done" counter changes, but it doesn't seem to apply to the damage numbers above players. @KL For this reason, I doubt what you posted would change anything but I'll try messing around with it anyway when I get a chance.

Plus if it helps anything, I'm using KBNhud.

[quote=OTL]fonts don't magically appear in your hud because you change the font name.

You might have to define the font you want in "clientscheme.res"

Search for the OL font you like and try and copy its parameters to the smaller size you prefer.

ps, i think your puush screenshot is broken, not that it makes a difference...[/quote]

I wonder if you even read what I wrote. I'm not trying to change the font, just resize it.
Here is a fixed screenshot: http://puu.sh/2tbcH

As I said earlier, the 12 is for the font size. When I change it in DamageAccountValue, my "last damage done" counter changes, but it doesn't seem to apply to the damage numbers above players. @KL For this reason, I doubt what you posted would change anything but I'll try messing around with it anyway when I get a chance.

Plus if it helps anything, I'm using KBNhud.
8
#8
1 Frags +

You have to define the font you want in clientscheme. This includes the size of the font...

Chippyblack12Ol is a font

"chippyBlack12"
		{
			"1"
			{
			"name"		"Maven Pro Black"
			"tall"		"12"
			"weight"	"500"
			"range"		"0x0000 0x017F"
			"antialias"	"1"
			}
		}
		"chippyBlack12OL"
		{
			"1"
			{
			"name"		"Maven Pro Black"
			"tall"		"12"
			"weight"	"500"
			"range"		"0x0000 0x017F"
			"antialias"	"0"
			"outline"	"1"
			}
		}

only chippy black 11 and 12 have and OL option as defined by the clientscheme.

Show Content
[code] "chippyBlack8"
{
"1"
{
"name" "Maven Pro Black"
"tall" "8"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack9"
{
"1"
{
"name" "Maven Pro Black"
"tall" "9"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack10"
{
"1"
{
"name" "Maven Pro Black"
"tall" "10"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack11"
{
"1"
{
"name" "Maven Pro Black"
"tall" "11"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack11OL"
{
"1"
{
"name" "Maven Pro Black"
"tall" "11"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
"outline" "0 0 0 255"
}
}
"chippyBlack12"
{
"1"
{
"name" "Maven Pro Black"
"tall" "12"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack12OL"
{
"1"
{
"name" "Maven Pro Black"
"tall" "12"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "0"
"outline" "1"
}
}
"chippyBlack14"
{
"1"
{
"name" "Maven Pro Black"
"tall" "14"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack16"
{
"1"
{
"name" "Maven Pro Black"
"tall" "16"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack18"
{
"1"
{
"name" "Maven Pro Black"
"tall" "18"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack20"
{
"1"
{
"name" "Maven Pro Black"
"tall" "20"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
[/code]
You have to define the font you want in clientscheme. This includes the size of the font...


Chippyblack12Ol is a font
[code]"chippyBlack12"
{
"1"
{
"name" "Maven Pro Black"
"tall" "12"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack12OL"
{
"1"
{
"name" "Maven Pro Black"
"tall" "12"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "0"
"outline" "1"
}
}[/code]

only chippy black 11 and 12 have and OL option as defined by the clientscheme.

[spoiler][code] "chippyBlack8"
{
"1"
{
"name" "Maven Pro Black"
"tall" "8"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack9"
{
"1"
{
"name" "Maven Pro Black"
"tall" "9"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack10"
{
"1"
{
"name" "Maven Pro Black"
"tall" "10"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack11"
{
"1"
{
"name" "Maven Pro Black"
"tall" "11"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack11OL"
{
"1"
{
"name" "Maven Pro Black"
"tall" "11"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
"outline" "0 0 0 255"
}
}
"chippyBlack12"
{
"1"
{
"name" "Maven Pro Black"
"tall" "12"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack12OL"
{
"1"
{
"name" "Maven Pro Black"
"tall" "12"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "0"
"outline" "1"
}
}
"chippyBlack14"
{
"1"
{
"name" "Maven Pro Black"
"tall" "14"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack16"
{
"1"
{
"name" "Maven Pro Black"
"tall" "16"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack18"
{
"1"
{
"name" "Maven Pro Black"
"tall" "18"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
"chippyBlack20"
{
"1"
{
"name" "Maven Pro Black"
"tall" "20"
"weight" "500"
"range" "0x0000 0x017F"
"antialias" "1"
}
}
[/code]
9
#9
0 Frags +

Ohhh alright, I get it now. So using that same template, I'm guessing I could just copy it to another set of parameters to make, say, a "chippyBlack16OL"? I'm gonna try that.

Ohhh alright, I get it now. So using that same template, I'm guessing I could just copy it to another set of parameters to make, say, a "chippyBlack16OL"? I'm gonna try that.
10
#10
0 Frags +

Yep, that did the trick. Thanks for the tip OTL

Yep, that did the trick. Thanks for the tip OTL
Please sign in through STEAM to post a comment.