Upvote Upvoted 2 Downvote Downvoted
Damage text outline
posted in Customization
1
#1
1 Frags +

So i made my self a more comfortable text damage with only this code :

"Resource/UI/HudDamageAccount.res"
{
"CDamageAccountPanel"
{
"fieldName" "CDamageAccountPanel"
"text_x" "0"
"text_y" "0"
"delta_item_end_y" "0"
"PositiveColor" "20 255 20 255"
"NegativeColor" "255 165 0 255"
"delta_lifetime" "2"
"delta_item_font" "HudFontMediumBigBold"
"delta_item_font_big" "HudFontMediumBigBold"
}
}

Its works perfect but id like to add for it a black outline.
does anyone know how to do that?

P.S does someone knows what the numbers of the color cyan for my text damage? thanks

So i made my self a more comfortable text damage with only this code :

"Resource/UI/HudDamageAccount.res"
{
"CDamageAccountPanel"
{
"fieldName" "CDamageAccountPanel"
"text_x" "0"
"text_y" "0"
"delta_item_end_y" "0"
"PositiveColor" "20 255 20 255"
"NegativeColor" "255 165 0 255"
"delta_lifetime" "2"
"delta_item_font" "HudFontMediumBigBold"
"delta_item_font_big" "HudFontMediumBigBold"
}
}

Its works perfect but id like to add for it a black outline.
does anyone know how to do that?

P.S does someone knows what the numbers of the color cyan for my text damage? thanks
2
#2
0 Frags +

cyan color: 0 255 255 255

Edit: For the outline you'll have to find your font in clientscheme and add a line like this
"HudFontMediumBig"
{
"1"
{
"name" "TF2"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
"outline" "1"

}
}

cyan color: 0 255 255 255

Edit: For the outline you'll have to find your font in clientscheme and add a line like this
"HudFontMediumBig"
{
"1"
{
"name" "TF2"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
[b] "outline" "1"[/b]

}
}
3
#3
0 Frags +
heraquacyan color: 0 255 255 255

Edit: For the outline you'll have to find your font in clientscheme and add a line like this
"HudFontMediumBig"
{
"1"
{
"name" "TF2"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
"outline" "1"

}
}

I didnt actually used a font so i dont know what to do, btw thanks for the color

[quote=heraqua]cyan color: 0 255 255 255

Edit: For the outline you'll have to find your font in clientscheme and add a line like this
"HudFontMediumBig"
{
"1"
{
"name" "TF2"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
[b] "outline" "1"[/b]

}
}[/quote]

I didnt actually used a font so i dont know what to do, btw thanks for the color
4
#4
0 Frags +
raphaeLxheraquacyan color: 0 255 255 255

Edit: For the outline you'll have to find your font in clientscheme and add a line like this
"HudFontMediumBig"
{
"1"
{
"name" "TF2"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
"outline" "1"

}
}

I didnt actually used a font so i dont know what to do, btw thanks for the color

uh yes you did. it says clearly in your original post that the font is HudFontMediumBigBold

[quote=raphaeLx][quote=heraqua]cyan color: 0 255 255 255

Edit: For the outline you'll have to find your font in clientscheme and add a line like this
"HudFontMediumBig"
{
"1"
{
"name" "TF2"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
[b] "outline" "1"[/b]

}
}[/quote]

I didnt actually used a font so i dont know what to do, btw thanks for the color[/quote]

uh yes you did. it says clearly in your original post that the font is HudFontMediumBigBold
5
#5
1 Frags +

I wouldn't recommend using the default hud font files as they're often used a lot in other places. Maybe take his code and rename the font to damageNumbers or something along those lines so you don't risk having random places in your hud have outlined text.

I wouldn't recommend using the default hud font files as they're often used a lot in other places. Maybe take his code and rename the font to damageNumbers or something along those lines so you don't risk having random places in your hud have outlined text.
6
#6
0 Frags +
BenroadsI wouldn't recommend using the default hud font files as they're often used a lot in other places. Maybe take his code and rename the font to damageNumbers or something along those lines so you don't risk having random places in your hud have outlined text.

Exactly, that's why you should go into your clientscheme.res and simply add HudFontMediumBigBoldOutline below the original font:

"HudFontMediumBigBold"
{
"1"
{
"name" "TF2 Build"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
}
}
"HudFontMediumBigBoldOutline"
{
"1"
{
"name" "TF2 Build"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
"outline" "1"
}
}

Then you can use HudFontMediumBigBoldOutline in your HudDamageAccount file as the delta_item_font and delta_item_font_big value.

[quote=Benroads]I wouldn't recommend using the default hud font files as they're often used a lot in other places. Maybe take his code and rename the font to damageNumbers or something along those lines so you don't risk having random places in your hud have outlined text.[/quote]
Exactly, that's why you should go into your clientscheme.res and simply add HudFontMediumBigBoldOutline below the original font:

"HudFontMediumBigBold"
{
"1"
{
"name" "TF2 Build"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
}
}
"HudFontMediumBigBoldOutline"
{
"1"
{
"name" "TF2 Build"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
[b]"outline" "1"[/b]
}
}

Then you can use HudFontMediumBigBoldOutline in your HudDamageAccount file as the delta_item_font and delta_item_font_big value.
7
#7
-1 Frags +
f_blueBenroadsI wouldn't recommend using the default hud font files as they're often used a lot in other places. Maybe take his code and rename the font to damageNumbers or something along those lines so you don't risk having random places in your hud have outlined text.Exactly, that's why you should go into your clientscheme.res and simply add HudFontMediumBigBoldOutline below the original font:

"HudFontMediumBigBold"
{
"1"
{
"name" "TF2 Build"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
}
}
"HudFontMediumBigBoldOutline"
{
"1"
{
"name" "TF2 Build"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
"outline" "1"
}
}

Then you can use HudFontMediumBigBoldOutline in your HudDamageAccount file as the delta_item_font and delta_item_font_big value.

hey. i dont got a clientscheme.res file in my hud

i just created a new notepad with the code for the damage text, can you explain to me how to do that?

[quote=f_blue][quote=Benroads]I wouldn't recommend using the default hud font files as they're often used a lot in other places. Maybe take his code and rename the font to damageNumbers or something along those lines so you don't risk having random places in your hud have outlined text.[/quote]
Exactly, that's why you should go into your clientscheme.res and simply add HudFontMediumBigBoldOutline below the original font:

"HudFontMediumBigBold"
{
"1"
{
"name" "TF2 Build"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
}
}
"HudFontMediumBigBoldOutline"
{
"1"
{
"name" "TF2 Build"
"tall" "30"
"weight" "500"
"additive" "0"
"antialias" "1"
[b]"outline" "1"[/b]
}
}

Then you can use HudFontMediumBigBoldOutline in your HudDamageAccount file as the delta_item_font and delta_item_font_big value.[/quote] hey. i dont got a clientscheme.res file in my hud

i just created a new notepad with the code for the damage text, can you explain to me how to do that?
8
#8
0 Frags +
raphaeLxhey. i dont got a clientscheme.res file in my hud

i just created a new notepad with the code for the damage text, can you explain to me how to do that?

If you really don't have a clientscheme.res (look in custom/xxx/resource first), extract resource/clientscheme.res from tf2_misc_dir.vpk using GCFScape (can't explain every step, try googling or this guide), then do what I explained in my previous post.

Basically, you can't just add an outline to the damages numbers, you have to modify the font that the damage numbers use to have an outline. Fonts are defined in clientscheme.res... it's a bit complicated when you're starting out.

[quote=raphaeLx]hey. i dont got a clientscheme.res file in my hud

i just created a new notepad with the code for the damage text, can you explain to me how to do that?[/quote]
If you really don't have a clientscheme.res (look in custom/xxx/resource first), extract resource/clientscheme.res from tf2_misc_dir.vpk using GCFScape (can't explain every step, try googling or [url=http://doodlesstuff.com/?tutorial=tf2hud]this guide[/url]), then do what I explained in my previous post.

Basically, you can't just add an outline to the damages numbers, you have to modify the font that the damage numbers use to have an outline. Fonts are defined in clientscheme.res... it's a bit complicated when you're starting out.
Please sign in through STEAM to post a comment.