summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-25 20:01:00 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-25 20:01:00 +0200
commitd83b8cf940b9116a334ae982126b38de06caecfd (patch)
tree9b819d88fce9719c9f78557ff10025592b322e40 /src/peds
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
parentFix (diff)
downloadre3-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 'src/peds')
-rw-r--r--src/peds/PedFight.cpp8
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;