Skip to content

Commit ab0bbf1

Browse files
committed
Made dropships with no engines scuttle after a few seconds
1 parent 4fe3549 commit ab0bbf1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Data/Base.rte/AI/NativeDropShipAI.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ function NativeDropShipAI:Update(Owner)
284284
Ctrl:SetState(Controller.MOVE_UP, false);
285285
Ctrl:SetState(Controller.MOVE_DOWN, false);
286286
end
287+
288+
if Owner.LeftEngine == nil and Owner.RightEngine == nil and self.StuckTimer.ElapsedSimTimeMS < 35000 then
289+
self.StuckTimer.ElapsedSimTimeMS = 35000;
290+
end
287291

288292
-- If we are hopelessly stuck, self destruct
289293
if Owner.Vel.Largest > 3 or Owner.AIMode == Actor.AIMODE_STAY then

0 commit comments

Comments
 (0)