From 3205d923132ed5c7ed6f002e77307d0b720b2b02 Mon Sep 17 00:00:00 2001 From: Cayama0811 <175286911+Krolot@users.noreply.github.com> Date: Sun, 24 May 2026 00:04:40 -0400 Subject: [PATCH] Restoring cl_righthand command this is specially good for porting css weapons to jbmod (its also on the legacy branch) Signed-off-by: Cayama0811 <175286911+Krolot@users.noreply.github.com> --- src/game/client/c_baseviewmodel.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/game/client/c_baseviewmodel.cpp b/src/game/client/c_baseviewmodel.cpp index a3431e7c58c..6ad33429364 100644 --- a/src/game/client/c_baseviewmodel.cpp +++ b/src/game/client/c_baseviewmodel.cpp @@ -36,9 +36,7 @@ // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" -#ifdef CSTRIKE_DLL - ConVar cl_righthand( "cl_righthand", "1", FCVAR_ARCHIVE, "Use right-handed view models." ); -#endif +ConVar cl_righthand( "cl_righthand", "1", FCVAR_ARCHIVE, "Use right-handed view models." ); #ifdef TF_CLIENT_DLL ConVar cl_flipviewmodels( "cl_flipviewmodels", "0", FCVAR_USERINFO | FCVAR_ARCHIVE | FCVAR_NOT_CONNECTED, "Flip view models." ); @@ -214,7 +212,6 @@ bool C_BaseViewModel::Interpolate( float currentTime ) bool C_BaseViewModel::ShouldFlipViewModel() { -#ifdef CSTRIKE_DLL // If cl_righthand is set, then we want them all right-handed. CBaseCombatWeapon *pWeapon = m_hWeapon.Get(); if ( pWeapon ) @@ -222,7 +219,6 @@ bool C_BaseViewModel::ShouldFlipViewModel() const FileWeaponInfo_t *pInfo = &pWeapon->GetWpnData(); return pInfo->m_bAllowFlipping && pInfo->m_bBuiltRightHanded != cl_righthand.GetBool(); } -#endif #ifdef TF_CLIENT_DLL CBaseCombatWeapon *pWeapon = m_hWeapon.Get();