Allow actions to specify if they want to rotate the user when targeting (#37958)

This commit is contained in:
DrSmugleaf
2025-05-30 05:56:16 -07:00
committed by GitHub
parent 1e3212ab32
commit b86c1ea01d
3 changed files with 22 additions and 7 deletions

View File

@@ -1,5 +1,4 @@
using Content.Shared.Actions;
using Content.Shared.Whitelist;
using Content.Shared.Whitelist;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
@@ -45,4 +44,10 @@ public sealed partial class EntityTargetActionComponent : Component
/// </summary>
[DataField, AutoNetworkedField]
public bool CanTargetSelf = true;
/// <summary>
/// Whether to make the user face towards the direction where they targeted this action.
/// </summary>
[DataField, AutoNetworkedField]
public bool RotateOnUse = true;
}