support cl_righthand
This commit is contained in:
parent
cb00ff4ff5
commit
22b3d26c0b
@ -35,9 +35,9 @@
|
|||||||
// memdbgon must be the last include file in a .cpp file!!!
|
// memdbgon must be the last include file in a .cpp file!!!
|
||||||
#include "tier0/memdbgon.h"
|
#include "tier0/memdbgon.h"
|
||||||
|
|
||||||
#ifdef CSTRIKE_DLL
|
//#ifdef CSTRIKE_DLL
|
||||||
ConVar cl_righthand("cl_righthand", "1", FCVAR_ARCHIVE, "Use right-handed view models.");
|
ConVar cl_righthand("cl_righthand", "1", FCVAR_ARCHIVE, "Use right-handed view models.");
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
#ifdef TF_CLIENT_DLL
|
#ifdef TF_CLIENT_DLL
|
||||||
ConVar cl_flipviewmodels("cl_flipviewmodels", "0", FCVAR_USERINFO | FCVAR_ARCHIVE | FCVAR_NOT_CONNECTED, "Flip view models.");
|
ConVar cl_flipviewmodels("cl_flipviewmodels", "0", FCVAR_USERINFO | FCVAR_ARCHIVE | FCVAR_NOT_CONNECTED, "Flip view models.");
|
||||||
@ -197,7 +197,7 @@ bool C_BaseViewModel::Interpolate( float currentTime )
|
|||||||
|
|
||||||
bool C_BaseViewModel::ShouldFlipViewModel()
|
bool C_BaseViewModel::ShouldFlipViewModel()
|
||||||
{
|
{
|
||||||
#ifdef CSTRIKE_DLL
|
//#ifdef CSTRIKE_DLL
|
||||||
// If cl_righthand is set, then we want them all right-handed.
|
// If cl_righthand is set, then we want them all right-handed.
|
||||||
CBaseCombatWeapon* pWeapon = m_hWeapon.Get();
|
CBaseCombatWeapon* pWeapon = m_hWeapon.Get();
|
||||||
if (pWeapon)
|
if (pWeapon)
|
||||||
@ -205,7 +205,7 @@ bool C_BaseViewModel::ShouldFlipViewModel()
|
|||||||
const FileWeaponInfo_t* pInfo = &pWeapon->GetWpnData();
|
const FileWeaponInfo_t* pInfo = &pWeapon->GetWpnData();
|
||||||
return pInfo->m_bAllowFlipping && pInfo->m_bBuiltRightHanded != cl_righthand.GetBool();
|
return pInfo->m_bAllowFlipping && pInfo->m_bBuiltRightHanded != cl_righthand.GetBool();
|
||||||
}
|
}
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
#ifdef TF_CLIENT_DLL
|
#ifdef TF_CLIENT_DLL
|
||||||
CBaseCombatWeapon* pWeapon = m_hWeapon.Get();
|
CBaseCombatWeapon* pWeapon = m_hWeapon.Get();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user