Files
wwdpublic/Content.Shared/Movement/Components/SpeedModifiedOnWieldComponent.cs
SlamBamActionman 1e4f252bb0 Hristov & .60 changes - Hristov Rework, Part 2 (#31662)
* Initial commit

* Updated values to reflect new resistances

* Review fixes

* Review fixes

* LINQ BEGONETH

(cherry picked from commit e58d0313002350cd7d9ed24ea390e0cb5724a662)
2025-09-20 18:52:19 +03:00

24 lines
797 B
C#

using Content.Shared.Wieldable;
using Robust.Shared.GameStates;
namespace Content.Shared.Movement.Components;
/// <summary>
/// Modifies the speed when an entity with this component is wielded.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedWieldableSystem)), AutoGenerateComponentState]
public sealed partial class SpeedModifiedOnWieldComponent : Component
{
/// <summary>
/// How much the wielder's sprint speed is modified when the component owner is wielded.
/// </summary>
[DataField, AutoNetworkedField]
public float SprintModifier = 1f;
/// <summary>
/// How much the wielder's walk speed is modified when the component owner is wielded.
/// </summary>
[DataField, AutoNetworkedField]
public float WalkModifier = 1f;
}