@@ -9,6 +9,7 @@ using Content.Shared.Hands.Components;
|
||||
using Content.Shared.IdentityManagement;
|
||||
using Content.Shared.Movement.Events;
|
||||
using Content.Shared.Movement.Pulling.Events;
|
||||
using Content.Shared.Physics;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Pulling.Events;
|
||||
using Content.Shared.Rotation;
|
||||
@@ -18,7 +19,6 @@ using Content.Shared.Stunnable;
|
||||
using Content.Shared.Throwing;
|
||||
using Content.Shared.Whitelist;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Physics.Components;
|
||||
using Robust.Shared.Physics.Events;
|
||||
@@ -318,6 +318,11 @@ public abstract partial class SharedBuckleSystem
|
||||
return false;
|
||||
}
|
||||
|
||||
//CP14
|
||||
if (!_interaction.InRangeUnobstructed(buckleUid, strapUid, collisionMask: CollisionGroup.MobMask))
|
||||
return false;
|
||||
//CP14 End
|
||||
|
||||
var buckleAttempt = new BuckleAttemptEvent((strapUid, strapComp), (buckleUid, buckleComp), user, popup);
|
||||
RaiseLocalEvent(buckleUid, ref buckleAttempt);
|
||||
if (buckleAttempt.Cancelled)
|
||||
|
||||
Reference in New Issue
Block a user