Files
tbd-station-14/Content.Shared/Clothing/Components/SpeedModifierContactCapClothingComponent.cs
SlamBamActionman 9ee43eed2c Add Galoshes slowdown over slippery surfaces (#30967)
* first draft

* Fixed it all, just need to rename stuff

* Rename and add comments

* Clean-up

* Access added
2024-08-23 19:59:51 +10:00

18 lines
645 B
C#

using Content.Shared.Clothing.EntitySystems;
using Robust.Shared.GameStates;
namespace Content.Shared.Clothing.Components;
/// <summary>
/// When equipped, sets a max cap to the slowdown applied from contact speed modifiers. (E.g. glue puddles, kudzu).
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SpeedModifierContactCapClothingSystem))]
public sealed partial class SpeedModifierContactCapClothingComponent : Component
{
[DataField, AutoNetworkedField]
public float MaxContactSprintSlowdown = 1f;
[DataField, AutoNetworkedField]
public float MaxContactWalkSlowdown = 1f;
}