Content audio (#20862)
This commit is contained in:
@@ -5,14 +5,16 @@ using Content.Server.Storage.EntitySystems;
|
||||
using Content.Shared.Audio;
|
||||
using Content.Shared.Interaction;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.Player;
|
||||
|
||||
namespace Content.Server.Plants.Systems
|
||||
{
|
||||
public sealed class PottedPlantHideSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly SecretStashSystem _stashSystem = default!;
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly SecretStashSystem _stashSystem = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -58,7 +60,7 @@ namespace Content.Server.Plants.Systems
|
||||
if (!Resolve(uid, ref component))
|
||||
return;
|
||||
|
||||
SoundSystem.Play(component.RustleSound.GetSound(), Filter.Pvs(uid), uid, AudioHelpers.WithVariation(0.25f));
|
||||
_audio.PlayPvs(component.RustleSound, uid, AudioParams.Default.WithVariation(0.25f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user