mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 04:00:00 +00:00
Don't react if player's targeting with melee
This commit is contained in:
parent
e7945625b5
commit
72088a000b
|
@ -10232,7 +10232,11 @@ CPed::ProcessControl(void)
|
||||||
CPed::Chat();
|
CPed::Chat();
|
||||||
break;
|
break;
|
||||||
case PED_AIM_GUN:
|
case PED_AIM_GUN:
|
||||||
if (m_pPointGunAt && m_pPointGunAt->IsPed() && ((CPed*)m_pPointGunAt)->CanSeeEntity(this, CAN_SEE_ENTITY_ANGLE_THRESHOLD * 2)) {
|
if (m_pPointGunAt && m_pPointGunAt->IsPed()
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
&& !GetWeapon()->IsTypeMelee()
|
||||||
|
#endif
|
||||||
|
&& ((CPed*)m_pPointGunAt)->CanSeeEntity(this, CAN_SEE_ENTITY_ANGLE_THRESHOLD * 2)) {
|
||||||
((CPed*)m_pPointGunAt)->ReactToPointGun(this);
|
((CPed*)m_pPointGunAt)->ReactToPointGun(this);
|
||||||
}
|
}
|
||||||
PointGunAt();
|
PointGunAt();
|
||||||
|
|
Loading…
Reference in a new issue