Forum

DamagedPlayer HUD item

Created 2nd February 2012 @ 22:32

Add A Reply Pages: 1 2 3 Next »

MIndYe

[hePPa]

So basically hitmarker for TF2? I want my HUD crosshair (M0recross) to pulse in red when I hit someone! Someone do it for me cause I can’t. :(

Edit: Quote from the update.

Added “DamagedPlayer” animation event for the HUD, fired when the local player damages other players

murje

sirkkels
[hePPa]

You already have dingaling and damage numbers. How hard is it to tell if you hit someone? :P

Nikola

I think thats not possible to do in tf2.

Nikola

nvm

MIndYe

[hePPa]

Quoted from murje

You already have dingaling and damage numbers. How hard is it to tell if you hit someone? :P

Need… More… Proof… Of… AIM!!
(And bad hitreg)

Bryn

Quoted from MIndYe

So basically hitmarker for TF2? I want my HUD crosshair (M0recross) to pulse in red when I hit someone! Someone do it for me cause I can’t. :(

Edit: Quote from the update.

Added “DamagedPlayer” animation event for the HUD, fired when the local player damages other players

Go to tf folder, open scripts/hudAnimations_tf.txt

go to where it has
event DamagedPlayer
{
//empty
}

replace with
event DamagedPlayer
{
Animate M0rexhairCross FgColor "255 0 0 255" Linear 0.0 0.00001
Animate M0rexhairCross FgColor "255 255 255 255" Linear 0.15 0.15001
}

If you want to change the length of time of the flash, it’s the 0.15 0.15001, just change them until you like it. E.g. 0.5 0.5001 etc.

Edit for grammar

MIndYe

[hePPa]

Quoted from Bryn

[…]
Go to tf folder, open scripts/hudAnimations_tf.txt

go to where it has
event DamagedPlayer
{
//empty
}

replace with
event DamagedPlayer
{
Animate M0rexhairCross FgColor "255 0 0 255" Linear 0.0 0.00001
Animate M0rexhairCross FgColor "255 255 255 255" Linear 0.15 0.15001
}

If you want to change the length of time of the flash, it’s the 0.15 0.15001, just change them until you like it. E.g. 0.5 0.5001 etc.

Edit for grammar

I love you!!!!

MR JOHNSON

(^-^)v

Flashing hud crosshair http://www.youtube.com/watch?v=BmdG7xtBQb8
Flashing crosshair superimposed on in-game crosshair http://www.youtube.com/watch?v=bUWuQvKV8XY
Same but with default crosshair, superimposed with a dot http://www.youtube.com/watch?v=hp4JzyMel4I
Crosshair “growing” when damage http://www.youtube.com/watch?v=DdUg0sAZer4

With Bryn’s event.

atmo

How would you do this with PVhud and the default crosshair?

broesel

LAME

Quoted from atmo

How would you do this with PVhud and the default crosshair?

You can’t. This works with HUD crosshairs because the animation is triggered by an event in the HUD animations file, whereas the color of regular crosshairs is altered with cvars (which can not be called at a HUD event).

atmo

Hmm..

well I got the xHairCircle to flash red on pvhud with

event DamagedPlayer
{
Animate xHairCircle FgColor “255 0 0 255”
Linear 0.0 0.00001
Animate xHairCircle FgColor “255 255 255 48”
Linear 0.15 0.15001
}

I’m streaming live if you want to see what it looks like – http://twitch.tv/atmo_

atmo

Quoted from broesel

[…]

You can’t. This works with HUD crosshairs because the animation is triggered by an event in the HUD animations file, whereas the color of regular crosshairs is altered with cvars (which can not be called at a HUD event).

could you superimpose something over the normal xhair though?

Hildreth

Bully
Pander

Feel like this is only useful if your teammates could see the people getting damaged so they know who you’re damaging straight away.

I don’t really see how this is useful :/

For me it would just probably be super distracting.

Enef

fest
#wubafan

So, not only could you use this to change your xhair colour on hit, you could make it give you a cod like hit marker? Any explanation or anything people can give would be awesome.

Add A Reply Pages: 1 2 3 Next »