From 24d319a83650c31e863f08313fdee4e751d20d77 Mon Sep 17 00:00:00 2001 From: unixtensor Date: Fri, 6 Sep 2024 16:57:05 -0400 Subject: [PATCH] native changes for MovingObjects and TractionRopes --- src/server/main/Elevators/Map/Haughton/MovingObjects.luau | 2 ++ src/server/main/Elevators/Map/Haughton/TractionRopes.luau | 1 + 2 files changed, 3 insertions(+) diff --git a/src/server/main/Elevators/Map/Haughton/MovingObjects.luau b/src/server/main/Elevators/Map/Haughton/MovingObjects.luau index a1acc2f..4dc47b0 100644 --- a/src/server/main/Elevators/Map/Haughton/MovingObjects.luau +++ b/src/server/main/Elevators/Map/Haughton/MovingObjects.luau @@ -271,6 +271,7 @@ function MovingObjects:RotateRelayCogs3() self.Controller_End:Play() end +@native function MovingObjects:RotateRotodials(Elevator_Y_Velocity) local rad = math.rad(Elevator_Y_Velocity/MovingObjects.RotateRotodialsSensitivity) for n: number = 1, #self.Rotodials do @@ -278,6 +279,7 @@ function MovingObjects:RotateRotodials(Elevator_Y_Velocity) end end +@native function MovingObjects:RotatePulleyWheel(TravelingUpwards, Elevator_Y_Velocity) self.PulleyWheel.CFrame*=CFrame.Angles(math.rad((TravelingUpwards and -Elevator_Y_Velocity or Elevator_Y_Velocity)/MovingObjects.PulleyWheelRotationSensitivity),0,0) end diff --git a/src/server/main/Elevators/Map/Haughton/TractionRopes.luau b/src/server/main/Elevators/Map/Haughton/TractionRopes.luau index fc8a503..f361da6 100644 --- a/src/server/main/Elevators/Map/Haughton/TractionRopes.luau +++ b/src/server/main/Elevators/Map/Haughton/TractionRopes.luau @@ -45,6 +45,7 @@ function TractionRopes.constructor(CabRopesObject, PulleyRopesObject) }, TractionRopes) end +@native function TractionRopes:Update() local StudLength = (self.PulleyRopesObject.Position-self.CabRopesObject.Position).Magnitude+1 for n: number = 1, #self.PulleyCables do