Slipping, now with 20% more ecs (#4310)
* Slipping, now with 20% more ecs * vereview
This commit is contained in:
18
Content.Server/Slippery/SlipperySystem.cs
Normal file
18
Content.Server/Slippery/SlipperySystem.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user