mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-21 15:38:52 +03:00
19 lines
543 B
C#
19 lines
543 B
C#
using Content.Shared.Audio;
|
|
using Content.Shared.Slippery;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Player;
|
|
|
|
namespace Content.Server.Slippery
|
|
{
|
|
internal sealed class SlipperySystem : SharedSlipperySystem
|
|
{
|
|
protected override void PlaySound(SlipperyComponent component)
|
|
{
|
|
if (!string.IsNullOrEmpty(component.SlipSound))
|
|
{
|
|
SoundSystem.Play(Filter.Pvs(component.Owner), component.SlipSound, component.Owner, AudioHelpers.WithVariation(0.2f));
|
|
}
|
|
}
|
|
}
|
|
}
|