1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-04 00:52:33 +00:00

Update cl_init.lua

This commit is contained in:
Ilya Krasnow
2022-04-14 03:02:08 +03:00
parent 593b53612e
commit fa3e3eed5a

View File

@@ -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))