Upvote Upvoted 1 Downvote Downvoted
Hud Xhair Color help
posted in Q/A Help
1
#1
0 Frags +

so i have KBNhud and it comes with that nifty little circle around your ingame xhair that blinks when you do damage but its black.

Ive messed witht he hudlayout thing and made it:
"Resource/HudLayout.res"
{
xHairCirclePulse
{
"controlName" "CExLabel"
"fieldName" "xHairCirclePulse"
"visible" "1"
"enabled" "1"
"zpos" "2"

"xpos" "c-100"
"ypos" "c-100"
"wide" "200"
"tall" "200"

"font" "xHairCirclePulse"
"labelText" "i"
"textAlignment" "center"

"fgcolor" "0 200 0 255"

but the green color only lasts until i hit someone, then it goes back to black. How would I change this so that it still blinks red when i hit someone but goes back to green not black?

PS: i know nothing about scripting or hud editing

so i have KBNhud and it comes with that nifty little circle around your ingame xhair that blinks when you do damage but its black.

Ive messed witht he hudlayout thing and made it:
"Resource/HudLayout.res"
{
xHairCirclePulse
{
"controlName" "CExLabel"
"fieldName" "xHairCirclePulse"
"visible" "1"
"enabled" "1"
"zpos" "2"

"xpos" "c-100"
"ypos" "c-100"
"wide" "200"
"tall" "200"

"font" "xHairCirclePulse"
"labelText" "i"
"textAlignment" "center"

"fgcolor" "0 200 0 255"

but the green color only lasts until i hit someone, then it goes back to black. How would I change this so that it still blinks red when i hit someone but goes back to green not black?

PS: i know nothing about scripting or hud editing
2
#2
1 Frags +

Im not on my home computer atm so i can't find the exact line. But if you go to scripts/Hudanimations.txt and search "Damage" you should find something called "Event damaged player" or something like that. there should be two lines There's the one that has the red hit colour "255 0 0 255" and the one that what happens after you hit it, should be black or what the original colour of the circle you changed. Change that to whatever colour you want. Sorry for the vague explanation

Im not on my home computer atm so i can't find the exact line. But if you go to scripts/Hudanimations.txt and search "Damage" you should find something called "Event damaged player" or something like that. there should be two lines There's the one that has the red hit colour "255 0 0 255" and the one that what happens after you hit it, should be black or what the original colour of the circle you changed. Change that to whatever colour you want. Sorry for the vague explanation
3
#3
0 Frags +

Actually, that works pretty well, I should be able to get it working, ill test it out shortly. Thank you!

edit: worked perfectly, thank you so very much

Actually, that works pretty well, I should be able to get it working, ill test it out shortly. Thank you!

edit: worked perfectly, thank you so very much
Please sign in through STEAM to post a comment.