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'
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.
Try Accel instead of Linear?
Try Accel instead of Linear?
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'
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
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
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?
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.