From 3c52dd102ea222763c8d950c91d729c1688b1142 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 27 May 2025 21:34:23 +1000 Subject: [PATCH] Don't click-to-face when moving (#37874) Looks bad doing it for a single tick. --- Content.Shared/Interaction/SharedInteractionSystem.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Interaction/SharedInteractionSystem.cs b/Content.Shared/Interaction/SharedInteractionSystem.cs index 230fbda8d3..5f063a9070 100644 --- a/Content.Shared/Interaction/SharedInteractionSystem.cs +++ b/Content.Shared/Interaction/SharedInteractionSystem.cs @@ -17,6 +17,7 @@ using Content.Shared.Inventory.Events; using Content.Shared.Item; using Content.Shared.Movement.Components; using Content.Shared.Movement.Pulling.Systems; +using Content.Shared.Movement.Systems; using Content.Shared.Physics; using Content.Shared.Players.RateLimiting; using Content.Shared.Popups; @@ -567,8 +568,11 @@ namespace Content.Shared.Interaction if (_transform.GetMapId(coordinates) != Transform(user).MapID) return false; - if (!HasComp(user)) + // Only rotate to face if they're not moving. + if (!HasComp(user) && (!TryComp(user, out InputMoverComponent? mover) || (mover.HeldMoveButtons & MoveButtons.AnyDirection) == 0x0)) + { _rotateToFaceSystem.TryFaceCoordinates(user, _transform.ToMapCoordinates(coordinates).Position); + } return true; } -- 2.51.2