Flipping viewmodels?

Grab your favourite IDE and tinker with the innards of game engines

Re: Flipping viewmodels?

Postby Jordash on Sun Jun 26, 2011 5:08 am

Strange...

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
User avatar
Jordash
Been Here A While
Been Here A While
 
Joined: Mon Sep 21, 2009 10:36 am
Location: Perth, Australia

Re: Flipping viewmodels?

Postby Cpl Bradley on Sun Jun 26, 2011 8:12 am

Still not working.
Cpl Bradley
Member
Member
 
Joined: Fri Jul 30, 2010 11:32 pm

Re: Flipping viewmodels?

Postby Cpl Bradley on Wed Jun 29, 2011 2:49 am

Wait, I replace it with that, or do i add that?
Cpl Bradley
Member
Member
 
Joined: Fri Jul 30, 2010 11:32 pm
Previous

Return to Programming

Who is online

Users browsing this forum: No registered users