Fix stunbaton stun sounds (#9511)

This commit is contained in:
metalgearsloth
2022-07-07 13:34:17 +10:00
committed by GitHub
parent 3e5ccbafc1
commit d5628fd004
3 changed files with 6 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ namespace Content.Server.Stunnable.Systems
return;
}
args.HitSoundOverride = component.StunSound;
if (battery.CurrentCharge < component.EnergyPerUse)
{
SoundSystem.Play(component.SparksSound.GetSound(), Filter.Pvs(component.Owner, entityManager: EntityManager), uid, AudioHelpers.WithVariation(0.25f));