From 71ceefc2ce080924f86eeae1674e622a43ce5b41 Mon Sep 17 00:00:00 2001 From: Youssef Maged Date: Sat, 12 Sep 2026 06:55:09 +0300 Subject: [PATCH] Weapon binds --- Client/core/CKeyBinds.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Client/core/CKeyBinds.cpp b/Client/core/CKeyBinds.cpp index 32a31e28c88..3a66d5f3e51 100644 --- a/Client/core/CKeyBinds.cpp +++ b/Client/core/CKeyBinds.cpp @@ -2004,8 +2004,14 @@ void CKeyBinds::DoPostFramePulse() } else { - cs.RightShoulder2 = g_bcControls[1].bState ? 255 : 0; // Next Weapon - cs.LeftShoulder2 = g_bcControls[2].bState ? 255 : 0; // Previous Weapon + bool bNextWeapon = g_bcControls[1].bState; + bool bPreviousWeapon = g_bcControls[2].bState; + + if (bNextWeapon && bPreviousWeapon) + bNextWeapon = bPreviousWeapon = false; + + cs.RightShoulder2 = bNextWeapon ? 255 : 0; // Next Weapon + cs.LeftShoulder2 = bPreviousWeapon ? 255 : 0; // Previous Weapon } if (!ControlForwardsBackWards(cs))