Upvote Upvoted 1 Downvote Downvoted
Crosshair damage broeselhud
posted in Customization
1
#1
0 Frags +

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

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
2
#2
0 Frags +

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
}
[b]IF IT DOESNT WORK TELL ME[/b]
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]
3
#3
0 Frags +
VinylStormIF IT DOESNT WORK TELL ME

Doesnt work :(

[quote=VinylStorm][b]IF IT DOESNT WORK TELL ME[/b]
[/quote]

Doesnt work :(
4
#4
0 Frags +
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
Animate Crosshair1 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
}

should now work

[quote=VinylStorm][b]IF IT DOESNT WORK TELL ME[/b]
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
5
#5
0 Frags +
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
Animate Crosshair1 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
}

should now work

Actually, it's "Crosshair01" but yeah it should work.

[quote=T0m][quote=VinylStorm][b]IF IT DOESNT WORK TELL ME[/b]
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.
6
#6
1 Frags +

my bad, didnt realise he changed the number in 2.7

my bad, didnt realise he changed the number in 2.7
7
#7
1 Frags +

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.

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.
8
#8
0 Frags +

I know a couple people including myself have had this problem with broeselhud before so i'll quickly explain how he "labels" his crosshairs.

http://puu.sh/4r69M.png

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

http://puu.sh/4r6dU.png

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.

I know a couple people including myself have had this problem with broeselhud before so i'll quickly explain how he "labels" his crosshairs.

[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.
Please sign in through STEAM to post a comment.