Skip to content

Commit 0cc0cbd

Browse files
committed
Fixed script issue breaking AI
1 parent a553c09 commit 0cc0cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data/Base.rte/AI/NativeHumanAI.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ function NativeHumanAI:Update(Owner)
6767

6868
-- Our jetpack might have thrust balancing enabled, so update for our current mass
6969
if Owner.Jetpack then
70-
Members.jetImpulseFactor = Owner.Jetpack:EstimateImpulse(false) * GetPPM() / TimerMan.DeltaTimeSecs;
71-
Members.jetBurstFactor = (Owner.Jetpack:EstimateImpulse(true) * GetPPM() / TimerMan.DeltaTimeSecs - Members.jetImpulseFactor) * math.pow(TimerMan.DeltaTimeSecs, 2) * 0.5;
70+
self.jetImpulseFactor = Owner.Jetpack:EstimateImpulse(false) * GetPPM() / TimerMan.DeltaTimeSecs;
71+
self.jetBurstFactor = (Owner.Jetpack:EstimateImpulse(true) * GetPPM() / TimerMan.DeltaTimeSecs - self.jetImpulseFactor) * math.pow(TimerMan.DeltaTimeSecs, 2) * 0.5;
7272
end
7373

7474
if self.isPlayerOwned then

0 commit comments

Comments
 (0)