Upvote Upvoted 1 Downvote Downvoted
Basic cross-hair help
posted in Q/A Help
1
#1
0 Frags +

I need the very basics of transferring cross-hairs through HUDs, there was a recent thread where someone was asking for somebody to transfer to his files, but I switch HUDs fairly frequently, no idea why, but I've fallen in love with the CrosshairKonrWingsOutline from Yz50's cfg.

So all I need to know is: how to put selected crosshairs on HUDs.

Thanks in advance for any help.

I need the very basics of transferring cross-hairs through HUDs, there was a recent thread where someone was asking for somebody to transfer to his files, but I switch HUDs fairly frequently, no idea why, but I've fallen in love with the CrosshairKonrWingsOutline from Yz50's cfg.

[b]So all I need to know is:[/b] how to put selected crosshairs on HUDs.

Thanks in advance for any help.
2
#2
1 Frags +

http://teamfortress.tv/forum/thread/3797-player-configs/2#post-54818

http://teamfortress.tv/forum/thread/3797-player-configs/2#post-54818
3
#3
0 Frags +

gotta make sure your old hud and your new hud has the same fonts or you could end up with a more complicated problem

gotta make sure your old hud and your new hud has the same fonts or you could end up with a more complicated problem
4
#4
1 Frags +

Guide by rays:
https://dl.dropbox.com/u/19762650/importingxhairstf2.jpg

Guide by rays:
https://dl.dropbox.com/u/19762650/importingxhairstf2.jpg
5
#5
1 Frags +

define the font in resource > clientscheme

e.g.

"Xhair"
		{
			"1"
			{
			"name"		"MavenPro-Black"
			"tall"		"18"
			"weight"	"700"
			"range"		"0x0000 0x017F"
			"outline"	"1"
			}
		}

define the crosshair in scripts > hudlayout

xHair
	{
		"controlName" "CExLabel"
		"fieldName" "xHair"
		"visible" "1"
		"enabled" "1"
		"zpos" "1"
		"font" "xHair"
		"labelText" "+"
		"textAlignment" "center" 
		"xpos" "c-8"
		"ypos" "c-8"
		"wide" "16"
		"tall" "15"
		"fgcolor" "0 255 0 255"

	}

Make sure you have the font file you're using in the resource folder as well.

define the font in resource > clientscheme

e.g.

[code]"Xhair"
{
"1"
{
"name" "MavenPro-Black"
"tall" "18"
"weight" "700"
"range" "0x0000 0x017F"
"outline" "1"
}
}[/code]

define the crosshair in scripts > hudlayout


[code]xHair
{
"controlName" "CExLabel"
"fieldName" "xHair"
"visible" "1"
"enabled" "1"
"zpos" "1"
"font" "xHair"
"labelText" "+"
"textAlignment" "center"
"xpos" "c-8"
"ypos" "c-8"
"wide" "16"
"tall" "15"
"fgcolor" "0 255 0 255"

}[/code] Make sure you have the font file you're using in the resource folder as well.
Please sign in through STEAM to post a comment.