mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* Update for new render API - Fix mob movement incorrectly causing rotation lerps sometimes. - Update API calls to use the new render-specific methods. * Thanks rider * augh wrong event * Buckle, vehicle, and mover fixes * Rename render poses to render transforms * garbage
24 lines
677 B
C#
24 lines
677 B
C#
using System.Numerics;
|
|
using Content.Shared.Interaction;
|
|
using Content.Shared.Storage;
|
|
using Robust.Client.GameObjects;
|
|
using Robust.Shared.Containers;
|
|
|
|
namespace Content.Client.Interactable
|
|
{
|
|
// TODO Remove Shared prefix
|
|
public sealed partial class InteractionSystem : SharedInteractionSystem
|
|
{
|
|
[Dependency] private TransformSystem _clientTransform = default!;
|
|
|
|
protected override bool TryFaceInteraction(EntityUid user, Vector2 coordinates)
|
|
{
|
|
var faced = base.TryFaceInteraction(user, coordinates);
|
|
|
|
if (faced)
|
|
_clientTransform.SnapRenderRotation(user);
|
|
|
|
return faced;
|
|
}
|
|
}
|
|
}
|