diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-25 20:01:00 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-25 20:01:00 +0200 |
commit | d83b8cf940b9116a334ae982126b38de06caecfd (patch) | |
tree | 9b819d88fce9719c9f78557ff10025592b322e40 /src/peds | |
parent | Merge remote-tracking branch 'upstream/lcs' into lcs (diff) | |
parent | Fix (diff) | |
download | re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.gz re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.bz2 re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.lz re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.xz re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.zst re3-d83b8cf940b9116a334ae982126b38de06caecfd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedFight.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/peds/PedFight.cpp b/src/peds/PedFight.cpp index 7ec8b7dd..6fd1e949 100644 --- a/src/peds/PedFight.cpp +++ b/src/peds/PedFight.cpp @@ -354,6 +354,14 @@ CPed::SetAttack(CEntity *victim) SetAimFlag(m_fRotationCur); } } +#ifdef FIX_BUGS + // fix aiming for flamethrower and minigun while using PC controls + else if (curWeapon->m_AnimToPlay == ASSOCGRP_FLAMETHROWER && TheCamera.Cams[0].Using3rdPersonMouseCam() && this == FindPlayerPed()) + { + SetAimFlag(m_fRotationCur); + ((CPlayerPed*)this)->m_fFPSMoveHeading = TheCamera.Find3rdPersonQuickAimPitch(); + } +#endif if (m_nPedState == PED_ATTACK) { bIsAttacking = true; return; |