Nerf ringers (#6558)

This commit is contained in:
metalgearsloth
2022-02-08 22:15:06 +11:00
committed by GitHub
parent 19d175df26
commit acb0c8d3bb
15 changed files with 21 additions and 5 deletions

View File

@@ -114,7 +114,14 @@ namespace Content.Server.PDA.Ringer
if (ringer.TimeElapsed < NoteDelay) continue;
ringer.TimeElapsed -= NoteDelay;
SoundSystem.Play(Filter.Pvs(ringer.Owner, entityManager: EntityManager), GetSound(ringer.Ringtone[ringer.NoteCount]));
var ringerXform = Transform(ringer.Owner);
SoundSystem.Play(
Filter.Empty().AddInRange(ringerXform.MapPosition, ringer.Range),
GetSound(ringer.Ringtone[ringer.NoteCount]),
ringer.Owner,
AudioParams.Default.WithMaxDistance(ringer.Range).WithVolume(ringer.Volume));
ringer.NoteCount++;
if (ringer.NoteCount > 3)