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?
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
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?
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?
has to be 255 0 0 255 in hudlayout, 255 0 0 0 in hudanimations and for the hit 255 0 0 255
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
That makes konrwings appear, and when I hit someone nothing happens
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
{
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
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?
{
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?
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.
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.
I copied your even word for word (except changing "good" to "KonrWings"), and nothing happens when I hit someone.
Make sure that whatever your KonrWings is called in hudlayout.res is being used in the event DamagedPlayer section too.
i think crosshairs can help you aim a little bit better, but they certainly can't help you that much
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?
It's topmost text in the HUD definition right?
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.
{
"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.
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.
just having one is all I need.