diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-05-16 14:07:09 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-05-16 14:07:09 +0200 |
commit | 40ee29fb99cc82c720ece4eab0e06855a161d12a (patch) | |
tree | 4a345e53af2bd41fa11b869d3cb40fa220166652 /src/peds/PedIK.cpp | |
parent | bla (diff) | |
download | re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.gz re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.bz2 re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.lz re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.xz re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.zst re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedIK.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/peds/PedIK.cpp b/src/peds/PedIK.cpp index 8b3835b3..6543e9a3 100644 --- a/src/peds/PedIK.cpp +++ b/src/peds/PedIK.cpp @@ -293,9 +293,12 @@ bool CPedIK::PointGunAtPosition(CVector const& position) { // TODO(MIAMI): special cases for some weapons + + RwV3d armPos; + GetComponentPosition(&armPos, PED_UPPERARMR); return PointGunInDirection( CGeneral::GetRadianAngleBetweenPoints(position.x, position.y, m_ped->GetPosition().x, m_ped->GetPosition().y), - CGeneral::GetRadianAngleBetweenPoints(position.z, Distance2D(m_ped->GetPosition(), position.x, position.y), m_ped->GetPosition().z, 0.0f)); + CGeneral::GetRadianAngleBetweenPoints(position.z, Distance2D(m_ped->GetPosition(), position.x, position.y), armPos.z, 0.0f)); } bool |