Add arrivals (#14755)
* Arrivals * More arrivals and shitty uhh preload * cvar * a * clockin + maps * shitter prevention * Placement * a * cvar for tests and dev * weh
This commit is contained in:
@@ -71,7 +71,11 @@ public sealed partial class DockingSystem
|
||||
|
||||
// TODO: Validation
|
||||
if (!TryComp<DockingComponent>(args.DockEntity, out var dock) ||
|
||||
!dock.Docked) return;
|
||||
!dock.Docked ||
|
||||
HasComp<PreventPilotComponent>(Transform(uid).GridUid))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Undock(dock);
|
||||
}
|
||||
@@ -81,7 +85,12 @@ public sealed partial class DockingSystem
|
||||
_sawmill.Debug($"Received autodock request for {ToPrettyString(args.DockEntity)}");
|
||||
var player = args.Session.AttachedEntity;
|
||||
|
||||
if (player == null || !HasComp<DockingComponent>(args.DockEntity)) return;
|
||||
if (player == null ||
|
||||
!HasComp<DockingComponent>(args.DockEntity) ||
|
||||
HasComp<PreventPilotComponent>(Transform(uid).GridUid))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Validation
|
||||
var comp = EnsureComp<AutoDockComponent>(args.DockEntity);
|
||||
|
||||
Reference in New Issue
Block a user