From b2178f3082558798b77dca17d91b67396852e620 Mon Sep 17 00:00:00 2001 From: TNE <38938720+JustTNE@users.noreply.github.com> Date: Thu, 28 May 2026 19:37:08 +0200 Subject: [PATCH] Send PDA ringer sound to the StationAI player directly * Send PDA ringer sound to the StationAI player directly Prevents the sound from appearing at the StationAI core's location and instead plays the sound globally for the StationAI player. * Actor --------- Co-authored-by: Janet Blackquill --------- DCO: https://github.com/DeltaV-Station/Acceleration/issues/1#issuecomment-5073880660 --- Content.Shared/PDA/SharedRingerSystem.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Content.Shared/PDA/SharedRingerSystem.cs b/Content.Shared/PDA/SharedRingerSystem.cs index 3841ed56e44..16a79459691 100644 --- a/Content.Shared/PDA/SharedRingerSystem.cs +++ b/Content.Shared/PDA/SharedRingerSystem.cs @@ -56,6 +56,22 @@ public override void Update(float frameTime) if (curTime < ringer.NextNoteTime.Value) continue; + // DeltaV Start - Silicons: Send PDA ringer sound to the player directly + // Check if this ringer is also a player. If so, the sound needs to play to the player itself. + if (HasComp(uid)) + { + if (_net.IsServer) + { + _audio.PlayGlobal( + GetSound(ringer.Ringtone[ringer.NoteCount]), + Filter.Entities(uid), + true, + AudioParams.Default.WithVolume(ringer.Volume) + ); + } + } + else + // DeltaV End - Silicons: Send PDA ringer sound to the player directly // Play the note // We only do this on the server because otherwise the sound either dupes or blends into a mess // There's no easy way to figure out which player started it, so that we can exclude them from the list