Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 7d7d3e9

Browse files
committed
Merge branch 'development' into 4zk-content
2 parents d9e161a + db99994 commit 7d7d3e9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Data/Base.rte/Scenes/Objects/Bunkers/BunkerSystems/Automovers/Controller/Controller.lua

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ automoverActorFunctions.setupActorWaypointData = function(self, actorData)
10811081
waypointData.actorReachedTargetInsideAutomoverArea = false;
10821082
waypointData.actorReachedEndNodeForTargetOutsideAutomoverArea = false;
10831083
waypointData.teleporterVisualsTimer = Timer(1000);
1084-
waypointData.delayTimer = Timer(50);
1084+
waypointData.delayTimer = Timer(30);
10851085

10861086
waypointData.endNode = self:findClosestNode(waypointData.targetPosition, waypointData.previousNode, false, waypointData.targetIsInsideAutomoverArea, true, actor.Team);
10871087
if not waypointData.endNode then
@@ -1317,7 +1317,7 @@ automoverActorFunctions.handleActorThatHasReachedItsEndNode = function(self, act
13171317
end
13181318
end
13191319
waypointData.delayTimer:Reset();
1320-
elseif waypointData.exitPath ~= nil and #waypointData.exitPath > 0 then
1320+
elseif waypointData.exitPath ~= nil and #waypointData.exitPath > 0 and waypointData.delayTimer:IsPastSimTimeLimit() then
13211321
local distanceFromActorToFirstExitPathPosition = SceneMan:ShortestDistance(waypointData.exitPath[1], actor.Pos, self.checkWrapping);
13221322
if distanceFromActorToFirstExitPathPosition:MagnitudeIsLessThan(20) then
13231323
table.remove(waypointData.exitPath, 1);
@@ -1329,7 +1329,12 @@ automoverActorFunctions.handleActorThatHasReachedItsEndNode = function(self, act
13291329

13301330
local endNodeData = teamNodeTable[waypointData.endNode];
13311331
if not endNodeData.zoneBox:IsWithinBox(waypointData.exitPath[1]) and (endNodeData.connectedNodeData[actorData.direction] == nil or not endNodeData.connectingAreas[actorData.direction]:IsInside(waypointData.exitPath[1])) then
1332-
actor.Vel = actor.Vel + (distanceFromActorToFirstExitPathPosition.Normalized:FlipX(true):FlipY(true) * self.movementAcceleration * 10);
1332+
local velocityToAddToActor = distanceFromActorToFirstExitPathPosition.Normalized:FlipX(true):FlipY(true) * self.movementAcceleration * 10;
1333+
if math.abs(velocityToAddToActor.X) < 1 and velocityToAddToActor.Y < 0 and SceneMan.GlobalAcc.Y > 0 then
1334+
velocityToAddToActor.Y = velocityToAddToActor.Y * 2;
1335+
end
1336+
actor.Vel = actor.Vel + velocityToAddToActor;
1337+
13331338
end
13341339
waypointData.delayTimer:Reset();
13351340
end

Data/Missions.rte/Activities/DecisionDay.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,8 @@ function DecisionDay:UpdateAIDecisions()
16111611
bunkerRegionData.aiRegionDefenseTimer:Reset();
16121612
end
16131613
elseif bunkerRegionData.ownerTeam == self.humanTeam then
1614+
bunkerRegionData.aiRegionDefenseTimer:Reset();
1615+
16141616
humanOwnedBunkerRegions[#humanOwnedBunkerRegions + 1] = bunkerRegionData;
16151617
if bunkerRegionData.aiRecaptureWeight > 0 and (bunkerRegionForAIToRecapture == nil or bunkerRegionData.aiRecaptureWeight > bunkerRegionForAIToRecapture.aiRecaptureWeight) and bunkerRegionData.aiRegionAttackTimer:IsPastSimTimeLimit() then
16161618
bunkerRegionForAIToRecapture = bunkerRegionData;

0 commit comments

Comments
 (0)