Muzzles reduce emote sound (#34444)

* Muzzles reduce emote sound

* update based on review comments

* review comments
This commit is contained in:
themias
2025-06-05 19:45:55 -04:00
committed by GitHub
parent 7943dad603
commit eb85a8a1b0
4 changed files with 34 additions and 9 deletions

View File

@@ -1,7 +1,14 @@
using Robust.Shared.Audio;
namespace Content.Server.Speech.Components;
[RegisterComponent]
public sealed partial class MumbleAccentComponent : Component
{
/// <summary>
/// This modifies the audio parameters of emote sounds, screaming, laughing, etc.
/// By default, it reduces the volume and distance of emote sounds.
/// </summary>
[DataField]
public AudioParams EmoteAudioParams = AudioParams.Default.WithVolume(-8f).WithMaxDistance(5);
}