1
0
Fork 0
mirror of https://github.com/halpz/re3.git synced 2024-12-22 17:35:29 +00:00

Fix aiming with flamethrower with PC controls

This commit is contained in:
Sergeanur 2021-07-22 22:54:30 +03:00
parent 1d1f10d68c
commit 3adf37a3a9

View file

@ -320,6 +320,14 @@ CPed::SetAttack(CEntity *victim)
((CPlayerPed*)this)->m_fFPSMoveHeading = TheCamera.Find3rdPersonQuickAimPitch(); ((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) { if (m_nPedState == PED_ATTACK) {
bIsAttacking = true; bIsAttacking = true;
return; return;