2021-07-21 22:13:58 +10:00
|
|
|
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)
|
|
|
|
|
{
|
2021-07-25 14:12:00 +02:00
|
|
|
if (component.SlipSound.TryGetSound(out var slipSound))
|
2021-07-21 22:13:58 +10:00
|
|
|
{
|
2021-07-25 14:12:00 +02:00
|
|
|
SoundSystem.Play(Filter.Pvs(component.Owner), slipSound, component.Owner, AudioHelpers.WithVariation(0.2f));
|
2021-07-21 22:13:58 +10:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|