Adds grappling gun (#16662)
This commit is contained in:
@@ -4,11 +4,7 @@ namespace Content.Shared.Movement.Events;
|
||||
/// Raised on an entity to check if it can move while weightless.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public struct CanWeightlessMoveEvent
|
||||
public record struct CanWeightlessMoveEvent(EntityUid Uid)
|
||||
{
|
||||
public bool CanMove = false;
|
||||
|
||||
public CanWeightlessMoveEvent()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,8 +185,8 @@ namespace Content.Shared.Movement.Systems
|
||||
|
||||
if (!touching)
|
||||
{
|
||||
var ev = new CanWeightlessMoveEvent();
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
var ev = new CanWeightlessMoveEvent(uid);
|
||||
RaiseLocalEvent(uid, ref ev, true);
|
||||
// No gravity: is our entity touching anything?
|
||||
touching = ev.CanMove;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user