fix ripley grabber bugs (#12962)

This commit is contained in:
Nemanja
2022-12-10 16:00:04 -05:00
committed by GitHub
parent 85624fa9b5
commit 7702e334d7

View File

@@ -134,6 +134,9 @@ public sealed class MechGrabberSystem : EntitySystem
if (component.Token != null)
return;
if (!_interaction.InRangeUnobstructed(args.User, args.Target.Value))
return;
args.Handled = true;
component.Token = new();
component.AudioStream = _audio.PlayPvs(component.GrabSound, uid);
@@ -142,7 +145,7 @@ public sealed class MechGrabberSystem : EntitySystem
BreakOnTargetMove = true,
BreakOnUserMove = true,
UsedFinishedEvent = new MechGrabberGrabFinishedEvent(args.Target.Value),
UserCancelledEvent = new MechGrabberGrabCancelledEvent()
UsedCancelledEvent = new MechGrabberGrabCancelledEvent()
});
}