From a237493841100673de05dc05c018fc0d02afd3a0 Mon Sep 17 00:00:00 2001 From: B_Kirill <153602297+B-Kirill@users.noreply.github.com> Date: Mon, 26 Jan 2026 23:48:16 +1000 Subject: [PATCH] Prevent picking up chameleon projector disguises via context menu (#42656) --- .../Polymorph/Systems/SharedChameleonProjectorSystem.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Content.Shared/Polymorph/Systems/SharedChameleonProjectorSystem.cs b/Content.Shared/Polymorph/Systems/SharedChameleonProjectorSystem.cs index bf6fea5b470..33763529d34 100644 --- a/Content.Shared/Polymorph/Systems/SharedChameleonProjectorSystem.cs +++ b/Content.Shared/Polymorph/Systems/SharedChameleonProjectorSystem.cs @@ -46,6 +46,7 @@ public abstract class SharedChameleonProjectorSystem : EntitySystem SubscribeLocalEvent(OnDisguiseDamaged); SubscribeLocalEvent(OnDisguiseInsertAttempt); SubscribeLocalEvent(OnDisguiseShutdown); + SubscribeLocalEvent(OnDisguiseBeforeEquippedHand); SubscribeLocalEvent(OnDisguisedInserted); @@ -86,6 +87,12 @@ public abstract class SharedChameleonProjectorSystem : EntitySystem _actions.RemoveProvidedActions(ent.Comp.User, ent.Comp.Projector); } + private void OnDisguiseBeforeEquippedHand(Entity ent, ref BeforeGettingEquippedHandEvent args) + { + args.Cancelled = true; + TryReveal(ent.Comp.User); + } + #endregion #region Disguised player