natf2 is shutting down, head over to teamfortress.tv for all of your TF2 coverage.

 
#1
0
CheaP  Steam
mid
Registered: January 2012
Posts: 123

I've been trying to get a bright white color on my Default xhair, but it keeps coming out as an off grey, even when the RGB values are 255,255,255. Is it designed this way or am I doing something wrong.

crosshair "1"
cl_crosshair_file "Default"
cl_crosshair_scale "20"
cl_crosshair_red "255"
cl_crosshair_green "255"
cl_crosshair_blue "255"
cl_crosshairalpha "255"
cl_dynamiccrosshair "0"

Mon, 19 Mar 2012, 12:27pm
#2
0
Ma3la  Steam
mid+
Medium_3b0950ebc88048df761fa6289af23a53
Registered: September 2011
Posts: 331

You're doing it right, it's just that the in-game crosshairs are bad and dark =P Just use a custom hud crosshair, its way brighter like you want


hi :>

Mon, 19 Mar 2012, 12:35pm
#3
0
CheaP  Steam
mid
Registered: January 2012
Posts: 123

By any chance is there a HUD Default xhair? haha I've been using the cross with the black outline but I find the Default a lot better.

edit. I'm talking about the ( . ) xhair, not the regular default xhairs

Mon, 19 Mar 2012, 12:44pm
#4
3
Boggy  Steam
low+
Registered: September 2011
Posts: 36

http://i.imgur.com/GW1Md.jpg

To get that I used the font file from: http://etf2l.org/forum/general/topic-15735/page-1/

But since I'm pretty picky about how TF2 outlines fonts (not very well) I made my own outline by copying gmang's method that he used for his HUD, namely the health numbers and things.

Firstly, download the font file at the end of the first post, not the one later posted, it's positioning was changed, unnecessarily so. Put the tf2cross.ttf file in the tf/resource folder.

Then in Hudlayout.res put this in.

xHairCross
{
"xpos" "c-53"
"ypos" "c-50"
"wide" "100"
"tall" "100"

"fgcolor" "255 255 255 255"
"controlName" "ceXLabel"
"fieldName" "XhairCross"
"visible" "1"
"enabled" "1"
"zpos" "2"
"font" "xhairCross"
"labelText" "x"
"textAlignment" "center"
}
xHairCross1
{
"xpos" "c-53"
"ypos" "c-50"
"wide" "101"
"tall" "100"

"fgcolor" "0 0 0 255"
"controlName" "ceXLabel"
"fieldName" "XhairCross1"
"visible" "1"
"enabled" "1"
"zpos" "1"
"font" "xhairCross"
"labelText" "x"
"textAlignment" "center"
}
xHairCross2
{
"xpos" "c-55"
"ypos" "c-50"
"wide" "103"
"tall" "100"

"fgcolor" "0 0 0 255"
"controlName" "ceXLabel"
"fieldName" "XhairCross2"
"visible" "1"
"enabled" "1"
"zpos" "1"
"font" "xhairCross"
"labelText" "x"
"textAlignment" "center"
}
xHairCross3
{
"xpos" "c-53"
"ypos" "c-50"
"wide" "100"
"tall" "101"

"fgcolor" "0 0 0 255"
"controlName" "ceXLabel"
"fieldName" "XhairCross3"
"visible" "1"
"enabled" "1"
"zpos" "1"
"font" "xhairCross"
"labelText" "x"
"textAlignment" "center"
}
xHairCross4
{
"xpos" "c-53"
"ypos" "c-50"
"wide" "100"
"tall" "99"

"fgcolor" "0 0 0 255"
"controlName" "ceXLabel"
"fieldName" "XhairCross4"
"visible" "1"
"enabled" "1"
"zpos" "1"
"font" "xhairCross"
"labelText" "x"
"textAlignment" "center"
}

and in clientscheme.res search for fonts, and then put this in the bitmap font files section

"XhairCross"
{
"1"
{
"name" "tf2cross"
"tall" "16"
"additive" "0"
"antialias" "1"
"outline" "0"
}

Same file, put this at the very bottom, the number need to be one higher than the section just above it, so most of the time it would be 7

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

It's set up only for 1920x1080, primarily because the way tf2 handles spacing, thats why xhaircross2 has a funky wide and xpos number.

That should be it, it's not EXACTLY like tf2's default, but it's pretty nice because you can change the fgcolor of each element, if you'd like to change from a white crosshair, just edit the fgcolor of xhaircross.

Hope I helped!

Mon, 19 Mar 2012, 02:01pm
#5
0
CheaP  Steam
mid
Registered: January 2012
Posts: 123

I'm a little picky myself, and I'm 1680x1050 :[ but I can tweak it myself. Can you suggest some thinner fonts though? I'm trying to get it as close to the Default as possible.

Mon, 19 Mar 2012, 02:06pm
#6
0
Boggy  Steam
low+
Registered: September 2011
Posts: 36

Well, there is also the method of using parentheses and either a . or a ● that way you would be able to edit the size of each element.

I spent a long time looking for fonts that had parentheses that were similar to the default crosshair, but the only ones I've found where a really odd shape, italicized, or standard ones with a flat top.

Last edited: Mon, 19 Mar 2012, 02:33pm by Boggy

Mon, 19 Mar 2012, 02:20pm
#7
0
tragic  Steam
mid+
Registered: September 2011
Posts: 320

CheaP wrote:

I'm a little picky myself, and I'm 1680x1050 :[ but I can tweak it myself. Can you suggest some thinner fonts though? I'm trying to get it as close to the Default as possible.

change the 'tall' to '11' in the clientscheme. that's as close as I got it to default


Mon, 19 Mar 2012, 02:42pm
#8
0
blinky  Steam
high-
Registered: October 2011
Posts: 636

The last number is the opacity of the color. ex. 255,255,255,OPACITY


xen. blinK

Mon, 19 Mar 2012, 03:41pm
#9
0
atmo  Steam
high-
Medium_e35223e2d52719c1dad8e241c4a6df9a
Registered: January 2012
Posts: 873

RGBA - red green blu alpha


stvkeybinds: an application with pictures

Mon, 19 Mar 2012, 03:55pm
#10
0
jitney  Steam
mid
Medium_b8b396b96a22c3cc4596c6fc74db8707
Registered: January 2012
Posts: 198

#4 can you upload your config. i keep trying to set up that crosshair and it doesnt work.

Mon, 19 Mar 2012, 06:09pm
#11
0
Boggy  Steam
low+
Registered: September 2011
Posts: 36

stupidpeople wrote:

#4 can you upload your config. i keep trying to set up that crosshair and it doesnt work.

Sure. Keep in mind, again, it's only gonna work for 1920x1080 out of the box, so if you use anything different, be prepared to edit some xpos, ypos, tall, and wide settings.

http://www.mediafire.com/?c6cm2wf5p1e9pc1

Should be good to go, if you have any troubles just ask 'em and I'll try to help you out. Also to note, I'm using an edited version of the flame's hud part of commhud, so some parts of the HUD, depending on the one you use might be out of place.

It probably goes without saying, but this isn't compatible with other huds unless they add no fonts or anything of that sort to the game.

Mon, 19 Mar 2012, 08:22pm
#12
0
jitney  Steam
mid
Medium_b8b396b96a22c3cc4596c6fc74db8707
Registered: January 2012
Posts: 198

thanks a lot boggy :D

Mon, 19 Mar 2012, 09:44pm
#13
0
Boggy  Steam
low+
Registered: September 2011
Posts: 36

Np, man!

Mon, 19 Mar 2012, 10:29pm