You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that because the weapon prediction code sets the time to what's passed in from the engine the time can sometimes be that of an older frame being run again, so the value will be in the past. This doesn't break anything but it could delay the change taking effect by a frame. See #3252 for a change related to that.
The text was updated successfully, but these errors were encountered:
SamVanheer
added a commit
to twhl-community/halflife-updated
that referenced
this issue
Mar 3, 2022
Changing the
m_rawinput
cvar doesn't change the raw input behavior if thecl_lw
cvar is0
.This is because the input code checks the current time using
gpGlobals->time
:halflife/cl_dll/inputw32.cpp
Lines 366 to 370 in c7240b9
Which is only updated if weapon prediction is enabled:
halflife/cl_dll/hl/hl_weapons.cpp
Lines 680 to 681 in c7240b9
To fix this the input code should get the current time from the engine and use that instead:
This global variable declaration can also be removed:
halflife/cl_dll/inputw32.cpp
Line 61 in c7240b9
Note that because the weapon prediction code sets the time to what's passed in from the engine the time can sometimes be that of an older frame being run again, so the value will be in the past. This doesn't break anything but it could delay the change taking effect by a frame. See #3252 for a change related to that.
The text was updated successfully, but these errors were encountered: