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

Commit f2602d0

Browse files
committed
Lua bugfixes
1 parent eef2733 commit f2602d0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Base.rte/Devices/Tools/GrappleGun/Grapple.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ function Update(self)
377377
local jointStiffness;
378378
local target = self.target;
379379
if target.ID ~= target.RootID then
380-
local mo = MovableMan:GetMOFromID(target.RootID);
380+
local mo = target:GetRootParent();
381381
if mo.ID ~= rte.NoMOID and IsAttachable(target) then
382382
-- It's best to apply all the forces to the parent instead of utilizing JointStiffness
383383
target = mo;

Techion.rte/Devices/Shared/Scripts/PulseShot.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function Update(self)
2727
self.EffectRotAngle = self.Vel.AbsRadAngle;
2828
end
2929
function PulsarDissipate(self, inverted)
30+
self.lastVel = self.lastVel or Vector(self.Vel.X, self.Vel.Y);
3031

3132
local trace = inverted and Vector(-self.Vel.X, -self.Vel.Y):SetMagnitude(GetPPM()) or Vector(self.Vel.X, self.Vel.Y):SetMagnitude(self.Vel.Magnitude * rte.PxTravelledPerFrame + 1);
3233
local hit;

0 commit comments

Comments
 (0)