diff options
author | erorcun <erayorcunus@gmail.com> | 2020-10-02 16:39:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 16:39:15 +0200 |
commit | 72f342245dcb876b974bf41cabeec4ccc6656159 (patch) | |
tree | 5ed235c96acbbbaa6bb01251be2553a6ca91246b /src/peds/CivilianPed.cpp | |
parent | Mark audio code which is the same in re3 as done (diff) | |
parent | Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff) | |
download | re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.gz re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.bz2 re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.lz re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.xz re3-72f342245dcb876b974bf41cabeec4ccc6656159.tar.zst re3-72f342245dcb876b974bf41cabeec4ccc6656159.zip |
Diffstat (limited to 'src/peds/CivilianPed.cpp')
-rw-r--r-- | src/peds/CivilianPed.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/CivilianPed.cpp b/src/peds/CivilianPed.cpp index 2be45ba9..1950c4b3 100644 --- a/src/peds/CivilianPed.cpp +++ b/src/peds/CivilianPed.cpp @@ -117,7 +117,7 @@ CCivilianPed::CivilianAI(void) } else { SetMoveState(PEDMOVE_WALK); } - } else if (threatPed->IsPlayer() && IsGangMember() && b158_80) { + } else if (threatPed->IsPlayer() && IsGangMember() && bCanAttackPlayerWithCops) { SetObjective(OBJECTIVE_KILL_CHAR_ON_FOOT, m_threatEntity); } else if (threatPed->IsPlayer() && FindPlayerPed()->m_pWanted->m_CurrentCops != 0) { @@ -203,7 +203,7 @@ CCivilianPed::CivilianAI(void) CPed *threatPed = (CPed*)m_threatEntity; if (m_pedStats->m_fear <= 100 - threatPed->m_pedStats->m_temper && threatPed->m_nPedType != PEDTYPE_COP) { if (threatPed->GetWeapon()->IsTypeMelee() || !GetWeapon()->IsTypeMelee()) { - if (threatPed->IsPlayer() && IsGangMember() && b158_80) { + if (threatPed->IsPlayer() && IsGangMember() && bCanAttackPlayerWithCops) { SetObjective(OBJECTIVE_KILL_CHAR_ON_FOOT, m_threatEntity); } else if (threatPed->IsPlayer() && FindPlayerPed()->m_pWanted->m_CurrentCops != 0) { |