mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
* first draft * Fixed it all, just need to rename stuff * Rename and add comments * Clean-up * Access added
26 lines
885 B
C#
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;
|
|
}
|