Give BaseItem a landing sound (#14504)

This commit is contained in:
metalgearsloth
2023-03-11 19:26:01 +11:00
committed by GitHub
parent 33f388e66e
commit 1533e1b2b1
7 changed files with 38 additions and 22 deletions

View File

@@ -98,12 +98,12 @@ namespace Content.Shared.Sound
if (predict)
{
_audioSystem.PlayPredicted(component.Sound, component.Owner, user, component.Sound.Params.AddVolume(-2f));
_audioSystem.PlayPredicted(component.Sound, component.Owner, user);
}
else if (_netMan.IsServer)
{
// don't predict sounds that client couldn't have played already
_audioSystem.PlayPvs(component.Sound, component.Owner, component.Sound.Params.AddVolume(-2f));
_audioSystem.PlayPvs(component.Sound, component.Owner);
}
}
}