recoil clamping if stutter detected, test in mp pls

This commit is contained in:
Darsu 2025-01-06 22:42:35 +07:00
parent 0002d40cf6
commit 3fac06ab5f

View File

@ -181,6 +181,11 @@ do
MAGIC2 = 210 / (engine.TickInterval() / 0.015)
end
if CLIENT and RealFrameTime() > 0.09 then -- super lag detected, clamping recoil
MAGIC1 = 0.1
MAGIC2 = 0.1
end
local ft = FrameTime()
local springconstant = swepGetProcessedValue(self, "VisualRecoilDampingConst", true) or 120