Skip to content

Commit 13d92bc

Browse files
authored
Merge pull request #62 from cortex-command-community/pre6-last-microsecond-fixes
Skirmish Def, Eruptor, Rocket plummeting fixes
2 parents 2a5ecaf + de3f4ee commit 13d92bc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Data/Base.rte/AI/RocketAI.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,12 @@ function ThreadedUpdateAI(self)
206206
self.burstUp = nil;
207207
self.Ctrl:SetState(Controller.MOVE_UP, true); -- Don't burst when returning to orbit
208208
else
209-
if change < -3 and not self.burstUp then
209+
if change < -2.2 and not self.burstUp then
210210
self.burstUp = math.max(9 - change, 2); -- Wait n frames until next burst (lower -> better control)
211+
if change < -6 then
212+
self.Ctrl:SetState(Controller.MOVE_UP, true);
213+
self.burstUp = nil;
214+
end
211215
elseif change > 20 then
212216
self.burstUp = nil;
213217
self.Ctrl:SetState(Controller.MOVE_DOWN, true);
@@ -275,7 +279,7 @@ function ThreadedUpdateAI(self)
275279
self.burstUp = self.burstUp - SettingsMan.AIUpdateInterval;
276280
if self.burstUp < 0 then
277281
self.Ctrl:SetState(Controller.MOVE_UP, true);
278-
if self.burstUp < -16 then
282+
if self.burstUp < -8 then
279283
self.burstUp = nil;
280284
end
281285
end

Data/Browncoats.rte/Devices/Shields/Eruptor/Eruptor.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function Create(self)
2222
self:SetOneHanded(true);
2323
local rootParent = self:GetRootParent();
2424
if IsAHuman(rootParent) then
25-
if ToAHuman(rootParent).EquippedItem.UniqueID == self.UniqueID then
25+
if ToAHuman(rootParent).EquippedItem and ToAHuman(rootParent).EquippedItem.UniqueID == self.UniqueID then
2626
ToAHuman(rootParent):UnequipBGArm();
2727
self.equippedInMainHand = true;
2828
self:SetOneHanded(false);

0 commit comments

Comments
 (0)