Make nukie arm sounds entity based (#9484)

This commit is contained in:
metalgearsloth
2022-07-06 18:52:46 +10:00
committed by GitHub
parent 3f2ea3ba79
commit 2e7543402b

View File

@@ -385,7 +385,7 @@ namespace Content.Server.Nuke
// Don't double-dip on the octave shifting // Don't double-dip on the octave shifting
component.LastPlayedKeypadSemitones = number == 0 ? component.LastPlayedKeypadSemitones : semitoneShift; component.LastPlayedKeypadSemitones = number == 0 ? component.LastPlayedKeypadSemitones : semitoneShift;
SoundSystem.Play(component.KeypadPressSound.GetSound(), Filter.Pvs(uid), SoundSystem.Play(component.KeypadPressSound.GetSound(), Filter.Pvs(uid), uid,
AudioHelpers.ShiftSemitone(semitoneShift).WithVolume(-5f)); AudioHelpers.ShiftSemitone(semitoneShift).WithVolume(-5f));
} }