private void OnMoveAttempt(EntityUid uid, CanEscapeInventoryComponent component, UpdateCanMoveEvent args) { if (_containerSystem.IsEntityOrParentInContainer(uid)) { args.Cancel(); } }
private void OnUpdateCanMove(EntityUid uid, AdminFrozenComponent component, UpdateCanMoveEvent args) { if (component.LifeStage > ComponentLifeStage.Running) { return; } args.Cancel(); }
private void OnMoveAttempt(EntityUid uid, PAIComponent component, UpdateCanMoveEvent args) { if (component.LifeStage > ComponentLifeStage.Running) { return; } args.Cancel(); // no more scurrying around on lil robot legs. }
private void OnMoveAttempt(EntityUid uid, StunnedComponent stunned, UpdateCanMoveEvent args) { if (stunned.LifeStage > ComponentLifeStage.Running) { return; } args.Cancel(); }
private void HandleMoveAttempt(EntityUid uid, SharedCuffableComponent component, UpdateCanMoveEvent args) { if (component.CanStillInteract || !EntityManager.TryGetComponent(uid, out SharedPullableComponent? pullable) || !pullable.BeingPulled) { return; } args.Cancel(); }
private static void HandleMoveAttempt(EntityUid uid, SharedClimbingComponent component, UpdateCanMoveEvent args) { if (component.LifeStage > ComponentLifeStage.Running) { return; } if (component.OwnerIsTransitioning) { args.Cancel(); } }
private void HandleMove(EntityUid uid, SharedBuckleComponent component, UpdateCanMoveEvent args) { if (component.LifeStage > ComponentLifeStage.Running) { return; } if (component.Buckled) { args.Cancel(); } }
private void HandleMovementBlock(EntityUid uid, PilotComponent component, UpdateCanMoveEvent args) { if (component.LifeStage > ComponentLifeStage.Running) { return; } if (component.Console == null) { return; } args.Cancel(); }
private void OnMoveAttempt(EntityUid uid, MobStateComponent component, UpdateCanMoveEvent args) { switch (component.CurrentState) { case DamageState.Critical: case DamageState.Dead: args.Cancel(); return; default: return; } }