Upvote Upvoted 2 Downvote Downvoted
Animating Crosshair! Help!
posted in Q/A Help
1
#1
1 Frags +

Hi all,
So, I'm using these crosshairs here:
http://teamfortress.tv/forum/thread/12383-real-custom-crosshairs-from-ozfortress
but i really want them to blink red, as seen on mangachu's stream, when i damage someone. however, i am having trouble doing it. could anyone help me? i'm bad with hud and crosshair editing, so you might need to hold my hand and walk me through it a bit.

Hi all,
So, I'm using these crosshairs here:
http://teamfortress.tv/forum/thread/12383-real-custom-crosshairs-from-ozfortress
but i really want them to blink red, as seen on mangachu's stream, when i damage someone. however, i am having trouble doing it. could anyone help me? i'm bad with hud and crosshair editing, so you might need to hold my hand and walk me through it a bit.
2
#2
2 Frags +

Have not looked at his files but i'm fairly sure he just has a hud crosshair with color set to 0 0 0 0 and has it turn red on hit.

Have not looked at his files but i'm fairly sure he just has a hud crosshair with color set to 0 0 0 0 and has it turn red on hit.
3
#3
1 Frags +

i'm not fimiliar with these crosshairs, but having them change when you damage someone may not work since they're built into TF2.

for my custom crosshair, i set the color of it in hudlayout.res to "0 0 255 0" (meaning the color is red, but it is fully transparent and therefore not seen). Then I pasted this text into hudanimations_tf.txt:

event DamagedPlayer
{
Animate KonrWings FgColor "255 0 0 255" Linear 0.0 0.00001
Animate KonrWings FgColor "255 0 0 0" Linear 0.10 0.10001
}

That makes konrwings appear when I hit someone, then disappear a second later.

idk if any of that helps, but i thought i'd pitch in

i'm not fimiliar with these crosshairs, but having them change when you damage someone may not work since they're built into TF2.

for my custom crosshair, i set the color of it in hudlayout.res to "0 0 255 0" (meaning the color is red, but it is fully transparent and therefore not seen). Then I pasted this text into hudanimations_tf.txt:
[code]
event DamagedPlayer
{
Animate KonrWings FgColor "255 0 0 255" Linear 0.0 0.00001
Animate KonrWings FgColor "255 0 0 0" Linear 0.10 0.10001
}
[/code]

That makes konrwings appear when I hit someone, then disappear a second later.

idk if any of that helps, but i thought i'd pitch in
4
#4
0 Frags +

ok, so i used both of your great answers and made it work. however, the normal crosshair that i use covers up the hud crosshair that blinks red on damage. any way to bring the hud crosshair to the forefront and make it on top of the other crosshair?

ok, so i used both of your great answers and made it work. however, the normal crosshair that i use covers up the hud crosshair that blinks red on damage. any way to bring the hud crosshair to the forefront and make it on top of the other crosshair?
5
#5
0 Frags +

Change the crosshair's target name, so that if your crosshair is a dot or cross, name it.
EXAMPLE:

event DamagedPlayer
{
Animate xHair FgColor "255 0 0 255" Linear 0.0 0.00001
Animate xHair FgColor "255 0 0 0" Linear 0.10 0.10001
}

Change the crosshair's target name, so that if your crosshair is a dot or cross, name it.
EXAMPLE:

event DamagedPlayer
{
Animate xHair FgColor "255 0 0 255" Linear 0.0 0.00001
Animate xHair FgColor "255 0 0 0" Linear 0.10 0.10001
}
6
#6
0 Frags +

yeah i got it to flash on damage, Fenryr, but it is behind my normal crosshair, so i can't see it change color, because it is obscured by my other crosshair, a non-hud crosshair.

yeah i got it to flash on damage, Fenryr, but it is behind my normal crosshair, so i can't see it change color, because it is obscured by my other crosshair, a non-hud crosshair.
7
#7
1 Frags +
Maevyeah i got it to flash on damage, Fenryr, but it is behind my normal crosshair, so i can't see it change color, because it is obscured by my other crosshair, a non-hud crosshair.

Can we get a screenshot?

Not sure what you exactly mean so... I can't really help .-.

[quote=Maev]yeah i got it to flash on damage, Fenryr, but it is behind my normal crosshair, so i can't see it change color, because it is obscured by my other crosshair, a non-hud crosshair.[/quote]
Can we get a screenshot?

Not sure what you exactly mean so... I can't really help .-.
8
#8
0 Frags +

heres the screens: http://imgur.com/a/zhcZK#0
the first one is the crosshair i want to use (the cross with the circle around it) as you can see, the blinking red on damage crosshair is not there
second one is just to clarify that the red when damaged does in fact work.

heres the screens: http://imgur.com/a/zhcZK#0
the first one is the crosshair i want to use (the cross with the circle around it) as you can see, the blinking red on damage crosshair is not there
second one is just to clarify that the red when damaged does in fact work.
9
#9
2 Frags +

Change the zpos of your hud crosshair (the one that you want on top) to a higher value. Zpos controls what "layer" of the hud the element is present on; in other words, how close or far away it is from you as well as if it is underneath or above something. Assuming you're using the green circle crosshair as an in-game crosshair with the method described in the "REAL custom crosshairs" thread it will need to be a higher zpos than the default tf2 crosshairs. Try a pretty high one.

Change the zpos of your hud crosshair (the one that you want on top) to a higher value. Zpos controls what "layer" of the hud the element is present on; in other words, how close or far away it is from you as well as if it is underneath or above something. Assuming you're using the green circle crosshair as an in-game crosshair with the method described in the "REAL custom crosshairs" thread it will need to be a higher zpos than the default tf2 crosshairs. Try a pretty high one.
10
#10
1 Frags +

thanks hanbrolo! your fix fixed it! thank you <3

thanks hanbrolo! your fix fixed it! thank you <3
Please sign in through STEAM to post a comment.