Make Saltern driveable (#4257)
* Broadphase refactor (content) * Shuttle jank * Fixes * Testing jank * Features and things * Balance stuffsies * AHHHHHHHHHHHHHHHH * Mass and stuff working * Fix drops * Another balance pass * Balance AGEN * Add in stuff for rotating shuttles for debugging * Nothing to see here * Testbed stuffsies * Fix some tests * Fixen test * Try fixing map * Shuttle movement balance pass * lasaggne * Basic Helmsman console working * Slight docking cleanup * Helmsman requires power * Basic shuttle test * Stuff * Fix computations * Add shuttle console to saltern * Rename helmsman to shuttleconsole * Final stretch * More tweaks * Fix piloting prediction for now.
This commit is contained in:
20
Content.Shared/Shuttles/SharedShuttleConsoleSystem.cs
Normal file
20
Content.Shared/Shuttles/SharedShuttleConsoleSystem.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Content.Shared.Movement;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Shared.Shuttles
|
||||
{
|
||||
public abstract class SharedShuttleConsoleSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<PilotComponent, MovementAttemptEvent>(HandleMovementBlock);
|
||||
}
|
||||
|
||||
private void HandleMovementBlock(EntityUid uid, PilotComponent component, MovementAttemptEvent args)
|
||||
{
|
||||
if (component.Console == null) return;
|
||||
args.Cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user