Skip to content

Commit 5da3d02

Browse files
authored
Update ShipTracker.cs
1 parent fb83036 commit 5da3d02

File tree

1 file changed

+10
-2
lines changed
  • Gamemode Mods/Starcore_Sharetrack/Data/Scripts/ShipPoints/ShipTracking

1 file changed

+10
-2
lines changed

Gamemode Mods/Starcore_Sharetrack/Data/Scripts/ShipPoints/ShipTracking/ShipTracker.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
@@ -350,7 +350,15 @@ public void UpdateHud()
350350
var angle = GetAngleBetweenDegree(gridPosition - camera.WorldMatrix.Translation,
351351
camera.WorldMatrix.Forward);
352352

353-
var stealthed = ((uint)Grid.Flags & 0x1000000) > 0 || !Grid.Visible;
353+
var stealthed = ((uint)Grid.Flags & 0x1000000) > 0;
354+
355+
if (MasterSession.I.StealthApi?.IsReady ?? false)
356+
{
357+
var mainStealthDrive = MasterSession.I.StealthApi.GetMainDrive(Grid);
358+
if (mainStealthDrive != null)
359+
stealthed |= MasterSession.I.StealthApi.GetStatus(mainStealthDrive) == 1;
360+
}
361+
354362
var visible = !(newOrigin.X > 1 || newOrigin.X < -1 || newOrigin.Y > 1 || newOrigin.Y < -1) &&
355363
angle <= fov && !stealthed;
356364

0 commit comments

Comments
 (0)