From 202dc47961d62eff8ba515e22b21f24ceb66126d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= <6766154+Zumorica@users.noreply.github.com> Date: Sat, 13 Jun 2020 04:14:40 +0200 Subject: [PATCH] Airlocks now have a random pitch for deny sound (#1116) --- .../GameObjects/Components/Doors/AirlockVisualizer2D.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/GameObjects/Components/Doors/AirlockVisualizer2D.cs b/Content.Client/GameObjects/Components/Doors/AirlockVisualizer2D.cs index ae966af5b8..50a3497bc8 100644 --- a/Content.Client/GameObjects/Components/Doors/AirlockVisualizer2D.cs +++ b/Content.Client/GameObjects/Components/Doors/AirlockVisualizer2D.cs @@ -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))); } }