Admin smite: Homing rods. (#40246)
* add homing rod support * oop * speed betterer * commentia
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
using Content.Server.Administration.Systems;
|
||||
using Content.Server.Physics.Controllers;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
@@ -8,7 +9,7 @@ namespace Content.Server.Physics.Components;
|
||||
/// <summary>
|
||||
/// A component which makes its entity chasing entity with selected component.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(ChasingWalkSystem)), AutoGenerateComponentPause]
|
||||
[RegisterComponent, Access(typeof(ChasingWalkSystem), typeof(AdminVerbSystem)), AutoGenerateComponentPause]
|
||||
public sealed partial class ChasingWalkComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
@@ -78,4 +79,16 @@ public sealed partial class ChasingWalkComponent : Component
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public EntityUid? ChasingEntity;
|
||||
|
||||
/// <summary>
|
||||
/// whether the entity should point in the direction its moving
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool RotateWithImpulse;
|
||||
|
||||
/// <summary>
|
||||
/// Sprite rotation offset.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public Angle RotationAngleOffset = Angle.Zero;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user