From d81809ae5ee62f72ca695304c73193ed0eee790c Mon Sep 17 00:00:00 2001 From: Tater Date: Sat, 23 Nov 2024 17:33:14 -0600 Subject: [PATCH] Change tc_improve_mouse_precision distance to 1000 --- src/engine/shared/tater_variables.h | 2 +- src/game/client/components/controls.cpp | 4 ++-- src/game/client/components/menus_settings.cpp | 2 +- src/game/client/components/players.cpp | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/engine/shared/tater_variables.h b/src/engine/shared/tater_variables.h index 8d805974f28..2cff8bb91f8 100644 --- a/src/engine/shared/tater_variables.h +++ b/src/engine/shared/tater_variables.h @@ -24,7 +24,7 @@ MACRO_CONFIG_INT(ClPingNameCircle, tc_nameplate_ping_circle, 0, 0, 1, CFGFLAG_CL MACRO_CONFIG_INT(ClSpecmenuID, tc_spec_menu_ID, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Shows player IDs in spectate menu") MACRO_CONFIG_INT(ClLimitMouseToScreen, tc_limit_mouse_to_screen, 0, 0, 2, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Limit mouse to screen boundries") -MACRO_CONFIG_INT(ClImproveMousePrecision, tc_improve_mouse_precision, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Improve mouse precision by scaling max distance to 2000") +MACRO_CONFIG_INT(ClImproveMousePrecision, tc_improve_mouse_precision, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Improve mouse precision by scaling max distance to 1000") MACRO_CONFIG_INT(ClHammerRotatesWithCursor, tc_hammer_rotates_with_cursor, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Allow your hammer to rotate like other weapons") diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index 8d4748dc957..20d20a6cf93 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -210,7 +210,7 @@ int CControls::SnapInput(int *pData) // even if chat or menu are activated vec2 Pos = m_pClient->m_Controls.m_aMousePos[g_Config.m_ClDummy]; if(g_Config.m_ClImproveMousePrecision) - Pos *= length(Pos) * 2000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); + Pos *= length(Pos) * 1000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); if(!m_pClient->m_Snap.m_SpecInfo.m_Active && !g_Config.m_ClOldMouseZoom) Pos *= m_pClient->m_Camera.m_Zoom; m_aInputData[g_Config.m_ClDummy].m_TargetX = (int)Pos.x; @@ -235,7 +235,7 @@ int CControls::SnapInput(int *pData) if(!m_pClient->m_Snap.m_SpecInfo.m_Active) { if(g_Config.m_ClImproveMousePrecision) - Pos *= length(Pos) * 2000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); + Pos *= length(Pos) * 1000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); if(!g_Config.m_ClOldMouseZoom) Pos *= m_pClient->m_Camera.m_Zoom; } diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 0fc762824c5..98fd5ba72be 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -3355,7 +3355,7 @@ void CMenus::RenderSettingsTClient(CUIRect MainView) Column.HSplitTop(MarginSmall, nullptr, &Column); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClOldMouseZoom, Localize("Old Mouse Precision (fixes precision at low zoom levels, \nbreaks /tc, /telecursor while zoomed)"), &g_Config.m_ClOldMouseZoom, &Column, LineSize); Column.HSplitTop(MarginSmall, nullptr, &Column); - DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClImproveMousePrecision, Localize("Improve mouse precision by scaling max distance to 2000"), &g_Config.m_ClImproveMousePrecision, &Column, LineSize); + DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClImproveMousePrecision, Localize("Improve mouse precision by scaling max distance to 1000"), &g_Config.m_ClImproveMousePrecision, &Column, LineSize); s_SectionBoxes.back().h = Column.y - s_SectionBoxes.back().y; // ***** Anti Latency Tools ***** // diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 4a0e6291a94..a0851aeb6a1 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -195,7 +195,7 @@ void CPlayers::RenderHookCollLine( // just use the direct input if it's the local player we are rendering vec2 Pos = m_pClient->m_Controls.m_aMousePos[g_Config.m_ClDummy]; if(g_Config.m_ClImproveMousePrecision) - Pos *= length(Pos) * 2000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); + Pos *= length(Pos) * 1000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); if(!g_Config.m_ClOldMouseZoom) Pos *= m_pClient->m_Camera.m_Zoom; Pos.x = (int)Pos.x; @@ -474,7 +474,7 @@ void CPlayers::RenderPlayer( // just use the direct input if it's the local player we are rendering vec2 Pos = m_pClient->m_Controls.m_aMousePos[g_Config.m_ClDummy]; if(g_Config.m_ClImproveMousePrecision) - Pos *= length(Pos) * 2000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); + Pos *= length(Pos) * 1000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); if(!g_Config.m_ClOldMouseZoom) Pos *= m_pClient->m_Camera.m_Zoom; Pos.x = (int)Pos.x; @@ -909,7 +909,7 @@ void CPlayers::RenderPlayerGhost( // just use the direct input if it's the local player we are rendering vec2 Pos = m_pClient->m_Controls.m_aMousePos[g_Config.m_ClDummy]; if(g_Config.m_ClImproveMousePrecision) - Pos *= length(Pos) * 2000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); + Pos *= length(Pos) * 1000.0f / (float)(g_Config.m_ClDyncam ? g_Config.m_ClDyncamMaxDistance : g_Config.m_ClMouseMaxDistance); if(!g_Config.m_ClOldMouseZoom) Pos *= m_pClient->m_Camera.m_Zoom; Pos.x = (int)Pos.x;