Removed GPS time of flight cause someone complained, fixed nexus lobby respawn button, and fixed gps hud points duplicating

This commit is contained in:
Garrett
2023-12-17 17:15:12 -06:00
parent e89ac26bda
commit 7416b41ad6
6 changed files with 132 additions and 26 deletions

View File

@@ -16,9 +16,12 @@ namespace SeamlessClient.Components
{
public class MyHudTimeTracker : ComponentBase
{
public override void Patch(Harmony patcher)
{
return;
var AppendDistance = PatchUtils.GetMethod(typeof(MyHudMarkerRender), "AppendDistance");
patcher.Patch(AppendDistance, postfix: new HarmonyMethod(Get(typeof(MyHudTimeTracker), nameof(ApplyTimeToTarget))));
@@ -58,9 +61,6 @@ namespace SeamlessClient.Components
stringBuilder.AppendLine($" [T-{FormatDuration(t)}]");
}
static string FormatDuration(double durationInSeconds)
{
if (durationInSeconds < 60)
@@ -98,9 +98,5 @@ namespace SeamlessClient.Components
return distance / velocity;
}
}
}