Sources/CryGame C++/Solution1/CryGame/XPlayerCamera.cpp
//////////////////////////////////////////////////////////////////////////
/*! Updates the third person view (eg. drawing the character)
		@param nWeaponIndex weapon-id to retrieve from
		@return WeaponInfo if the function succeeds, NULL otherwise
*/
Updates the third person view
@param nWeaponIndex weapon-id to retrieve from
@return WeaponInfo if the function succeeds, NULL otherwise
Updates the third person view @param nWeaponIndex weapon - id to retrieve from @return WeaponInfo if the function succeeds NULL otherwise
void CPlayer::UpdateThirdPersonView( )
{
	if(m_nSelectedWeaponID != -1 && IsMyPlayer())
	{
		GetEntity()->DrawCharacter(1,0);
		GetEntity()->ResetAnimations(1);
	}
	m_pEntity->SetRndFlags(ERF_RECVSHADOWMAPS|ERF_RECVSHADOWMAPS_ACTIVE, false);
	m_pEntity->SetRndFlags(ERF_FIRST_PERSON_CAMERA_OWNER, false);
	if(IsMyPlayer())
		m_pEntity->SetRndFlags(ERF_CASTSHADOWMAPS | ERF_CASTSHADOWVOLUME, true);
}
void CPlayer :: UpdateThirdPersonView ( ) { if ( m_nSelectedWeaponID != -1 && IsMyPlayer ( ) ) { GetEntity ( ) -> DrawCharacter ( 1 , 0 ) ; GetEntity ( ) -> ResetAnimations ( 1 ) ; } m_pEntity -> SetRndFlags ( ERF_RECVSHADOWMAPS | ERF_RECVSHADOWMAPS_ACTIVE , false ) ; m_pEntity -> SetRndFlags ( ERF_FIRST_PERSON_CAMERA_OWNER , false ) ; if ( IsMyPlayer ( ) ) m_pEntity -> SetRndFlags ( ERF_CASTSHADOWMAPS | ERF_CASTSHADOWVOLUME , true ) ; }
Updates the third person view (eg.
Updates the third person view ( eg .