Fix dead mob sprites rotating on death (#16317)
This commit is contained in:
@@ -70,7 +70,7 @@ internal sealed class BuckleSystem : SharedBuckleSystem
|
||||
!buckled ||
|
||||
args.Sprite == null)
|
||||
{
|
||||
_rotationVisualizerSystem.SetHorizontalAngle(uid, RotationVisualsComponent.DefaultRotation, rotVisuals);
|
||||
_rotationVisualizerSystem.SetHorizontalAngle(uid, rotVisuals.DefaultRotation, rotVisuals);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,12 +3,16 @@ namespace Content.Client.Rotation;
|
||||
[RegisterComponent]
|
||||
public sealed class RotationVisualsComponent : Component
|
||||
{
|
||||
public static readonly Angle DefaultRotation = Angle.FromDegrees(90);
|
||||
[DataField("defaultRotation")]
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public readonly Angle DefaultRotation = Angle.FromDegrees(90);
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public Angle VerticalRotation = 0;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] public Angle HorizontalRotation = DefaultRotation;
|
||||
[DataField("horizontalRotation")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public Angle HorizontalRotation = Angle.FromDegrees(90);
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float AnimationTime = 0.125f;
|
||||
|
||||
Reference in New Issue
Block a user