Make flashbang's bang respect distance to players (#6898)

This commit is contained in:
Chris V
2022-02-25 21:11:10 -08:00
committed by GitHub
parent 76dfa8ce57
commit efafdcd95f

View File

@@ -103,7 +103,7 @@ namespace Content.Server.Explosion.EntitySystems
private void HandleSoundTrigger(EntityUid uid, SoundOnTriggerComponent component, TriggerEvent args)
{
if (component.Sound == null) return;
SoundSystem.Play(Filter.Pvs(component.Owner), component.Sound.GetSound(), AudioHelpers.WithVariation(0.01f));
SoundSystem.Play(Filter.Pvs(component.Owner), component.Sound.GetSound(), uid);
}
private void HandleDeleteTrigger(EntityUid uid, DeleteOnTriggerComponent component, TriggerEvent args)