mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
recoil clamping if stutter detected, test in mp pls
This commit is contained in:
parent
0002d40cf6
commit
3fac06ab5f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user