x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

Circle Crosshair.

Created 15th November 2012 @ 15:14

Add A Reply Pages: 1

ijamzo

[CR]

I know this question has probably been asked a lot, but im want to put it into my hud.

i have tried a couple of ways but none have seemed to work, if anyone could help me out i’de appreciate it :)

MIndYe

[hePPa]

Copy font, copy shit from client scheme and hudlayout, done.

Starkie

ulti?
sniper

To get a circle crosshair you need a font with a circle in it.
Fog’s Custom Crosshairs

Go into tf/resource and extract the crosshairs.ttf into the folder.
After, open clientscheme.res and scroll right to the bottom
Paste this in and replace the X value with the next number along.
For instance, the entries may be going
“8”
{


}
“9”
{


}
Change the X value in the following entry to the next number along, so in the previous case X would be “10”.

"X"
{
"font" "resource/crosshairs.ttf"
"name" "Crosshairs Regular"
}

Then go up to the fonts section (you’ll see a big /////// fonts ////// line) and copy this line into it


"Crosshair"
{
"1"
{
"name" "Crosshairs Regular"
"tall" "36"
"antialias" "1"
}
}

Finally, go into hudlayout.res in tf/scripts and paste in this:
(again you’ll need to change the X value to whatever crosshair you want using this picture)


Crosshair
{
"controlName" "CExLabel"
"fieldName" "CrossHair"
"visible" "1"
"enabled" "1"
"xpos" "c-15"
"ypos" "c-15"
"wide" "30"
"tall" "30"
"font" "Crosshair"
"labelText" "X"
"zpos" "-4"
"textAlignment" "center"
"fgcolor" "255 255 255 255"
}

You also might need to fiddle around with the xpos and ypos values to get it centered.

If you couldn’t be bothered to follow this, I don’t blame you but that doesn’t stop me being annoyed

EDIT: I changed the name in clientscheme from crosshairs to crosshairs regular and it works


Last edited by Starkie,

ijamzo

[CR]

Quoted from Starkie

To get a circle crosshair you need a font with a circle in it.
Fog’s Custom Crosshairs

Go into tf/resource and extract the crosshairs.ttf into the folder.
After, open clientscheme.res and scroll right to the bottom
Paste this in and replace the X value with the next number along.
For instance, the entries may be going
“8”
{


}
“9”
{


}
Change the X value in the following entry to the next number along, so in the previous case X would be “10”.

"X"
{
"font" "resource/crosshairs.ttf"
"name" "crosshairs"
}

Then go up to the fonts section (you’ll see a big /////// fonts ////// line) and copy this line into it


"Crosshair"
{
"1"
{
"name" "crosshairs"
"tall" "36"
"antialias" "1"
}
}

Finally, go into hudlayout.res in tf/scripts and paste in this:
(again you’ll need to change the X value to whatever crosshair you want using this picture)


Crosshair
{
"controlName" "CExLabel"
"fieldName" "CrossHair"
"visible" "1"
"enabled" "1"
"xpos" "c-15"
"ypos" "c-15"
"wide" "30"
"tall" "30"
"font" "Crosshair"
"labelText" "X"
"zpos" "-4"
"textAlignment" "center"
"fgcolor" "255 255 255 255"
}

You also might need to fiddle around with the xpos and ypos values to get it centered.

If you couldn’t be bothered to follow this, I don’t blame you but that doesn’t stop me being annoyed

This is what happened when i did that: http://i.imgur.com/kanFr.png
The issue with this method may be because im on a Mac :3

arD

-[S2L]

sorry phone doubl post


Last edited by arD,

arD

-[S2L]

Install the font that helped me once in the same situation. Dunno if it works or not

Starkie

ulti?
sniper

Quoted from arD

Install the font that helped me once in the same situation. Dunno if it works or not

This pretty much, the custom fonts act very oddly sometimes

ijamzo

[CR]

Quoted from Starkie

[…]
This pretty much, the custom fonts act very oddly sometimes

Installed it, still the same thing. i’ve heard of other methods of doing it, just not sure how.

Garm3n

SdX BLU
sdx

Add me on Steam if you want and i’ll help you.

ijamzo

[CR]

Quoted from Garm3n

Add me on Steam if you want and i’ll help you.

Your friends list seems to be full, add me – http://steamcommunity.com/id/iJamzo/


Last edited by ijamzo,

ijamzo

[CR]

Ok nevermind about this, i found this and it looks pretty nice. http://i.imgur.com/FGjgR.png
The only thing is the numbers are waay to big, if anyone could tell me how to make them smaller ide love that :)

Edit: Never mind, done it. http://puu.sh/1qPay


Last edited by ijamzo,

Add A Reply Pages: 1