From fa3e3eed5a512a622f09e92ee0f8961d5b917d0f Mon Sep 17 00:00:00 2001 From: Ilya Krasnow Date: Thu, 14 Apr 2022 03:02:08 +0300 Subject: [PATCH] Update cl_init.lua --- lua/entities/gmod_track_platform/cl_init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/entities/gmod_track_platform/cl_init.lua b/lua/entities/gmod_track_platform/cl_init.lua index 6b60164..b64d5a7 100644 --- a/lua/entities/gmod_track_platform/cl_init.lua +++ b/lua/entities/gmod_track_platform/cl_init.lua @@ -352,8 +352,8 @@ function ENT:Think() end -- Move pedestrian - local speed = 256 - if distance > 1048576--[[1024]] then speed = 512 end + local speed = 150 + if distance > 1048576--[[1024]] then speed = 256 end v.ent:SetPos(v.ent:GetPos() + targetDir*math.min(threshold,speed*self.DeltaTime)) -- Rotate pedestrian v.ent:SetAngles(targetDir:Angle() + Angle(0,180,0))