Upvote Upvoted 2 Downvote Downvoted
HUD Crosshair in HudPlayerHealth.res (Ell's HUD)
posted in Q/A Help
1
#1
1 Frags +

I'm having trouble using minihud's crosshair in Ell's HUD.

I've already successfully integrated it into KNHUD as shown here:

http://i.imgur.com/afFm0c8.jpg?1

The HUD crosshair in question (goes in HudPlayerHealth.res):

 "PlayerStatusHealthHline"
  {
	"controlName"	"ImagePanel"
	"fieldName"		"PlayerStatusHealthHline"
	"xpos"			"c-20"
	"ypos"			"c"
	"zpos"			"10"
	"wide"			"40"
	"tall"			"1"
	"visible"		"1"
	"enabled"		"1"
	"fillcolor"		"lWhite"
  }
  "PlayerStatusHealthVline"
  {
	"controlName"	"ImagePanel"
	"fieldName"		"PlayerStatusHealthVline"
	"xpos"			"c"
	"ypos"			"c-20"
	"zpos"			"10"
	"wide"			"1"
	"tall"			"40"
	"visible"		"1"
	"enabled"		"1"
	"fillcolor"		"lWhite"
  }
  "PlayerStatusLowHealthHline"
  {
	"controlName"	"ImagePanel"
	"fieldName"		"PlayerStatusLowHealthHline"
	"xpos"			"c-20"
	"ypos"			"c"
	"zpos"			"10"
	"wide"			"40"
	"tall"			"1"
	"visible"		"1"
	"enabled"		"1"
	"fillcolor"		"lPink"
	"alpha"			"0"
  }
  "PlayerStatusLowHealthVline"
  {
	"controlName"	"ImagePanel"
	"fieldName"		"PlayerStatusLowHealthVline"
	"xpos"			"c"
	"ypos"			"c-20"
	"zpos"			"10"
	"wide"			"1"
	"tall"			"40"
	"visible"		"1"
	"enabled"		"1"
	"fillcolor"		"lPink"
	"alpha"			"0"
  }
  "PlayerStatusBuffHealthHline"
  {
	"controlName"	"ImagePanel"
	"fieldName"		"PlayerStatusBuffHealthHline"
	"xpos"			"c-20"
	"ypos"			"c"
	"zpos"			"10"
	"wide"			"40"
	"tall"			"1"
	"visible"		"1"
	"enabled"		"1"
	"fillcolor"		"lGreen"
	"alpha"			"0"
  }
  "PlayerStatusBuffHealthVline"
  {
	"controlName"	"ImagePanel"
	"fieldName"		"PlayerStatusBuffHealthVline"
	"xpos"			"c"
	"ypos"			"c-20"
	"zpos"			"10"
	"wide"			"1"
	"tall"			"40"
	"visible"		"1"
	"enabled"		"1"
	"fillcolor"		"lGreen"
	"alpha"			"0"
  }

Basically, it is 6 perpendicular lines, 2 for each health status (low, normal, buffed), which appear based on these lines in hudanimations.txt:

//Health Bonus Pulse
event HudHealthBonusPulse
{
	Animate PlayerStatusHealthHline		alpha		"0"				Linear 0.0 0.0
	Animate PlayerStatusBuffHealthHline	alpha		"255"			Linear 0.0 0.0
	Animate PlayerStatusHealthVline		alpha		"0"				Linear 0.0 0.0
	Animate PlayerStatusBuffHealthVline	alpha		"255"			Linear 0.0 0.0
}

event HudHealthBonusPulseStop
{
	Animate PlayerStatusHealthHline		alpha		"255"			Linear 0.0 0.001
	Animate PlayerStatusBuffHealthHline	alpha		"0"				Linear 0.0 0.001
	Animate PlayerStatusHealthVline		alpha		"255"			Linear 0.0 0.001
	Animate PlayerStatusBuffHealthVline	alpha		"0"				Linear 0.0 0.001
}

//===========================================

//Health Dying Pulse
event HudHealthDyingPulse
{
	Animate PlayerStatusHealthHline		alpha		"0"				Linear 0.0 0.0
	Animate PlayerStatusLowHealthHline	alpha		"255"			Linear 0.0 0.0
	Animate PlayerStatusHealthVline		alpha		"0"				Linear 0.0 0.0
	Animate PlayerStatusLowHealthVline	alpha		"255"			Linear 0.0 0.0
}

event HudHealthDyingPulseStop
{
	Animate PlayerStatusHealthHline		alpha		"255"			Linear 0.0 0.001
	Animate PlayerStatusLowHealthHline	alpha		"0"				Linear 0.0 0.001
	Animate PlayerStatusHealthVline		alpha		"255"			Linear 0.0 0.001
	Animate PlayerStatusLowHealthVline	alpha		"0"				Linear 0.0 0.001
}

When trying to use this with Ell's HUD, the lines do not appear anywhere on the screen. I have tried changing the zpos, xpos, wide and tall values, but nothing has worked.

I can get the lines to appear with the code posted above pasted into hudlayout.res; however, they do not change color based on health status (if we could work that out instead, then it'd be fine with me). This leads me to believe it's not the position values, but something else that I'm unaware of.

I've checked thoroughly for formatting and spelling mistakes.

I'm having trouble using [url=https://code.google.com/p/minihud/]minihud's[/url] crosshair in Ell's HUD.

I've already successfully integrated it into KNHUD as shown here:
[img]http://i.imgur.com/afFm0c8.jpg?1[/img]

The HUD crosshair in question (goes in HudPlayerHealth.res):
[code] "PlayerStatusHealthHline"
{
"controlName" "ImagePanel"
"fieldName" "PlayerStatusHealthHline"
"xpos" "c-20"
"ypos" "c"
"zpos" "10"
"wide" "40"
"tall" "1"
"visible" "1"
"enabled" "1"
"fillcolor" "lWhite"
}
"PlayerStatusHealthVline"
{
"controlName" "ImagePanel"
"fieldName" "PlayerStatusHealthVline"
"xpos" "c"
"ypos" "c-20"
"zpos" "10"
"wide" "1"
"tall" "40"
"visible" "1"
"enabled" "1"
"fillcolor" "lWhite"
}
"PlayerStatusLowHealthHline"
{
"controlName" "ImagePanel"
"fieldName" "PlayerStatusLowHealthHline"
"xpos" "c-20"
"ypos" "c"
"zpos" "10"
"wide" "40"
"tall" "1"
"visible" "1"
"enabled" "1"
"fillcolor" "lPink"
"alpha" "0"
}
"PlayerStatusLowHealthVline"
{
"controlName" "ImagePanel"
"fieldName" "PlayerStatusLowHealthVline"
"xpos" "c"
"ypos" "c-20"
"zpos" "10"
"wide" "1"
"tall" "40"
"visible" "1"
"enabled" "1"
"fillcolor" "lPink"
"alpha" "0"
}
"PlayerStatusBuffHealthHline"
{
"controlName" "ImagePanel"
"fieldName" "PlayerStatusBuffHealthHline"
"xpos" "c-20"
"ypos" "c"
"zpos" "10"
"wide" "40"
"tall" "1"
"visible" "1"
"enabled" "1"
"fillcolor" "lGreen"
"alpha" "0"
}
"PlayerStatusBuffHealthVline"
{
"controlName" "ImagePanel"
"fieldName" "PlayerStatusBuffHealthVline"
"xpos" "c"
"ypos" "c-20"
"zpos" "10"
"wide" "1"
"tall" "40"
"visible" "1"
"enabled" "1"
"fillcolor" "lGreen"
"alpha" "0"
}[/code]

Basically, it is 6 perpendicular lines, 2 for each health status (low, normal, buffed), which appear based on these lines in hudanimations.txt:
[code]//Health Bonus Pulse
event HudHealthBonusPulse
{
Animate PlayerStatusHealthHline alpha "0" Linear 0.0 0.0
Animate PlayerStatusBuffHealthHline alpha "255" Linear 0.0 0.0
Animate PlayerStatusHealthVline alpha "0" Linear 0.0 0.0
Animate PlayerStatusBuffHealthVline alpha "255" Linear 0.0 0.0
}

event HudHealthBonusPulseStop
{
Animate PlayerStatusHealthHline alpha "255" Linear 0.0 0.001
Animate PlayerStatusBuffHealthHline alpha "0" Linear 0.0 0.001
Animate PlayerStatusHealthVline alpha "255" Linear 0.0 0.001
Animate PlayerStatusBuffHealthVline alpha "0" Linear 0.0 0.001
}


//===========================================

//Health Dying Pulse
event HudHealthDyingPulse
{
Animate PlayerStatusHealthHline alpha "0" Linear 0.0 0.0
Animate PlayerStatusLowHealthHline alpha "255" Linear 0.0 0.0
Animate PlayerStatusHealthVline alpha "0" Linear 0.0 0.0
Animate PlayerStatusLowHealthVline alpha "255" Linear 0.0 0.0
}

event HudHealthDyingPulseStop
{
Animate PlayerStatusHealthHline alpha "255" Linear 0.0 0.001
Animate PlayerStatusLowHealthHline alpha "0" Linear 0.0 0.001
Animate PlayerStatusHealthVline alpha "255" Linear 0.0 0.001
Animate PlayerStatusLowHealthVline alpha "0" Linear 0.0 0.001
}[/code]

When trying to use this with Ell's HUD, the lines do not appear anywhere on the screen. I have tried changing the zpos, xpos, wide and tall values, but nothing has worked.

I can get the lines to appear with the code posted above pasted into hudlayout.res; however, they do not change color based on health status (if we could work that out instead, then it'd be fine with me). This leads me to believe it's not the position values, but something else that I'm unaware of.

I've checked thoroughly for formatting and spelling mistakes.
Please sign in through STEAM to post a comment.