I'm having a look at my working code now, it looks like I deviated from the tutorial a little because, as you rightly said the code is a different in the newer version of the engine. I still commented out the statments preventing cl_righthand from being defined, which I assume you have as well since your code is compiling. But instead of allowing shouldflipmodel to work, I've instead pasted
- Code: Select all
// If cl_righthand is set, then we want them all right-handed.
CBaseCombatWeapon *pWeapon = m_hWeapon.Get();
if ( pWeapon )
{
const FileWeaponInfo_t *pInfo = &pWeapon->GetWpnData();
return pInfo->m_bAllowFlipping && pInfo->m_bBuiltRightHanded != cl_righthand.GetBool();
}
return false;
after the old code. See how that goes


