Airlocks now have a random pitch for deny sound (#1116)

This commit is contained in:
Víctor Aguilera Puerto
2020-06-13 04:14:40 +02:00
committed by GitHub
parent 482bb617e9
commit 202dc47961

View File

@@ -1,5 +1,6 @@
using System;
using Content.Client.GameObjects.Components.Wires;
using Content.Shared.Audio;
using Content.Shared.GameObjects.Components.Doors;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
@@ -80,7 +81,7 @@ namespace Content.Client.GameObjects.Components.Doors
var sound = new AnimationTrackPlaySound();
DenyAnimation.AnimationTracks.Add(sound);
sound.KeyFrames.Add(new AnimationTrackPlaySound.KeyFrame(denySound, 0));
sound.KeyFrames.Add(new AnimationTrackPlaySound.KeyFrame(denySound, 0, () => AudioHelpers.WithVariation(0.05f)));
}
}