Files
tbd-station-14/Content.Shared/Movement/Components/FrictionContactsComponent.cs
Princess Cheeseballs cf86e0de1d Ghost friction fix (#37124)
* commit

* fix for real
2025-05-06 23:49:43 +10:00

35 lines
1006 B
C#

using Content.Shared.Movement.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Movement.Components;
[NetworkedComponent, RegisterComponent]
[AutoGenerateComponentState]
[Access(typeof(FrictionContactsSystem))]
public sealed partial class FrictionContactsComponent : Component
{
/// <summary>
/// Should this affect airborne mobs?
/// </summary>
[DataField, AutoNetworkedField]
public bool AffectAirborne;
/// <summary>
/// Modified mob friction while on FrictionContactsComponent
/// </summary>
[DataField, AutoNetworkedField]
public float MobFriction = 0.05f;
/// <summary>
/// Modified mob friction without input while on FrictionContactsComponent
/// </summary>
[DataField, AutoNetworkedField]
public float? MobFrictionNoInput = 0.05f;
/// <summary>
/// Modified mob acceleration while on FrictionContactsComponent
/// </summary>
[DataField, AutoNetworkedField]
public float MobAcceleration = 0.1f;
}