Upvote Upvoted 1 Downvote Downvoted
trying to get crosshair
posted in Q/A Help
1
#1
0 Frags +

fixed

fixed
2
#2
-3 Frags +

Looks like you just need to center it

The above two links are optimised for 1920x1080 - if you toggle the default crosshair on and off (as scout) you won't be able to notice it, as the custom tf2cross overlaps the stock crosshair completely. Its important to modify the 'tall' value in ClientScheme.res as well as the x/ypos in HudLayout.res if you want to get its positioning perfect.
Looks like you just need to center it

[quote]The above two links are optimised for 1920x1080 - if you toggle the default crosshair on and off (as scout) you won't be able to notice it, as the custom tf2cross overlaps the stock crosshair completely. Its important to modify the 'tall' value in ClientScheme.res as well as the x/ypos in HudLayout.res if you want to get its positioning perfect.[/quote]
3
#3
2 Frags +

right click + install font. if you did, then you might not have set it up correctly in your hud.

open up resource/ui/clientscheme.res and ctrl+f for "fonts //". copy/paste this in under where it says ////// FONTS /////

  "CrossHairNormal"
    {
      "1"
      {
        "name"    "tf2cross"
        "tall"    "11"
        "weight"  "0"
        "antialias"  "1"
        "additive"  "0"
        "outline"   "0"
      }
    }

Then ctrl+f for custom fonts and paste this in:

"23"
      {
         "font"     "resource/tf2cross.ttf"
         "name"     "tf2cross"
      }

Make sure to change the 23 so that it fits in, or, rather, so that the numbers there go up sequentially/in order.

Then go to scripts/hudlayout.res and paste this in:

CrossHairNormal
  {
    "controlName"  "CExLabel"
    "fieldName"     "CrossHairNormal"
    "visible"    "1"
    "enabled"    "1"
    "zpos"      "1"
    "xpos"      "c-14"
    "ypos"      "c-13"
    "wide"      "24"
    "tall"      "24"
    "font"      "CrossHairNormal"
    "labelText"    "x"
    "fgcolor"    "235 226 202 255"
    "textAlignment"  "center"
  }
right click + install font. if you did, then you might not have set it up correctly in your hud.

open up resource/ui/clientscheme.res and ctrl+f for "fonts //". copy/paste this in under where it says ////// FONTS /////
[code] "CrossHairNormal"
{
"1"
{
"name" "tf2cross"
"tall" "11"
"weight" "0"
"antialias" "1"
"additive" "0"
"outline" "0"
}
}[/code]
Then ctrl+f for custom fonts and paste this in:
[code]"23"
{
"font" "resource/tf2cross.ttf"
"name" "tf2cross"
}[/code]
Make sure to change the 23 so that it fits in, or, rather, so that the numbers there go up sequentially/in order.

Then go to scripts/hudlayout.res and paste this in:
[code]CrossHairNormal
{
"controlName" "CExLabel"
"fieldName" "CrossHairNormal"
"visible" "1"
"enabled" "1"
"zpos" "1"
"xpos" "c-14"
"ypos" "c-13"
"wide" "24"
"tall" "24"
"font" "CrossHairNormal"
"labelText" "x"
"fgcolor" "235 226 202 255"
"textAlignment" "center"
}[/code]
4
#4
0 Frags +
deetrLooks like you just need to center it
The above two links are optimised for 1920x1080 - if you toggle the default crosshair on and off (as scout) you won't be able to notice it, as the custom tf2cross overlaps the stock crosshair completely. Its important to modify the 'tall' value in ClientScheme.res as well as the x/ypos in HudLayout.res if you want to get its positioning perfect.

Strange because I'm using 1920x1080 as well, but thanks I'll try and centre it.

[quote=deetr]Looks like you just need to center it

[quote]The above two links are optimised for 1920x1080 - if you toggle the default crosshair on and off (as scout) you won't be able to notice it, as the custom tf2cross overlaps the stock crosshair completely. Its important to modify the 'tall' value in ClientScheme.res as well as the x/ypos in HudLayout.res if you want to get its positioning perfect.[/quote][/quote]

Strange because I'm using 1920x1080 as well, but thanks I'll try and centre it.
5
#5
2 Frags +

it's not a centering issue. your font crosshair is not installed correctly, or you didn't set it up properly in clientscheme, like i said. to explain further: the 'x' is the font definition for your crosshair, but, because the font is not properly installed, it shows up as a default, fallback font, instead of TF2cross, which is the font seeker made. if you're still confused check out my huds crosshair guide on huds.tf for a more thorough explanation.

it's not a centering issue. your font crosshair is not installed correctly, or you didn't set it up properly in clientscheme, like i said. to explain further: the 'x' is the font definition for your crosshair, but, because the font is not properly installed, it shows up as a default, fallback font, instead of TF2cross, which is the font seeker made. if you're still confused check out [url=http://huds.tf/forum/showthread.php?tid=23]my huds crosshair guide[/url] on huds.tf for a more thorough explanation.
6
#6
0 Frags +
deetrLooks like you just need to center it
The above two links are optimised for 1920x1080 - if you toggle the default crosshair on and off (as scout) you won't be able to notice it, as the custom tf2cross overlaps the stock crosshair completely. Its important to modify the 'tall' value in ClientScheme.res as well as the x/ypos in HudLayout.res if you want to get its positioning perfect.

its an x the font isnt installed lmao

and btw im p sure that crosshair is already in the hud

[quote=deetr]Looks like you just need to center it

[quote]The above two links are optimised for 1920x1080 - if you toggle the default crosshair on and off (as scout) you won't be able to notice it, as the custom tf2cross overlaps the stock crosshair completely. Its important to modify the 'tall' value in ClientScheme.res as well as the x/ypos in HudLayout.res if you want to get its positioning perfect.[/quote][/quote]
its an x the font isnt installed lmao

and btw im p sure that crosshair is already in the hud
7
#7
-1 Frags +
komorebi things

nvm

[quote=komorebi] things[/quote]

nvm
8
#8
0 Frags +

I got it to work, realising it was already in the hud however the x is still there.

I got it to work, realising it was already in the hud however the x is still there.
9
#9
2 Frags +

http://huds.tf/forum/showthread.php?tid=22

http://huds.tf/forum/showthread.php?tid=22
10
#10
0 Frags +

just change enabled and visible to 0 on the thing you added to hudlayout to get rid of the x

just change enabled and visible to 0 on the thing you added to hudlayout to get rid of the x
11
#11
1 Frags +
janedoedeetrLooks like you just need to center it
The above two links are optimised for 1920x1080 - if you toggle the default crosshair on and off (as scout) you won't be able to notice it, as the custom tf2cross overlaps the stock crosshair completely. Its important to modify the 'tall' value in ClientScheme.res as well as the x/ypos in HudLayout.res if you want to get its positioning perfect.
its an x the font isnt installed lmao

and btw im p sure that crosshair is already in the hud

oh I thought the x was the crosshair, my b

[quote=janedoe][quote=deetr]Looks like you just need to center it

[quote]The above two links are optimised for 1920x1080 - if you toggle the default crosshair on and off (as scout) you won't be able to notice it, as the custom tf2cross overlaps the stock crosshair completely. Its important to modify the 'tall' value in ClientScheme.res as well as the x/ypos in HudLayout.res if you want to get its positioning perfect.[/quote][/quote]
its an x the font isnt installed lmao

and btw im p sure that crosshair is already in the hud[/quote]

oh I thought the x was the crosshair, my b
Please sign in through STEAM to post a comment.