aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/cam_thirdperson.cpp
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/shared/cam_thirdperson.cpp
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-master.tar.xz
source-sdk-2013-master.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/game/shared/cam_thirdperson.cpp')
-rw-r--r--mp/src/game/shared/cam_thirdperson.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/mp/src/game/shared/cam_thirdperson.cpp b/mp/src/game/shared/cam_thirdperson.cpp
index 81db62d4..02d7753b 100644
--- a/mp/src/game/shared/cam_thirdperson.cpp
+++ b/mp/src/game/shared/cam_thirdperson.cpp
@@ -21,10 +21,6 @@ static Vector CAM_HULL_MAX( CAM_HULL_OFFSET, CAM_HULL_OFFSET, CAM_HULL_OFFSET);
extern const ConVar *sv_cheats;
-extern ConVar cam_idealdist;
-extern ConVar cam_idealdistright;
-extern ConVar cam_idealdistup;
-
void CAM_ToThirdPerson(void);
void CAM_ToFirstPerson(void);
@@ -103,16 +99,6 @@ void CThirdPersonManager::Update( void )
}
-Vector CThirdPersonManager::GetDesiredCameraOffset( void )
-{
- if ( IsOverridingThirdPerson() == true )
- {
- return Vector( cam_idealdist.GetFloat(), cam_idealdistright.GetFloat(), cam_idealdistup.GetFloat() );
- }
-
- return m_vecDesiredCameraOffset;
-}
-
Vector CThirdPersonManager::GetFinalCameraOffset( void )
{
Vector vDesired = GetDesiredCameraOffset();
@@ -157,7 +143,7 @@ Vector CThirdPersonManager::GetDistanceFraction( void )
return Vector( flFraction, flFraction, flUpFraction );
}
-void CThirdPersonManager::PositionCamera( CBasePlayer *pPlayer, QAngle angles )
+void CThirdPersonManager::PositionCamera( CBasePlayer *pPlayer, const QAngle& angles )
{
if ( pPlayer )
{