summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-22 21:15:27 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-22 21:15:27 +0200
commitaec797671e7ae079556d7629dafa159b1431364d (patch)
treeeb8158591c2e7e448c94a1cf39ba024759eddea3 /src/peds
parentPossible fix of RemoveAndAdd crash (diff)
downloadre3-aec797671e7ae079556d7629dafa159b1431364d.tar
re3-aec797671e7ae079556d7629dafa159b1431364d.tar.gz
re3-aec797671e7ae079556d7629dafa159b1431364d.tar.bz2
re3-aec797671e7ae079556d7629dafa159b1431364d.tar.lz
re3-aec797671e7ae079556d7629dafa159b1431364d.tar.xz
re3-aec797671e7ae079556d7629dafa159b1431364d.tar.zst
re3-aec797671e7ae079556d7629dafa159b1431364d.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 8e377c81..20df6553 100644
--- a/src/peds/PedFight.cpp
+++ b/src/peds/PedFight.cpp
@@ -352,6 +352,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;