Files
wwdpublic/Content.Shared/Movement/Components/SpeedModifiedByContactModifierComponent.cs
SlamBamActionman a48507664d 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
2025-07-19 17:37:55 +10:00

26 lines
885 B
C#

using Content.Shared.Movement.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Movement.Components;
// <summary>
// This is used to modify how much an entity is affected by speed modifier contacts.
// </summary>
[NetworkedComponent, RegisterComponent]
[AutoGenerateComponentState]
[Access(typeof(SpeedModifierContactsSystem))]
public sealed partial class SpeedModifiedByContactModifierComponent : Component
{
// <summary>
// Numbers greater than 1 amplify the walk speed modifier, and lower numbers lessen the effect.
// </summary>
[DataField, AutoNetworkedField]
public float WalkModifierEffectiveness = 1.0f;
// <summary>
// Numbers greater than 1 amplify the sprint speed modifier, and lower numbers lessen the effect.
// </summary>
[DataField, AutoNetworkedField]
public float SprintModifierEffectiveness = 1.0f;
}