mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
# Description **Light Step** is a 1-point Auditory trait that reduces the volume of your footsteps by roughly 50%, enabling you to be quieter and stealthier. Inspired by the SS13 trait of the same name. ## TODO - [x] Locale strings - [x] ~~Reduce the distance in which Light Step footsteps can be heard~~ - It turns out that whatever I did reduced the delay between footstep sounds. - [x] Discuss the balancing values for the trait ## Technical details In the current implementation, Light Step reduces the volume of footsteps by 10 dB, resulting in roughly halving the volume. The fields in `FootstepVolumeModifierComponent` change the volume in terms of decibels. ## Media  # Changelog 🆑 Skubman - add: Add the Light Step trait, a 1-point trait that makes your footsteps quieter. --------- Signed-off-by: Angelo Fallaria <ba.fallaria@gmail.com>
23 lines
696 B
C#
23 lines
696 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Traits.Assorted.Components;
|
|
|
|
/// <summary>
|
|
/// This is used for any trait that modifies footstep volumes.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class FootstepVolumeModifierComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// What to add to the volume of sprinting, in terms of decibels.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float SprintVolumeModifier;
|
|
|
|
/// <summary>
|
|
/// What to add to the volume of walking, in terms of decibels.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float WalkVolumeModifier;
|
|
}
|