diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-22 21:54:30 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-22 21:54:30 +0200 |
commit | 3adf37a3a94d1a7d2cbef5156b9b17f11b01b551 (patch) | |
tree | 589ff187305602817a459ffe7cfa90b78552cba1 /src/peds/PedFight.cpp | |
parent | Fixes from miami (diff) | |
download | re3-3adf37a3a94d1a7d2cbef5156b9b17f11b01b551.tar re3-3adf37a3a94d1a7d2cbef5156b9b17f11b01b551.tar.gz re3-3adf37a3a94d1a7d2cbef5156b9b17f11b01b551.tar.bz2 re3-3adf37a3a94d1a7d2cbef5156b9b17f11b01b551.tar.lz re3-3adf37a3a94d1a7d2cbef5156b9b17f11b01b551.tar.xz re3-3adf37a3a94d1a7d2cbef5156b9b17f11b01b551.tar.zst re3-3adf37a3a94d1a7d2cbef5156b9b17f11b01b551.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 46ac369c..13d3930c 100644 --- a/src/peds/PedFight.cpp +++ b/src/peds/PedFight.cpp @@ -320,6 +320,14 @@ CPed::SetAttack(CEntity *victim) ((CPlayerPed*)this)->m_fFPSMoveHeading = TheCamera.Find3rdPersonQuickAimPitch(); } } +#ifdef FIX_BUGS + // fix aiming for flamethrower while using PC controls + else if (GetWeapon()->m_eWeaponType == WEAPONTYPE_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; |