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! 
x
To those who participated in the Highlander Season 32 (Summer 2024), please fill out this Feedback Form for the current & next Highlander seasons!

Forum

Color changing xhair

Created 23rd August 2012 @ 20:00

Add A Reply Pages: 1

Hitm@n

Hey guys, I was wondering if it’s possible to make your xhair (circle for example) change color when you change weapon like it’s possible with custom crosshairs built in TF2. Does anyone know if it’s possible? If you do, please tell me how :P. Thx

Cheers

rytis

PrettyGay

tf2mate does that i’m pretty sure

Hitm@n

Quoted from rytis

tf2mate does that i’m pretty sure

Yes, but it has only crosshairs already included in TF2. I’d like to have that sexy cross from quake (it’s more sexier than that TF2 one).

rytis

PrettyGay

Quoted from Hitm@n

[…] Yes, but it has only crosshairs already included in TF2. I’d like to have that sexy cross from quake (it’s more sexier than that TF2 one).

my bad then sorry :D

atmo

use hud xhaircircles for outlines and then fill with normal tf2 crosshair which changes colour

Brov

It is possible to have the crosshair changing color at certain situations like low health, low ammo, damaged player and some other situations but I don’t think it works with weapons :s

Hitm@n

Ok, thanks for your answers guys ;). Now lets forget about changing color with weapons and instead of that please give me an advice about changing color when I hit someone

rytis

PrettyGay

Quoted from Hitm@n

Ok, thanks for your answers guys ;). Now lets forget about changing color with weapons and instead of that please give me an advice about changing color when I hit someone

pulsing crosshairs?
garm3n hud has that, download it. It has a readme how to do them

Hitm@n

Quoted from rytis

[…]
pulsing crosshairs?
garm3n hud has that, download it. It has a readme how to do them

My bad I forgot to say that I want to import it from garm3n to KNhud… I was looking at garm3n but i didn’t rly get how it works

Brov

Quoted from Hitm@n

[…] My bad I forgot to say that I want to import it from garm3n to KNhud… I was looking at garm3n but i didn’t rly get how it works

In order to use damage pulsing crosshairs go to HudAnimations_tf at the scripts folder.
Search for ‘DamagedPlayer’, after doing that add the following code to the event DamagedPlayer section:

event DamagedPlayer
{
Animate insertcrosshairname FgColor "255 0 0 255" Linear 0.0 0.0
Animate insertcrosshairname FgColor "255 255 255 255" Linear 0.15 0.0
}

In order to find out the name of the crosshair you are using go to hudlayout.res at the scripts folder and look for the section of the crosshair you ticked ‘visible’ ‘1’ at.
Afterwards, replace ‘insertcrosshairname’ with the crosshair you are using.

You can modify the color the crosshair will pulse to by changing the values at the “255 0 0 255” (Currently red) in the first line of the code.
You can also modify the color your crosshair will change to after the damage pulse by changing the values at the “255 255 255 255” (Currently white) in the second line of the code.

Hitm@n

Quoted from Brov

[…]

In order to use damage pulsing crosshairs go to HudAnimations_tf at the scripts folder.
Search for ‘DamagedPlayer’, after doing that add the following code to the event DamagedPlayer section:

event DamagedPlayer
{
Animate insertcrosshairname FgColor "255 0 0 255" Linear 0.0 0.0
Animate insertcrosshairname FgColor "255 255 255 255" Linear 0.15 0.0
}

In order to find out the name of the crosshair you are using go to hudlayout.res at the scripts folder and look for the section of the crosshair you ticked ‘visible’ ‘1’ at.
Afterwards, replace ‘insertcrosshairname’ with the crosshair you are using.

You can modify the color the crosshair will pulse to by changing the values at the “255 0 0 255” (Currently red) in the first line of the code.
You can also modify the color your crosshair will change to after the damage pulse by changing the values at the “255 255 255 255” (Currently white) in the second line of the code.

Thank you very much m8 ;)

Could be a good topic to ask that: Can you also have your standard crosshairs color changing when you do damage? :)

Brov

Quoted from Peign slays dragons

Could be a good topic to ask that: Can you also have your standard crosshairs color changing when you do damage? :)

No, it’s only possible with hud crosshairs :s

Quoted from Brov

[…]
No, it’s only possible with hud crosshairs :s

Aw screw that… :D Anyway ty!

atmo

Quoted from Peign slays dragons

Could be a good topic to ask that: Can you also have your standard crosshairs color changing when you do damage? :)

yes

you recreate your normal crosshair using the hud and then make it have a opacity / alpha of 0, then when you hit someone you make the alpha 255


Last edited by atmo,

Add A Reply Pages: 1