diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-09-27 01:36:49 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-09-27 01:36:49 +0200 |
commit | a5d6c952a7be243a4c20b6aad47116dce0e51625 (patch) | |
tree | df4dd2067111b7c42038ca6189ac0ae6db11d9d6 /src/peds/Ped.cpp | |
parent | Use enums in aVehicleSettings (diff) | |
download | re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.gz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.bz2 re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.lz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.xz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.zst re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 6b704b37..a7c82f0a 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -67,6 +67,8 @@ #include "CutsceneShadow.h" #include "Clock.h" +// --MIAMI: file done except TODOs + #define CAN_SEE_ENTITY_ANGLE_THRESHOLD DEGTORAD(60.0f) CPed *gapTempPedList[50]; @@ -10945,7 +10947,7 @@ CPed::PedAnimAlignCB(CAnimBlendAssociation *animAssoc, void *arg) pedToDragOut->RegisterThreatWithGangPeds(ped); if (ped->m_nPedType == PEDTYPE_COP && pedToDragOut == FindPlayerPed() && veh->IsBike()) - ((CCopPed*)ped)->field_601 = 1; + ((CCopPed*)ped)->m_bDragsPlayerFromCar = 1; if (pedToDragOut == veh->pDriver) { if (veh->pPassengers[0]) @@ -20894,11 +20896,11 @@ CPed::KillCharOnFootMelee(CVector &ourPos, CVector &targetPos, CVector &distWith } if (m_nPedType == PEDTYPE_COP && m_pedInObjective->IsPlayer()) { float maxArrestDist = 1.5f; - if (((CCopPed*)this)->field_601) { + if (((CCopPed*)this)->m_bDragsPlayerFromCar) { if (m_nPedState == PED_FALL) { maxArrestDist = 3.5f; } else if (m_nPedState != PED_DRAG_FROM_CAR) { - ((CCopPed*)this)->field_601 = 0; + ((CCopPed*)this)->m_bDragsPlayerFromCar = 0; } } @@ -21139,11 +21141,11 @@ CPed::KillCharOnFootArmed(CVector &ourPos, CVector &targetPos, CVector &distWith } if (m_nPedType == PEDTYPE_COP && m_pedInObjective->IsPlayer()) { float maxArrestDist = 1.5f; - if (((CCopPed*)this)->field_601) { + if (((CCopPed*)this)->m_bDragsPlayerFromCar) { if (m_nPedState == PED_FALL) { maxArrestDist = 3.5f; } else if (m_nPedState != PED_DRAG_FROM_CAR) { - ((CCopPed*)this)->field_601 = 0; + ((CCopPed*)this)->m_bDragsPlayerFromCar = 0; } } |