From a6df4bec4ed672bade5bd670eaca6cc3618df5d2 Mon Sep 17 00:00:00 2001 From: Vigers Ray Date: Fri, 14 Feb 2025 00:49:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B3=D1=80=D0=BE=D0=BC=D0=BA=D0=BE=D1=81=D1=82=D1=8C?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B8=D0=B3=D1=80=D1=8B=D0=B2=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D0=B5=D0=B9=20=D0=BA=D0=B0=D1=81=D1=81=D0=B5?= =?UTF-8?q?=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/_Sunrise/TapePlayer/TapePlayerSystem.cs | 4 ++-- .../_Sunrise/TapePlayer/TapePlayerComponent.cs | 4 ++++ Resources/Changelog/ChangelogSunrise.yml | 9 +++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Content.Server/_Sunrise/TapePlayer/TapePlayerSystem.cs b/Content.Server/_Sunrise/TapePlayer/TapePlayerSystem.cs index 267ca8c136..345c79baa0 100644 --- a/Content.Server/_Sunrise/TapePlayer/TapePlayerSystem.cs +++ b/Content.Server/_Sunrise/TapePlayer/TapePlayerSystem.cs @@ -85,7 +85,7 @@ public sealed class TapePlayerSystem : SharedTapePlayerSystem return; } - var volume = SharedAudioSystem.GainToVolume(component.Volume); + var volume = SharedAudioSystem.GainToVolume(component.Volume) + component.IncreaceVolume; var audioParams = AudioParams.Default .WithVolume(volume) @@ -123,7 +123,7 @@ public sealed class TapePlayerSystem : SharedTapePlayerSystem private void OnTapePlayerSetVolume(EntityUid uid, TapePlayerComponent component, TapePlayerSetVolumeMessage args) { component.Volume = args.Volume; - var volume = SharedAudioSystem.GainToVolume(component.Volume); + var volume = SharedAudioSystem.GainToVolume(component.Volume) + component.IncreaceVolume; Audio.SetVolume(component.AudioStream, volume); Dirty(uid, component); } diff --git a/Content.Shared/_Sunrise/TapePlayer/TapePlayerComponent.cs b/Content.Shared/_Sunrise/TapePlayer/TapePlayerComponent.cs index fa9d807eeb..aa3c01b1ae 100644 --- a/Content.Shared/_Sunrise/TapePlayer/TapePlayerComponent.cs +++ b/Content.Shared/_Sunrise/TapePlayer/TapePlayerComponent.cs @@ -24,6 +24,10 @@ public sealed partial class TapePlayerComponent : Component [ViewVariables] public float Volume = 0.5f; + [DataField] + [ViewVariables] + public float IncreaceVolume = 10f; + [DataField] [ViewVariables(VVAccess.ReadWrite)] public float RolloffFactor = 1f; diff --git a/Resources/Changelog/ChangelogSunrise.yml b/Resources/Changelog/ChangelogSunrise.yml index efd9a95d08..727102902b 100644 --- a/Resources/Changelog/ChangelogSunrise.yml +++ b/Resources/Changelog/ChangelogSunrise.yml @@ -12426,3 +12426,12 @@ id: 859 time: '2025-02-13T21:41:33.0000000+00:00' url: https://github.com/space-sunrise/space-station-14/pull/1361 +- author: VigersRay + changes: + - message: "\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0430 \u0433\u0440\u043E\ + \u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0438\u0433\u0440\u044B\ + \u0432\u0430\u0442\u0435\u043B\u0435\u0439 \u043A\u0430\u0441\u0441\u0435\u0442\ + ." + type: Fix + id: 860 + time: '2025-02-13T21:48:16.591470+00:00'