|
|
@ -3214,10 +3214,10 @@ void CUserEntity::toggleCamera()
|
|
|
|
}// toggleCamera //
|
|
|
|
}// toggleCamera //
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------
|
|
|
|
//-----------------------------------------------
|
|
|
|
// forceCamareaFirstPerson :
|
|
|
|
// forceCameraFirstPerson :
|
|
|
|
// Force Camera to First Person View
|
|
|
|
// Force Camera to First Person View
|
|
|
|
//-----------------------------------------------
|
|
|
|
//-----------------------------------------------
|
|
|
|
void CUserEntity::forceCamareaFirstPerson()
|
|
|
|
void CUserEntity::forceCameraFirstPerson()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// You cannot change the camera view when dead.
|
|
|
|
// You cannot change the camera view when dead.
|
|
|
|
if(isDead())
|
|
|
|
if(isDead())
|
|
|
@ -3225,10 +3225,11 @@ void CUserEntity::forceCamareaFirstPerson()
|
|
|
|
// Only if not inside a building.
|
|
|
|
// Only if not inside a building.
|
|
|
|
if(!UserEntity->forceIndoorFPV())
|
|
|
|
if(!UserEntity->forceIndoorFPV())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//Enter the 1st Person View Mode
|
|
|
|
if (UserEntity->viewMode() != CUserEntity::FirstPV)
|
|
|
|
UserEntity->viewMode(CUserEntity::FirstPV);
|
|
|
|
//Enter the 1st Person View Mode
|
|
|
|
|
|
|
|
UserEntity->viewMode(CUserEntity::FirstPV);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}// forceCamareaFirstPerson //
|
|
|
|
}// forceCameraFirstPerson //
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------
|
|
|
|
//---------------------------------------------------
|
|
|
|
// getScale :
|
|
|
|
// getScale :
|
|
|
|