From 1616e6ea49105398f8c7f55216103c3e1efaaaf4 Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Tue, 17 Jun 2025 18:11:09 +0200 Subject: [PATCH] fix issues with proximity beeper (#3975) cherry picked from commit 00002fa07fb3a427e3cd54451846517bbbe54580 Co-authored-by: Ilya246 <57039557+Ilya246@users.noreply.github.com> --- Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs | 2 +- .../Prototypes/Entities/Objects/Specific/Research/anomaly.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs b/Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs index 304f3a0836..546532c3d4 100644 --- a/Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs +++ b/Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs @@ -31,6 +31,6 @@ public sealed class ProximityBeeperSystem : EntitySystem private void OnNewProximityTarget(EntityUid owner, ProximityBeeperComponent proxBeeper, ref NewProximityTargetEvent args) { - _beeper.SetMute(owner, args.Target != null); + _beeper.SetMute(owner, args.Target == null); } } diff --git a/Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml b/Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml index ff9a0635f8..21971dda32 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml @@ -51,6 +51,7 @@ components: - type: Anomaly - type: Beeper + isMuted: true minBeepInterval: 0.15 maxBeepInterval: 1.00 beepSound: