-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 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 ![image](https://github.com/user-attachments/assets/d1e3efee-6f81-4212-a745-ae08687afcc0) # Changelog :cl: Skubman - add: Add the Light Step trait, a 1-point trait that makes your footsteps quieter. --------- Signed-off-by: Angelo Fallaria <[email protected]>
- Loading branch information
1 parent
812a303
commit 0acb879
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Content.Shared/Traits/Assorted/Components/FootstepVolumeModifierComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters