From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 7 Apr 2023 10:54:20 +0000 (+1000) Subject: Fix NPC arrival distance for nodes (#15193) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=9b616784ede928f756ab98a5668077bc188e4a87;p=space-station-14.git Fix NPC arrival distance for nodes (#15193) --- diff --git a/Content.Server/NPC/Systems/NPCSteeringSystem.Context.cs b/Content.Server/NPC/Systems/NPCSteeringSystem.Context.cs index 65c4315cf3..df7e13e65d 100644 --- a/Content.Server/NPC/Systems/NPCSteeringSystem.Context.cs +++ b/Content.Server/NPC/Systems/NPCSteeringSystem.Context.cs @@ -92,7 +92,7 @@ public sealed partial class NPCSteeringSystem // This is to avoid popping it too early else if (steering.CurrentPath.TryPeek(out var node) && node.Data.IsFreeSpace) { - arrivalDistance = MathF.Min(node.Box.Width, node.Box.Height) - 0.01f; + arrivalDistance = MathF.Min(node.Box.Width / 2f, node.Box.Height / 2f) - 0.01f; } // Try getting into blocked range I guess? // TODO: Consider melee range or the likes.