Files
wwdpublic/Content.Shared/Standing/StandingStateComponent.cs
vanx 326b145116 [Tweak] No Slippery Bodies (#583)
* no slip

* review

---------

Co-authored-by: vanx <discord@vanxxxx>
2025-06-13 22:49:38 +03:00

38 lines
1.1 KiB
C#

using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Standing;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class StandingStateComponent : Component
{
[DataField]
public SoundSpecifier DownSound { get; private set; } = new SoundCollectionSpecifier("BodyFall");
[DataField, AutoNetworkedField]
public StandingState CurrentState { get; set; } = StandingState.Standing;
[DataField, AutoNetworkedField]
public bool Standing { get; set; } = true;
/// <summary>
/// List of fixtures that had their collision mask changed when the entity was downed.
/// Required for re-adding the collision mask.
/// </summary>
[DataField, AutoNetworkedField]
public List<string> ChangedFixtures = new();
/// <summary>
/// WWDP - How much should the floor friction change if not standing
/// </summary>
[DataField, AutoNetworkedField]
public float LayingFrictionMultiplier = 3f;
}
public enum StandingState
{
Lying,
GettingUp,
Standing,
}