Retractable items get removed by handcuffs (#38441)

* init

* oops

* happens

* review

* fix
This commit is contained in:
ScarKy0
2025-06-22 02:24:12 +02:00
committed by GitHub
parent 6a582db4b8
commit 2e90bc7b6d
3 changed files with 65 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
using Content.Shared.Atmos;
using Content.Shared.Camera;
using Content.Shared.Cuffs;
using Content.Shared.Hands.Components;
using Content.Shared.Movement.Systems;
using Content.Shared.Projectiles;
@@ -22,6 +23,7 @@ public abstract partial class SharedHandsSystem
SubscribeLocalEvent<HandsComponent, HitScanReflectAttemptEvent>(RefRelayEvent);
SubscribeLocalEvent<HandsComponent, WieldAttemptEvent>(RefRelayEvent);
SubscribeLocalEvent<HandsComponent, UnwieldAttemptEvent>(RefRelayEvent);
SubscribeLocalEvent<HandsComponent, TargetHandcuffedEvent>(RefRelayEvent);
}
private void RelayEvent<T>(Entity<HandsComponent> entity, ref T args) where T : EntityEventArgs