x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 
x
To those who participated in the Highlander Season 32 (Summer 2024), please fill out this Feedback Form for the current & next Highlander seasons!

Forum

Help trying to make a crosshair damage indicator.

Created 3rd October 2013 @ 07:07

Add A Reply Pages: 1

THE PURPLE AGGRESSIV

I use a built-in crosshair (green cross) and I was wondering if it would be possible to have a thin white circle come up whenever I hit an enemy. If it’s not possible then it is fine.

Saki

Just a theory, but if you use a hit indicator crosshair of the circle. Setting the default colour to 255 255 255 0 Logically (If I’m not mistaken) You will have a transparent circle around your crosshair. Upon hitting the colour will be set to 255 255 255 255 which will enable it to be opaque on hit instead of the usual change to red from white on normal hit indicating crosshairs.

Edit:

Using Yahud as an example in the Clientscheme.res (Will differ depending on HUD)

We will set the crosshair in the hudlayout.res to be a circle after which we edit the options below as follows


//// COLOR OPTIONS ////

"Flavor" "142 142 142 255" //Main color for selecting elements

"Damage" "227 227 227 255" //Damage numbers
"Crosshair" "255 255 255 0" //Crosshair color
"CrosshairDamage" "255 255 255 255" //Crosshair damage flash color
//Make this the same as "Crosshair" to disable the flash

WIll depend per HUD but this should work I think (Haven’t tested yet I’m just on a lunch break haha)


Last edited by Saki,

feeling

ist doof

It all depens on your HUD. Usually you’d activate the circle around your crosshair in hudlayout.res, find out its fieldname and edit your hudanimations_tf.txt as follows.

Under event DamagedPlayer add:
Animate crosshairname FgColor “255 0 0 255” Linear 0.0 0.00001
Animate crosshairname FgColor “255 255 255 255” Linear 0.10 0.10001

Add A Reply Pages: 1