24 lines
864 B
C#
24 lines
864 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Movement.Components;
|
|
|
|
/// <summary>
|
|
/// This component ensures an entity is always in the KnockedDown State and cannot stand. Great for any entities you
|
|
/// don't want to collide with other mobs, don't want eating projectiles and don't want to get knocked down.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class WormComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Modifier for KnockedDown Friction, or in this components case, all friction
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float FrictionModifier = 1f;
|
|
|
|
/// <summary>
|
|
/// Modifier for KnockedDown Movement, or in this components case, all movement
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float SpeedModifier = 1f;
|
|
}
|