Skip to content

Commit f97d1cb

Browse files
committed
client: fixed incorrect weapons aiming direction calculation due to ignoring influence of punchangle
1 parent 654d1bf commit f97d1cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/client_weapon_layer_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Vector CClientWeaponLayerImpl::GetGunPosition()
4343

4444
matrix3x3 CClientWeaponLayerImpl::GetCameraOrientation()
4545
{
46-
return matrix3x3(m_playerState.viewAngles);
46+
return matrix3x3(m_playerState.viewAngles + m_playerState.punchAngle);
4747
}
4848

4949
Vector CClientWeaponLayerImpl::GetViewAngles()

0 commit comments

Comments
 (0)