Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Content.Shared/PDA/SharedRingerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ActorComponent>(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
Expand Down
Loading