Forum

Xhair problem

Created 31st March 2010 @ 19:12

Add A Reply Pages: 1 2 3 Next »

shank

vs

anyone got any idea how i could make my own xhair?
Coz atm i only got 5 shapes and i can change size…
But i would like to change the shape of the xhair too (make my own and add them to the defalutn ones)

droso

o/

Quoted from shank

But i would like to change the shape of the xhair too (make my own and add them to the defalutn ones)

It won’t work on a match server as sv_pure is set to 2.

Vazzan

TwistedPlay.

I think you can use it on pure 2 servers the same way you can use custom huds

Skyride

DUCS

Nope. Custom crosshairs cannot be used on sv_pure 2 servers. :(

pena

Techincally you can make a hud that is a crosshair. Other than that, no.

Vad

Quoted from pena

Techincally you can make a hud that is a crosshair. Other than that, no.

This. I made few crosshairs for myself in a custom font.
http://img2.pict.com/33/8f/d2/2781198/0/cpbadlands0074.jpg
Although it’s pain in the ass to make it exactly in the center of the screen.

numlocked

(king of all rollouts)
Epsilon

http://www.youtube.com/watch?v=8hhetvbEpNI

it can be done

Atty

ORKZORKZORKZORK

Quoted from Vad

[…]
This. I made few crosshairs for myself in a custom font.
http://img2.pict.com/33/8f/d2/2781198/0/cpbadlands0074.jpg
Although it’s pain in the ass to make it exactly in the center of the screen.

Sweet crosshair!
Fancy uploading it somewhere?
Also, will that crosshair work on other classes as well?

Piggeh

Poo
Poo

Quoted from Vad

[…]
This. I made few crosshairs for myself in a custom font.
http://img2.pict.com/33/8f/d2/2781198/0/cpbadlands0074.jpg
Although it’s pain in the ass to make it exactly in the center of the screen.

That looks awesome :) u mind uploading the crosshairs?

ell

(ETF2L Donator)

Note: If you don’t know how this works and want to achieve something simular, read this first. http://www.google.se/url?sa=t&source=web&ct=res&cd=1&ved=0CAYQFjAA&url=http%3A%2F%2Fflamehud.googlecode.com%2Ffiles%2FFlameHUD.pdf&rct=j&q=flames+guide+to+huds&ei=m3fES8TPCp6cOMmiqeAP&usg=AFQjCNHBA339zvKeG93n-aYtHnEMa5ge5w If something is unclear after that, hit me up on steam or whatever and I try to help you. Or even better, go terrorize numlocked :)

If your crosshair has a simple structure, like mine has, it might be just as easy to put rectangles directly in the hud. In theory you can paint any picture that fits this way, by manipulating individual pixels. Advatages of a hud crosshair over the built-in counterpart:
(1) Obviously you can customize your crosshair however you like.
(2) The standard crosshair has blurry edges, the hud ones are razer sharp.
(3) The annoying ambassador crosshair scaling will no longer be present. If desired you can still put an in-game crosshair on top of the hud crosshair to help timeing your shots. http://img526.imageshack.us/img526/209/hudch.png

I use the following code in combination with Flame’s hud on 640×480 to achieve this. http://img146.imageshack.us/img146/40/linkhudch.png Fail indentation since tabs aren’t recognized.

//PUT THIS IN HUDLAYOUT.RES
HudPlayerClass.res
{
“fieldName” “HudPlayerClass”
“visible” “1”
“enabled” “1”
“xpos” “315”
“ypos” “235”
“wide” “10”
“tall” “10”
}

//PUT THIS IN HUDPLAYERCLASS.RES
“Resource/UI/HudPlayerClass.res”
{
“HudPlayerClass”
{
“ControlName” “EditablePanel”
“fieldName” “HudPlayerClass”
“xpos” “315”
“ypos” “235”
“zpos” “7”
“wide” “10”
“tall” “10”
“visible” “1”
“enabled” “1”
}
“YAxis”
{
“ControlName” “ImagePanel”
“fieldName” “YAxis”
“xpos” “4”
“ypos” “0”
“zpos” “8”
“wide” “2”
“tall” “10”
“visible” “1”
“enabled” “1”
“fillcolor” “0 255 0 255”
}

“XAxis”
{
“ControlName” “ImagePanel”
“fieldName” “XAxis”
“xpos” “0”
“ypos” “4”
“zpos” “9”
“wide” “10”
“tall” “2”
“visible” “1”
“enabled” “1”
“fillcolor” “0 255 0 255”
}
“PlayerStatusClassImage”
{
“ControlName” “CTFImagePanel”
“fieldName” “PlayerStatusClassImage”
“xpos” “c-286″ //”35”
“ypos” “r36”
“zpos” “3”
“wide” “37”
“tall” “37”
“visible” “0”
“enabled” “0”
“image” “../hud/class_scoutred”
“scaleImage” “1”
}
“PlayerStatusSpyImage”
{
“ControlName” “CTFImagePanel”
“fieldName” “PlayerStatusSpyImage”
“xpos” “c-310″ //”20”
“ypos” “r52”
“zpos” “2”
“wide” “55”
“tall” “55”
“visible” “0”
“enabled” “0”
“image” “../hud/class_spyred”
“teambg_2” “../hud/class_spyred”
“teambg_3” “../hud/class_spyblue”
}
“PlayerStatusSpyOutlineImage”
{
“ControlName” “CTFImagePanel”
“fieldName” “PlayerStatusSpyOutlineImage”
“xpos” “-15”
“ypos” “r44”
“zpos” “7”
“wide” “27”
“tall” “27”
“visible” “0”
“enabled” “0”
“image” “../hud/class_spy_outline”
}
“PlayerStatusClassImageBG”
{
“ControlName” “CTFImagePanel”
“fieldName” “PlayerStatusClassImageBG”
“wide” “0”
“tall” “0”
“visible” “0”
“enabled” “0”
}
}

The entities of interest are:
HudPlayerClass – the 10×10 area containing the crosshair
XAxis – a green rectangle of size 10×2
YAxis – a green rectangle of size 2×10
I keep the other entitites, simply because my crosshair area would otherwise go white while disguising, for some odd reason. Some of it can probably be taken away, and the PlayerClass name could probably be changed to something else to better reflect what it does. I haven’t yet figured out exactly how everything works.

I would be interesting if someone with a font based crosshair could share their code too and tell what tools they use to edit the font.


Last edited by ell,

maggles!

[DA]
[DA]

someone with more time and tallent than me needs to make a hud xhair with the shotgun pellet spred hignlighted, as per my old ns days <3

shank

vs

^+1

Erazed

Poo

Quoted from maggles!

someone with more time and tallent than me needs to make a hud xhair with the shotgun pellet spred hignlighted, as per my old ns days <3

Someone do this please.

dannye

cb.

Quoted from Erazed

[…]

Someone do this please.

i found someone http://etf2l.org/forum/user/19567/

Zappah

nou

Quoted from Vad

[…]
This. I made few crosshairs for myself in a custom font.
http://img2.pict.com/33/8f/d2/2781198/0/cpbadlands0074.jpg
Although it’s pain in the ass to make it exactly in the center of the screen.

Epic :o
upload it please? :)

Add A Reply Pages: 1 2 3 Next »