1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Update cl_init.lua

resolve #224
This commit is contained in:
Ilya Krasnow
2022-01-07 04:58:59 +03:00
parent 9aed01d2b6
commit f3115e3df4

View File

@@ -3096,8 +3096,8 @@ function ENT:Think()
local rol40p = Lerp((speed-25)/12,0.6,1)
local rol40 = math.Clamp((speed-23)/8,0,1)*(1-math.Clamp((speed-55)/8,0,1))
local rol40p = Lerp((speed-23)/50,0.6,1)
local rol70 = math.Clamp((speed-50)/8,0,1)*(1-math.Clamp((speed-72)/5,0,1))
local rol70p = Lerp(0.8+(speed-65)/25*0.2,0.8,1.2)
local rol70 = math.Clamp((speed-40)/8,0,1)*(1-math.Clamp((speed-62)/5,0,1))
local rol70p = Lerp(0.8+(speed-55)/25*0.2,0.8,1.2)
local rol80 = math.Clamp((speed-70)/5,0,1)
local rol80p = Lerp(0.8+(speed-72)/15*0.2,0.8,1.2)
self:SetSoundState("rolling_5",math.min(1,rollingi*(1-rollings)+rollings*0.8)*rol5,1)