prevent drawing own box

This commit is contained in:
Magnus von Wachenfeldt 2017-12-07 00:13:03 +01:00
parent e7699e7744
commit 95b6b168ef

View File

@ -207,7 +207,7 @@ namespace TarkovHax
float boxHeight = Math.Abs(Camera.main.WorldToScreenPoint(player.PlayerBones.Head.position).y - Camera.main.WorldToScreenPoint(player.Transform.position).y) + 10f; float boxHeight = Math.Abs(Camera.main.WorldToScreenPoint(player.PlayerBones.Head.position).y - Camera.main.WorldToScreenPoint(player.Transform.position).y) + 10f;
float boxWidth = boxHeight * 0.65f; float boxWidth = boxHeight * 0.65f;
if (distanceToObject <= _maxDrawingDistance) if (distanceToObject <= _maxDrawingDistance && playerBoundingVector.z > 0.01)
{ {
var uiColor = player.Profile.Health.IsAlive ? Color.red : Color.white; var uiColor = player.Profile.Health.IsAlive ? Color.red : Color.white;
GUI.color = uiColor; GUI.color = uiColor;