Unrevert audio (#21330)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
This commit is contained in:
@@ -9,6 +9,7 @@ using Content.Shared.Interaction;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Content.Shared.Verbs;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.Player;
|
||||
|
||||
namespace Content.Server.Extinguisher;
|
||||
@@ -18,6 +19,7 @@ public sealed class FireExtinguisherSystem : EntitySystem
|
||||
[Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!;
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -86,7 +88,7 @@ public sealed class FireExtinguisherSystem : EntitySystem
|
||||
var drained = _solutionContainerSystem.Drain(target, targetSolution, transfer);
|
||||
_solutionContainerSystem.TryAddSolution(uid, container, drained);
|
||||
|
||||
SoundSystem.Play(component.RefillSound.GetSound(), Filter.Pvs(uid), uid);
|
||||
_audio.PlayPvs(component.RefillSound, uid);
|
||||
_popupSystem.PopupEntity(Loc.GetString("fire-extinguisher-component-after-interact-refilled-message", ("owner", uid)),
|
||||
uid, args.Target.Value);
|
||||
}
|
||||
@@ -135,8 +137,7 @@ public sealed class FireExtinguisherSystem : EntitySystem
|
||||
return;
|
||||
|
||||
extinguisher.Safety = !extinguisher.Safety;
|
||||
SoundSystem.Play(extinguisher.SafetySound.GetSound(), Filter.Pvs(uid),
|
||||
uid, AudioHelpers.WithVariation(0.125f).WithVolume(-4f));
|
||||
_audio.PlayPvs(extinguisher.SafetySound, uid, AudioParams.Default.WithVariation(0.125f).WithVolume(-4f));
|
||||
UpdateAppearance(uid, extinguisher);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user