I use default broeselhud 2.7 and would like to have the cross (very first hud crosshair in hudlayout) to flash red when I hit someone, but the elements in hudlayout confuse me, and I have not been able to get it to work. If someone could do this for me or instruct me how to do it, I would be ever so grateful
IF IT DOESNT WORK TELL ME
If yur trying to get the "cross" then,
*have the cross visible*
1. Open up hudanimations_tf.txt
2. Look for "event DamagedPlayer"
- looks like this ight?
event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
}
3. Add the following:
Animate Cross FgColor "255 0 0 255" Linear 0.0 0.1
Animate Cross FgColor "255 255 255 255" Linear 0.2 0.200001
-Should end up like this:
event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
Animate Cross FgColor "255 0 0 255" Linear 0.0 0.1
Animate Cross FgColor "255 255 255 255" Linear 0.2 0.200001
}
If yur trying to get the "cross" then,
*have the cross visible*
[b]1.[/b] Open up hudanimations_tf.txt
[b]2.[/b] Look for "event DamagedPlayer"
[b]-[/b] looks like this ight?
[quote]event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
}[/quote]
[b]3.[/b] Add the following:
[quote]Animate Cross FgColor "255 0 0 255" Linear 0.0 0.1
Animate Cross FgColor "255 255 255 255" Linear 0.2 0.200001
[/quote]
[b]-[/b]Should end up like this:
[quote]event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
Animate Cross FgColor "255 0 0 255" Linear 0.0 0.1
Animate Cross FgColor "255 255 255 255" Linear 0.2 0.200001
}[/quote]
VinylStormIF IT DOESNT WORK TELL ME
Doesnt work :(
[/quote]
Doesnt work :(
VinylStormIF IT DOESNT WORK TELL ME
If yur trying to get the "cross" then,
*have the cross visible*
1. Open up hudanimations_tf.txt
2. Look for "event DamagedPlayer"
- looks like this ight?
event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
}
3. Add the following:
Animate Crosshair1 FgColor "255 0 0 255" Linear 0.0 0.1-Should end up like this:
Animate Crosshair1 FgColor "255 255 255 255" Linear 0.2 0.200001
event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
Animate Cross FgColor "255 0 0 255" Linear 0.0 0.1
Animate Cross FgColor "255 255 255 255" Linear 0.2 0.200001
}
should now work
If yur trying to get the "cross" then,
*have the cross visible*
[b]1.[/b] Open up hudanimations_tf.txt
[b]2.[/b] Look for "event DamagedPlayer"
[b]-[/b] looks like this ight?
[quote]event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
}[/quote]
[b]3.[/b] Add the following:
[quote]Animate Crosshair1 FgColor "255 0 0 255" Linear 0.0 0.1
Animate Crosshair1 FgColor "255 255 255 255" Linear 0.2 0.200001
[/quote]
[b]-[/b]Should end up like this:
[quote]event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
Animate Cross FgColor "255 0 0 255" Linear 0.0 0.1
Animate Cross FgColor "255 255 255 255" Linear 0.2 0.200001
}[/quote][/quote]
should now work
T0mVinylStormIF IT DOESNT WORK TELL ME
If yur trying to get the "cross" then,
*have the cross visible*
1. Open up hudanimations_tf.txt
2. Look for "event DamagedPlayer"
- looks like this ight?
event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
}
3. Add the following:
Animate Crosshair1 FgColor "255 0 0 255" Linear 0.0 0.1-Should end up like this:
Animate Crosshair1 FgColor "255 255 255 255" Linear 0.2 0.200001
event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
Animate Cross FgColor "255 0 0 255" Linear 0.0 0.1
Animate Cross FgColor "255 255 255 255" Linear 0.2 0.200001
}
should now work
Actually, it's "Crosshair01" but yeah it should work.
If yur trying to get the "cross" then,
*have the cross visible*
[b]1.[/b] Open up hudanimations_tf.txt
[b]2.[/b] Look for "event DamagedPlayer"
[b]-[/b] looks like this ight?
[quote]event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
}[/quote]
[b]3.[/b] Add the following:
[quote]Animate Crosshair1 FgColor "255 0 0 255" Linear 0.0 0.1
Animate Crosshair1 FgColor "255 255 255 255" Linear 0.2 0.200001
[/quote]
[b]-[/b]Should end up like this:
[quote]event DamagedPlayer
{
Animate DamageAccountValue Alpha "255" linear 0.0 0.0
Animate DamageAccountValue Alpha "0" linear 10.0 0.2
Animate DamageAccountValueBG Alpha "255" linear 0.0 0.0
Animate DamageAccountValueBG Alpha "0" linear 10.0 0.2
Animate Cross FgColor "255 0 0 255" Linear 0.0 0.1
Animate Cross FgColor "255 255 255 255" Linear 0.2 0.200001
}[/quote][/quote]
should now work[/quote]
Actually, it's "Crosshair[b]0[/b]1" but yeah it should work.
my bad, didnt realise he changed the number in 2.7
C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\custom\userstuff\scripts\hudanimations_tf.txt
Under "event DamagedPlayer" add:
Animate Crosshair01 FgColor "255 0 0 255" Linear 0.0 0.00001
Animate Crosshair01 FgColor "255 255 0 255" Linear 0.10 0.10001
I use it like this, definitely works. 0.10/0.10001 or 0.2/0.20001 determines the duration of the flash.
Under "event DamagedPlayer" add:
Animate Crosshair01 FgColor "255 0 0 255" Linear 0.0 0.00001
Animate Crosshair01 FgColor "255 255 0 255" Linear 0.10 0.10001
I use it like this, definitely works. 0.10/0.10001 or 0.2/0.20001 determines the duration of the flash.
I know a couple people including myself have had this problem with broeselhud before so i'll quickly explain how he "labels" his crosshairs.
This is what you should see when you open HudLayout.res if you've looked at other hud crosshairs you might notice that there is a large amount of information missing. Specifically the fieldname for the crosshair.
If you scroll over a bit more you will find this
If you want to do anything with the crosshair (animations ect ect) you will need to use the feildname. Took me far longer than i'd like to admit to figure out this is how he did it. My crosshair numbers might be different as i'm using 2.5 instead of 2.7.
[img]http://puu.sh/4r69M.png[/img]
This is what you should see when you open HudLayout.res if you've looked at other hud crosshairs you might notice that there is a large amount of information missing. Specifically the fieldname for the crosshair.
If you scroll over a bit more you will find this
[img]http://puu.sh/4r6dU.png[/img]
If you want to do anything with the crosshair (animations ect ect) you will need to use the feildname. Took me far longer than i'd like to admit to figure out this is how he did it. My crosshair numbers might be different as i'm using 2.5 instead of 2.7.