Add ambient music (#16829)
This commit is contained in:
@@ -253,10 +253,10 @@ namespace Content.Shared.Movement.Systems
|
||||
if (!weightless && mobMoverQuery.TryGetComponent(uid, out var mobMover) &&
|
||||
TryGetSound(weightless, uid, mover, mobMover, xform, out var sound))
|
||||
{
|
||||
var soundModifier = mover.Sprinting ? 1.5f : 1f;
|
||||
var soundModifier = mover.Sprinting ? 3.5f : 1.5f;
|
||||
|
||||
var audioParams = sound.Params
|
||||
.WithVolume(sound.Params.Volume * soundModifier)
|
||||
.WithVolume(sound.Params.Volume + soundModifier)
|
||||
.WithVariation(sound.Params.Variation ?? FootstepVariation);
|
||||
|
||||
// If we're a relay target then predict the sound for all relays.
|
||||
|
||||
Reference in New Issue
Block a user