diff --git a/Content.Server/GameObjects/EntitySystems/MoverSystem.cs b/Content.Server/GameObjects/EntitySystems/MoverSystem.cs index 0cfd50770e..10f30a3e36 100644 --- a/Content.Server/GameObjects/EntitySystems/MoverSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/MoverSystem.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using Content.Server.GameObjects.Components.GUI; using Content.Server.GameObjects.Components.Items.Storage; using Content.Server.GameObjects.Components.Mobs; @@ -11,6 +11,7 @@ using Content.Shared.Maps; using Content.Shared.Physics; using JetBrains.Annotations; using Robust.Server.GameObjects; +using Robust.Shared.Audio; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Log; @@ -108,12 +109,12 @@ namespace Content.Server.GameObjects.EntitySystems } else { - PlayFootstepSound(transform.Coordinates); + PlayFootstepSound(transform.Coordinates, mover.Sprinting); } } } - private void PlayFootstepSound(EntityCoordinates coordinates) + private void PlayFootstepSound(EntityCoordinates coordinates, bool sprinting) { // Step one: figure out sound collection prototype. var grid = _mapManager.GetGrid(coordinates.GetGridId(EntityManager)); @@ -149,7 +150,7 @@ namespace Content.Server.GameObjects.EntitySystems { var soundCollection = _prototypeManager.Index(soundCollectionName); var file = _robustRandom.Pick(soundCollection.PickFiles); - _audioSystem.PlayAtCoords(file, coordinates); + _audioSystem.PlayAtCoords(file, coordinates, sprinting ? AudioParams.Default.WithVolume(0.75f) : null); } catch (UnknownPrototypeException) {