[QuickPatch] Fix mouse lags

This commit is contained in:
momo5502 2019-03-10 22:01:56 +01:00
parent f207b3bba9
commit 4d53b29fec

View File

@ -553,6 +553,13 @@ namespace Components
// Patch SV_IsClientUsingOnlineStatsOffline // Patch SV_IsClientUsingOnlineStatsOffline
Utils::Hook::Set<DWORD>(0x46B710, 0x90C3C033); Utils::Hook::Set<DWORD>(0x46B710, 0x90C3C033);
// Fix mouse lag
Utils::Hook::Nop(0x4731F5, 8);
Scheduler::OnFrame([]()
{
SetThreadExecutionState(ES_DISPLAY_REQUIRED);
});
// Fix mouse pitch adjustments // Fix mouse pitch adjustments
Dvar::Register<bool>("ui_mousePitch", false, Game::DVAR_FLAG_SAVED, ""); Dvar::Register<bool>("ui_mousePitch", false, Game::DVAR_FLAG_SAVED, "");
UIScript::Add("updateui_mousePitch", [](UIScript::Token) UIScript::Add("updateui_mousePitch", [](UIScript::Token)