Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Client/mods/deathmatch/logic/CClientCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ void CClientCamera::DoPulse ( void )
{
if ( !pVehicle )
{
SetFocus ( m_pFocusedPlayer, MODE_BEHINDCAR );
SetFocus ( m_pFocusedPlayer, MODE_CAM_ON_A_STRING );
}
}
else if ( pVehicle )
{
SetFocus ( m_pFocusedPlayer, MODE_BEHINDCAR );
SetFocus ( m_pFocusedPlayer, MODE_CAM_ON_A_STRING );
}
}
else
{
SetFocus ( m_pFocusedPlayer, MODE_BEHINDCAR );
SetFocus ( m_pFocusedPlayer, MODE_CAM_ON_A_STRING );
}
}

Expand Down Expand Up @@ -357,8 +357,7 @@ void CClientCamera::SetFocus ( CClientEntity* pEntity, eCamMode eMode, bool bSmo
}

// Hacky, used to follow peds
//if ( eMode == MODE_CAM_ON_A_STRING && eType == CCLIENTPLAYERMODEL )
if ( eMode == MODE_BEHINDCAR && ( eType == CCLIENTPED || eType == CCLIENTPLAYER ) )
if ( eMode == MODE_CAM_ON_A_STRING && ( eType == CCLIENTPED || eType == CCLIENTPLAYER ) )
eMode = MODE_FOLLOWPED;

// Do it
Expand Down Expand Up @@ -503,7 +502,7 @@ void CClientCamera::RestoreEntity ( CClientEntity* pEntity )
{
if ( m_pFocusedEntity && m_pFocusedEntity == pEntity )
{
SetFocus ( pEntity, MODE_BEHINDCAR );
SetFocus ( pEntity, MODE_CAM_ON_A_STRING );
m_bInvalidated = false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4630,7 +4630,7 @@ bool CStaticFunctionDefinitions::SetCameraTarget ( CClientEntity * pEntity )
// TODO: stream in the player here (needs to be done through the streamer)

// Put the focus on that player
m_pCamera->SetFocus ( pPlayer, MODE_BEHINDCAR, false );
m_pCamera->SetFocus ( pPlayer, MODE_CAM_ON_A_STRING, false );
}
break;
}
Expand Down
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/rpc/CCameraRPCs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void CCameraRPCs::SetCameraTarget ( NetBitStreamInterface& bitStream )
else
{
// Put the focus on that player
m_pCamera->SetFocus ( pPlayer, MODE_BEHINDCAR, false );
m_pCamera->SetFocus ( pPlayer, MODE_CAM_ON_A_STRING, false );
}
break;
}
Expand Down