File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Gamemode Mods/Starcore_Sharetrack/Data/Scripts/ShipPoints/ShipTracking Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Collections . Generic ;
33using System . Linq ;
44using 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
You can’t perform that action at this time.
0 commit comments