Upvote Upvoted 1 Downvote Downvoted
More XHair Circle Question
posted in Q/A Help
1
#1
0 Frags +

Hello so I've been trying to edit PVHUD a bit, but I done goofed and forgot to save my previous xhair circle hitmarker and now truggle to get it to work again. I've tried for like an hour now but my xhair circle just won't flash red when I damage someone :|

"Resource/HudLayout.res"
{
xHair
{
"controlName" "CExLabel"
"fieldName" "xHair"
"visible" "0"
"enabled" "1"
"zpos" "1"

"xpos" "c-12"
"ypos" "c-12"
"wide" "23"
"tall" "24"

"font" "xHair"
"labelText" "+"
"textAlignment" "center"
}
xHairCircle
{
"controlName" "CExLabel"
"fieldName" "xHairCircle3"
"visible" "1"
"enabled" "1"
"zpos" "2"

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

"font" "xHairCircle3"
"labelText" "o"
"textAlignment" "center"

"fgcolor" "255 255 255 100"
}
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
}

The Xhair circle is a bit off, any help is greatly appreciated, my resolution is 1280x720

Edit: I found this in console "Couldn't parse script sequence 'DamagedPlayer': expected <anim command>, found 'Linear'

Hello so I've been trying to edit PVHUD a bit, but I done goofed and forgot to save my previous xhair circle hitmarker and now truggle to get it to work again. I've tried for like an hour now but my xhair circle just won't flash red when I damage someone :|

[quote]"Resource/HudLayout.res"
{
xHair
{
"controlName" "CExLabel"
"fieldName" "xHair"
"visible" "0"
"enabled" "1"
"zpos" "1"

"xpos" "c-12"
"ypos" "c-12"
"wide" "23"
"tall" "24"

"font" "xHair"
"labelText" "+"
"textAlignment" "center"
}
xHairCircle
{
"controlName" "CExLabel"
"fieldName" "xHairCircle3"
"visible" "1"
"enabled" "1"
"zpos" "2"

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

"font" "xHairCircle3"
"labelText" "o"
"textAlignment" "center"

"fgcolor" "255 255 255 100"
}[/quote]

[quote]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
}[/quote]

The Xhair circle is a bit off, any help is greatly appreciated, my resolution is 1280x720

Edit: I found this in console "Couldn't parse script sequence 'DamagedPlayer': expected <anim command>, found 'Linear'
2
#2
huds.tf
1 Frags +

I'm still learning how animations actually work, so I'm not even sure if this is correct. However, it's worth a shot and you've got nothing to lose if it doesn't work anyway.

Seeing as the fieldname of xHairCircle is "xHairCircle3", try changing the animation event to this:

event DamagedPlayer
{
Animate xHairCircle3 FgColor “255 0 0 255″
Linear 0.0 0.00001
Animate xHairCircle3 FgColor “255 255 255 48″
Linear 0.15 0.15001
}

However, like I said, I can't say for sure this'll work, but try it anyway.

I'm still learning how animations actually work, so I'm not even sure if this is correct. However, it's worth a shot and you've got nothing to lose if it doesn't work anyway.

Seeing as the fieldname of xHairCircle is "xHairCircle3", try changing the animation event to this:
[code]
event DamagedPlayer
{
Animate xHairCircle3 FgColor “255 0 0 255″
Linear 0.0 0.00001
Animate xHairCircle3 FgColor “255 255 255 48″
Linear 0.15 0.15001
}
[/code]

However, like I said, I can't say for sure this'll work, but try it anyway.
3
#3
-1 Frags +

Still doesn't work lol

Still doesn't work lol
4
#4
1 Frags +

Try Accel instead of Linear?

Try Accel instead of Linear?
5
#5
0 Frags +

Still the same message: "Couldn't parse script sequence 'DamagedPlayer': expected <anim command>, found 'Accel'

Still the same message: "Couldn't parse script sequence 'DamagedPlayer': expected <anim command>, found 'Accel'
6
#6
0 Frags +

I think it's because you have the return in there...should be:

Animate xHairCircle3 FgColor “255 0 0 255″ Linear 0.0 0.00001

and

Animate xHairCircle3 FgColor “255 255 255 48″ Linear 0.15 0.15001

one single line each

I think it's because you have the return in there...should be:

Animate xHairCircle3 FgColor “255 0 0 255″ Linear 0.0 0.00001

and

Animate xHairCircle3 FgColor “255 255 255 48″ Linear 0.15 0.15001

one single line each
7
#7
0 Frags +

Same shit :| I revert back to the original PVHUD and try to do it again and still the same

Same shit :| I revert back to the original PVHUD and try to do it again and still the same
8
#8
0 Frags +

Same shit meaning what exactly...the same "couldn't parse script sequence" error? Or is the error msg gone and the circle just doesn't flash red?

Same shit meaning what exactly...the same "couldn't parse script sequence" error? Or is the error msg gone and the circle just doesn't flash red?
9
#9
0 Frags +

Yea the error message still is there, I still can't fix it.

Yea the error message still is there, I still can't fix it.
Please sign in through STEAM to post a comment.