mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 03:24:15 +01:00
Fix aiming with minigun and flamethrower with PC controls
This commit is contained in:
parent
5e34b1efcf
commit
aec797671e
@ -1913,7 +1913,7 @@ bool CRunningScript::CheckDamagedWeaponType(int32 actual, int32 type)
|
||||
if (type == WEAPONTYPE_ANYMELEE) {
|
||||
if (actual <= WEAPONTYPE_CHAINSAW)
|
||||
return true;
|
||||
if (actual - WEAPONTYPE_GRENADE <= WEAPONTYPE_MINIGUN)
|
||||
if (actual >= WEAPONTYPE_GRENADE && actual <= WEAPONTYPE_UNIDENTIFIED)
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user