natf2 is shutting down, head over to teamfortress.tv for all of your TF2 coverage.

 
#1
0
synchro  Steam
high
Medium_bb2b3030ac8da647697df94d85c1a6b0
Registered: September 2011
Posts: 1033

Garmen HUD has this nifty feature where hitting someone flashes your crosshair red. I'm trying to copy it over to use in a different HUD, but I have no idea where it's getting the notice to flash - anybody know how that works?


Big Shot Gaming - MI LAN Party, Fall 2012
website
facebook event
steam group

Mon, 09 Jul 2012, 10:30pm
#2
1
tragic  Steam
mid+
Registered: September 2011
Posts: 320

scripts/HudAnimations_tf


Mon, 09 Jul 2012, 10:42pm
#3
4
seacows  Steam
mid-
Registered: March 2012
Posts: 52

Are you talking about something like this? http://youtu.be/QCCgQONvdSY

SKhud has this in the hud animations text

HudAnimations_tf.txt wrote:


event DamagedPlayer
{
//======================================
// UNCOMMENT CROSSHAIR WHAT YOU WANT
//======================================
//==============================DAMAGE COLOUR DOT==================================
//Animate xHairCrossDMGCLR FgColor "255 0 0 255" Linear 0.0 0.00001
//Animate xHairCrossDMGCLR FgColor "255 255 255 255" Linear 0.15 0.1

//==========================DAMAGE COLOUR CROSS====================================
//Animate xHairDotDMGCLR FgColor "255 0 0 255" Linear 0.0 0.00001
//Animate xHairDotDMGCLR FgColor "255 255 255 255" Linear 0.15 0.1

//==================YOUR + CROSSHAIR W/ OUTLINE AND DAMAGE COLOUR==================
//Animate xHairDefaultDamage Alpha "255" Linear 0.0 0.00001
//Animate xHairDefaultDamage Alpha "0" Linear 0.15 0.1

//================================CoD LIKE CROSSHAIR===============================
//Animate††††xHairSlashLT FgColor "20 255 20 255"†††† Linear 0.0 0.00001
//Animate††††xHairSlashLT FgColor "0 0 0 0"†††††††† Linear 0.15 0.1

//Animate††††xHairSlashLB FgColor "20 255 20 255"†††† Linear 0.0 0.00001
//Animate††††xHairSlashLB FgColor "0 0 0 0"†††††††† Linear 0.15 0.1

//Animate††††xHairSlashRT FgColor "20 255 20 255"†††† Linear 0.0 0.00001
//Animate††††xHairSlashRT FgColor "0 0 0 0"†††††††† Linear 0.15 0.1

//Animate††††xHairSlashRB FgColor "20 255 20 255"†††† Linear 0.0 0.00001
//Animate††††xHairSlashRB FgColor "0 0 0 0"†††††††† Linear 0.15 0.1

The relevant crosshairs (for example, "xHairSlashRT") are in hudlayout.res

Mon, 09 Jul 2012, 11:01pm
#4
0
synchro  Steam
high
Medium_bb2b3030ac8da647697df94d85c1a6b0
Registered: September 2011
Posts: 1033

Perfect, thanks a lot guys.


Big Shot Gaming - MI LAN Party, Fall 2012
website
facebook event
steam group

Tue, 10 Jul 2012, 12:51am
#5
0
monkey suit  Steam
low
Registered: May 2012
Posts: 17

KBN hud has a similar thing. There is a quake type circle around the crosshair and it goes red when you hit something.

Tue, 10 Jul 2012, 11:04am
#6
0
baumy  Steam
low
Registered: July 2012
Posts: 16

I'm gonna try combining the scout crosshair here:
http://etf2l.org/forum/general/topic-15503/page-1/

with these animations, and get the thing to flash a different color on a hit. it would be especially interesting if I could get only the dots corresponding with the specific scattergun pellets that hit to light up, but I don't actually know if that's possible. no idea if this will suck ass or be awesome, but it seems pretty baller in my head right now.

Tue, 10 Jul 2012, 05:31pm
#7
-1
trogdc  Steam
mid-
Registered: April 2012
Posts: 62

You can't do that, sorry.

Tue, 10 Jul 2012, 05:41pm
#8
0
baumy  Steam
low
Registered: July 2012
Posts: 16

which part? the individual dots? cause I was fairly sure that was impossible. the rest of it is very doable

Tue, 10 Jul 2012, 05:43pm
#9
0
trogdc  Steam
mid-
Registered: April 2012
Posts: 62

Yeah the dots.

Tue, 10 Jul 2012, 05:59pm
#10
-1
.JOE  Steam
mid
Registered: December 2011
Posts: 153

Does anyone know what the linear values do? Is that how long the color flashes?

Tue, 10 Jul 2012, 08:27pm
#11
1
B||oodSire-AA-  Steam
mid
Registered: September 2011
Posts: 186

just a heads-up

I use garmen hud and had the hitmarkers in there forever and did not update my hud for a few months. If you remember at the beggining of the season I basically lost a match for LG (then quantic) on medic when I was having an unidentified feezing problem.

I reformatted did all sorts of neat stuff to my PC and still had the same problem. Finally (dont know why I didn't thing to do this earlier) I updated my garmen hud and the problem was forever fixed.

I read through patch notes and saw that he patched out hit-markers because of performance issues. I don't know if what you are talking about are updated versions of the markers or not, but beware of massive performance drops and make sure you keep the hud updated.

Wed, 11 Jul 2012, 12:29am
#12
1
Mangachu  Steam
high-
Registered: October 2011
Posts: 510

it was due to the amount of hitmarkers in the hud there was like 12 of them

Wed, 11 Jul 2012, 12:33am