diff options
author | withmorten <morten.with@gmail.com> | 2021-01-22 00:20:51 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-22 00:20:51 +0100 |
commit | d1317f8fa649120f841f8c1f8bcf17b3ee74c235 (patch) | |
tree | 5adc99bd4296a54cc49354b291876603a72eed6e /src/peds/PedAI.cpp | |
parent | fuck (diff) | |
download | re3-d1317f8fa649120f841f8c1f8bcf17b3ee74c235.tar re3-d1317f8fa649120f841f8c1f8bcf17b3ee74c235.tar.gz re3-d1317f8fa649120f841f8c1f8bcf17b3ee74c235.tar.bz2 re3-d1317f8fa649120f841f8c1f8bcf17b3ee74c235.tar.lz re3-d1317f8fa649120f841f8c1f8bcf17b3ee74c235.tar.xz re3-d1317f8fa649120f841f8c1f8bcf17b3ee74c235.tar.zst re3-d1317f8fa649120f841f8c1f8bcf17b3ee74c235.zip |
Diffstat (limited to 'src/peds/PedAI.cpp')
-rw-r--r-- | src/peds/PedAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp index 68983dac..04e6f596 100644 --- a/src/peds/PedAI.cpp +++ b/src/peds/PedAI.cpp @@ -924,7 +924,7 @@ CPed::ProcessObjective(void) m_pMyVehicle->SetStatus(STATUS_PHYSICS); m_pMyVehicle->AutoPilot.m_nPrevRouteNode = 0; if (m_nPedType == PEDTYPE_COP) { - m_pMyVehicle->AutoPilot.m_nCruiseSpeed = (FindPlayerPed()->m_pWanted->m_nWantedLevel * 0.1f + 0.6f) * (GAME_SPEED_TO_CARAI_SPEED * m_pMyVehicle->pHandling->Transmission.fMaxCruiseVelocity); + m_pMyVehicle->AutoPilot.m_nCruiseSpeed = (FindPlayerPed()->m_pWanted->GetWantedLevel() * 0.1f + 0.6f) * (GAME_SPEED_TO_CARAI_SPEED * m_pMyVehicle->pHandling->Transmission.fMaxCruiseVelocity); m_pMyVehicle->AutoPilot.m_nCarMission = CCarAI::FindPoliceCarMissionForWantedLevel(); } else { m_pMyVehicle->AutoPilot.m_nCruiseSpeed = GAME_SPEED_TO_CARAI_SPEED * m_pMyVehicle->pHandling->Transmission.fMaxCruiseVelocity * 0.8f; |