Upvote Upvoted 4 Downvote Downvoted
hitmarker?
posted in Customization
1
#1
3 Frags +

I found out that you can make a hitmarker in TF2, so I was messing around, and I was wondering if you could make the event instead of changing the color, change the visibility of the crosshair? I want a konrwings crosshair to flash when I hit someone, but I couldn't figure it out myself. Anybody have an idea?

I found out that you can make a hitmarker in TF2, so I was messing around, and I was wondering if you could make the event instead of changing the color, change the visibility of the crosshair? I want a konrwings crosshair to flash when I hit someone, but I couldn't figure it out myself. Anybody have an idea?
2
#2
0 Frags +

when messing with the colors, you can also change the opacity of the xhair. Just change the color from 0 0 0 0 to the color of your choice and 255

when messing with the colors, you can also change the opacity of the xhair. Just change the color from 0 0 0 0 to the color of your choice and 255
3
#3
-4 Frags +

yes

yes
4
#4
1 Frags +

So I made the fgcolor of konrwings 255 0 0 0 in hudlayout, then I put this in hudanimations_tf.txt:

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

It's still not working though. I thought I might've named the crosshair wrong, but i tried konrwings, konrwings24, and even Garm3nFont and it didn't change.

Also, does editing the animations file require restart or just hud_reloadscheme?

So I made the fgcolor of konrwings 255 0 0 0 in hudlayout, then I put this in hudanimations_tf.txt:

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

It's still not working though. I thought I might've named the crosshair wrong, but i tried konrwings, konrwings24, and even Garm3nFont and it didn't change.

Also, does editing the animations file require restart or just hud_reloadscheme?
5
#5
1 Frags +

has to be 255 0 0 255 in hudlayout, 255 0 0 0 in hudanimations and for the hit 255 0 0 255

has to be 255 0 0 255 in hudlayout, 255 0 0 0 in hudanimations and for the hit 255 0 0 255
6
#6
1 Frags +
TrollHunterhas to be 255 0 0 255 in hudlayout, 255 0 0 0 in hudanimations and for the hit 255 0 0 255

That makes konrwings appear, and when I hit someone nothing happens

[quote=TrollHunter]has to be 255 0 0 255 in hudlayout, 255 0 0 0 in hudanimations and for the hit 255 0 0 255[/quote]
That makes konrwings appear, and when I hit someone nothing happens
7
#7
1 Frags +

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
}

hudlayout = 255 0 0 255

save + hud_reloadscheme

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
}

hudlayout = 255 0 0 255

save + hud_reloadscheme
8
#8
1 Frags +
TrollHunterevent 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
}

hudlayout = 255 0 0 255

save + hud_reloadscheme

I did that exactly and konrwings is on the screen at all times.

Do you think it's how I'm naming it?

[quote=TrollHunter]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
}

hudlayout = 255 0 0 255

save + hud_reloadscheme[/quote]
I did that exactly and konrwings is on the screen at all times.

Do you think it's how I'm naming it?
9
#9
3 Frags +

http://cloud-2.steampowered.com/ugc/599266384681206406/9E06E6FA5E953465D77D2218629D223AFA54325D/

event DamagedPlayer
{
Animate BasicCross FgColor "255 0 0 255" Linear 0.0 0.0
Animate BasicCross FgColor "127 255 0 255" Linear 0.15 0.0

Animate good FgColor "255 255 255 255" Linear 0.0 0.0000001
Animate good FgColor "255 255 255 0" Linear 0.15 0.1

Animate job FgColor "255 255 255 255" Linear 0.0 0.00000001
Animate job FgColor "255 255 255 0" Linear 0.15 0.1
}

The first two lines are for making the crosshair flash red. The next four are what you probably want to look at. I have the words "good job" flash on my screen like a hit marker when I do damage.

In your hudlayout.res file you need to make sure the opacity is at 0 so it won't appear when you aren't doing damage.

[img]http://cloud-2.steampowered.com/ugc/599266384681206406/9E06E6FA5E953465D77D2218629D223AFA54325D/[/img]

event DamagedPlayer
{
Animate BasicCross FgColor "255 0 0 255" Linear 0.0 0.0
Animate BasicCross FgColor "127 255 0 255" Linear 0.15 0.0


Animate good FgColor "255 255 255 255" Linear 0.0 0.0000001
Animate good FgColor "255 255 255 0" Linear 0.15 0.1


Animate job FgColor "255 255 255 255" Linear 0.0 0.00000001
Animate job FgColor "255 255 255 0" Linear 0.15 0.1
}

The first two lines are for making the crosshair flash red. The next four are what you probably want to look at. I have the words "good job" flash on my screen like a hit marker when I do damage.

In your hudlayout.res file you need to make sure the opacity is at 0 so it won't appear when you aren't doing damage.
10
#10
1 Frags +

I copied your even word for word (except changing "good" to "KonrWings"), and nothing happens when I hit someone.

I copied your even word for word (except changing "good" to "KonrWings"), and nothing happens when I hit someone.
11
#11
1 Frags +

Make sure that whatever your KonrWings is called in hudlayout.res is being used in the event DamagedPlayer section too.

Make sure that whatever your KonrWings is called in hudlayout.res is being used in the event DamagedPlayer section too.
12
#12
-4 Frags +

i think crosshairs can help you aim a little bit better, but they certainly can't help you that much

i think crosshairs can help you aim a little bit better, but they certainly can't help you that much
13
#13
0 Frags +
MunchMake sure that whatever your KonrWings is called in hudlayout.res is being used in the event DamagedPlayer section too.

It's topmost text in the HUD definition right?

[quote=Munch]Make sure that whatever your KonrWings is called in hudlayout.res is being used in the event DamagedPlayer section too.[/quote]
It's topmost text in the HUD definition right?
14
#14
0 Frags +

good
{
"controlName" "CExLabel"
"fieldName" "good"
"font" "CerbeticaBold24"
"visible" "1"
"enabled" "1"
"zpos" "2"

"xpos" "c-215"
"ypos" "c-80"
"wide" "400"
"tall" "200"

//"font" "xHairCircleOutline"
"font" "xHairCircle"
"labelText" "good"
"textAlignment" "center"

"fgcolor" "255 255 255 0"
"alpha" "255"
}
This is what my "hitmarker" looks like in hudlayout.res. Find the crosshair you want (will probably be called KonrWings if you have it in your hud already) and make sure that visible and enabled are set to 1. You also want to make sure the last number in "fgcolor" is set to 0, the rest it doesn't matter, just depends on what color you want the crosshair to be when it appears. You won't want to copy exactly what I have here because it'll probably position it below your crosshair like mine is and mine is also positioned specifically for my resolution. Just scrounge around in your hudlayout.res file and see if you can find the crosshair you want to have as a hitmarker in there and make sure it's set up properly, otherwise it won't matter what you put in the animations file because it won't show up anyways.

good
{
"controlName" "CExLabel"
"fieldName" "good"
"font" "CerbeticaBold24"
"visible" "1"
"enabled" "1"
"zpos" "2"

"xpos" "c-215"
"ypos" "c-80"
"wide" "400"
"tall" "200"

//"font" "xHairCircleOutline"
"font" "xHairCircle"
"labelText" "good"
"textAlignment" "center"

"fgcolor" "255 255 255 0"
"alpha" "255"
}
This is what my "hitmarker" looks like in hudlayout.res. Find the crosshair you want (will probably be called KonrWings if you have it in your hud already) and make sure that visible and enabled are set to 1. You also want to make sure the last number in "fgcolor" is set to 0, the rest it doesn't matter, just depends on what color you want the crosshair to be when it appears. You won't want to copy exactly what I have here because it'll probably position it below your crosshair like mine is and mine is also positioned specifically for my resolution. Just scrounge around in your hudlayout.res file and see if you can find the crosshair you want to have as a hitmarker in there and make sure it's set up properly, otherwise it won't matter what you put in the animations file because it won't show up anyways.
15
#15
0 Frags +
eggtarti think crosshairs can help you aim a little bit better, but they certainly can't help you that much

just having one is all I need.

[quote=eggtart]i think crosshairs can help you aim a little bit better, but they certainly can't help you that much[/quote]
just having one is all I need.
16
#16
0 Frags +

I think there is something wrong with my tf2, as i cant even make a simple hitmarker of changing the crosshair color to red

I think there is something wrong with my tf2, as i cant even make a simple hitmarker of changing the crosshair color to red
Please sign in through STEAM to post a comment.