Add spear embedding (#18578)

* Add spear embedding

* fuck this copy-paste

* Juicier

* the river
This commit is contained in:
metalgearsloth
2023-08-04 18:56:39 +10:00
committed by GitHub
parent dda3848a98
commit 321f337572
10 changed files with 159 additions and 26 deletions

View File

@@ -0,0 +1,19 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Throwing;
/// <summary>
/// When thrown applies a specific angle to the thrown entity.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ThrowingAngleComponent : Component
{
/// <summary>
/// Do we apply throwing spin to the entity.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("angularVelocity"), AutoNetworkedField]
public bool AngularVelocity;
[ViewVariables(VVAccess.ReadWrite), DataField("angle"), AutoNetworkedField]
public Angle Angle;
}