Allow actions to specify if they want to rotate the user when targeting (#37958)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Content.Shared.Actions;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Actions.Components;
|
||||
@@ -13,6 +12,7 @@ namespace Content.Shared.Actions.Components;
|
||||
/// </remarks>
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedActionsSystem))]
|
||||
[EntityCategory("Actions")]
|
||||
[AutoGenerateComponentState]
|
||||
public sealed partial class WorldTargetActionComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
@@ -20,4 +20,10 @@ public sealed partial class WorldTargetActionComponent : Component
|
||||
/// </summary>
|
||||
[DataField(required: true), NonSerialized]
|
||||
public WorldTargetActionEvent? Event;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to make the user face towards the direction where they targeted this action.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool RotateOnUse = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user