From 1b0a565a9d2ad7f9af4c930f8a881f86b75c5776 Mon Sep 17 00:00:00 2001 From: Fixinit75 <78933401+fixinit75@users.noreply.github.com> Date: Wed, 21 Dec 2022 01:54:37 +0300 Subject: [PATCH] Add files via upload --- lua/entities/gmod_subway_81-718/init.lua | 2 +- lua/entities/gmod_subway_81-719/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/entities/gmod_subway_81-718/init.lua b/lua/entities/gmod_subway_81-718/init.lua index 6d586b1..8a08ad8 100644 --- a/lua/entities/gmod_subway_81-718/init.lua +++ b/lua/entities/gmod_subway_81-718/init.lua @@ -572,7 +572,7 @@ function ENT:Think() -- These corrections are required to beat source engine friction at very low values of motor power local P = math.max(0,0.04449 + 1.06879*math.abs(A) - 0.465729*A^2) if math.abs(A) > 0.4 then P = math.abs(A) end - --if math.abs(A) < 0.05 then P = 0 end + if math.abs(A) < 0.05 then P = 0 end if self.Speed < 10 and A > 0 then P = P*(1.0 + 2.5*(10.0-self.Speed)/10.0) end self.RearBogey.MotorPower = P*0.5*((A > 0) and 1 or -1) self.FrontBogey.MotorPower = P*0.5*((A > 0) and 1 or -1) diff --git a/lua/entities/gmod_subway_81-719/init.lua b/lua/entities/gmod_subway_81-719/init.lua index 57982cd..6960006 100644 --- a/lua/entities/gmod_subway_81-719/init.lua +++ b/lua/entities/gmod_subway_81-719/init.lua @@ -336,7 +336,7 @@ function ENT:Think() -- These corrections are required to beat source engine friction at very low values of motor power local P = math.max(0,0.04449 + 1.06879*math.abs(A) - 0.465729*A^2) if math.abs(A) > 0.4 then P = math.abs(A) end - --if math.abs(A) < 0.05 then P = 0 end + if math.abs(A) < 0.05 then P = 0 end if self.Speed < 10 and A > 0 then P = P*(1.0 + 2.5*(10.0-self.Speed)/10.0) end self.RearBogey.MotorPower = P*0.5*((A > 0) and 1 or -1) self.FrontBogey.MotorPower = P*0.5*((A > 0) and 1 or -1)