Skip to content

Commit 480aa42

Browse files
committed
""fix"" crafts docking the wrong direction
this should not work. it's sending them to the left and they just go to the right. i don't get it, but it works.
1 parent b07683b commit 480aa42

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Data/Base.rte/Activities/Utility/DockingHandler.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function DockingHandler:SpawnUndersideDockingCraft(craft, specificDock)
234234
craft:AddAISceneWaypoint(dockTable.dockPosition);
235235
local direction = dockToDockAt % 2 == 0 and 1 or -1;
236236
print("direction: " .. direction);
237-
craft:AddAISceneWaypoint(dockTable.dockPosition + Vector(275 * direction, 0))
237+
craft:AddAISceneWaypoint(dockTable.dockPosition + Vector(-275 * direction, 0))
238238

239239
dockTable.activeCraft = craft;
240240
dockTable.dockingStage = 1;
@@ -342,7 +342,7 @@ function DockingHandler:UpdateUndersideDockingCraft()
342342
craft:AddAISceneWaypoint(pos);
343343
craft:AddAISceneWaypoint(dockTable.dockPosition);
344344
local direction = i % 2 == 0 and 1 or -1;
345-
craft:AddAISceneWaypoint(dockTable.dockPosition + Vector(275 * direction, 0))
345+
craft:AddAISceneWaypoint(dockTable.dockPosition + Vector(-275 * direction, 0))
346346

347347
dockTable.activeCraft = craft;
348348
dockTable.dockingStage = 1;
@@ -444,7 +444,7 @@ function DockingHandler:UpdateUndersideDockingCraft()
444444

445445
--print(SceneMan:ShortestDistance(craft.Pos, dockTable.dockPosition + Vector(200 * direction, 0), true))
446446

447-
local distFromDockArea = SceneMan:ShortestDistance(craft.Pos, dockTable.dockPosition + Vector(275 * direction, 0), true).Magnitude
447+
local distFromDockArea = SceneMan:ShortestDistance(craft.Pos, dockTable.dockPosition + Vector(-275 * direction, 0), true).Magnitude
448448
--print(distFromDockArea)
449449
if distFromDockArea < 20 then
450450
craft:OpenHatch();

Data/Browncoats.rte/Activities/RefineryAssaultFunctions.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,8 @@ end
896896
function RefineryAssault:TryDockConsoleOrder(desiredDock, itemTable)
897897
local craft, goldCost = self.deliveryCreationHandler:CreateCraft(self.humanTeam, false);
898898
craft.PlayerControllable = self.humansAreControllingAlliedActors;
899+
craft.HUDVisible = self.humansAreControllingAlliedActors;
900+
craft:SetGoldValue(0);
899901

900902
for i = 1, #itemTable do
901903
local item = MovableMan:FindObjectByUniqueID(itemTable[i])

0 commit comments

Comments
 (0)