mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Update cl_init.lua
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user