summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-10 23:10:24 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-10 23:10:24 +0100
commitb5711b21dc6843b9146a9f1d12a99473a0873f35 (patch)
tree83f71558cc2cc8d3a43f234c64c4fe267cbce521 /src
parentMore font fix (diff)
downloadre3-b5711b21dc6843b9146a9f1d12a99473a0873f35.tar
re3-b5711b21dc6843b9146a9f1d12a99473a0873f35.tar.gz
re3-b5711b21dc6843b9146a9f1d12a99473a0873f35.tar.bz2
re3-b5711b21dc6843b9146a9f1d12a99473a0873f35.tar.lz
re3-b5711b21dc6843b9146a9f1d12a99473a0873f35.tar.xz
re3-b5711b21dc6843b9146a9f1d12a99473a0873f35.tar.zst
re3-b5711b21dc6843b9146a9f1d12a99473a0873f35.zip
Diffstat (limited to 'src')
-rw-r--r--src/vehicles/Automobile.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 16d29b26..3a0121ec 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -288,17 +288,17 @@ CAutomobile::ProcessControl(void)
// Improve grip of vehicles in certain cases
bool strongGrip1 = false;
bool strongGrip2 = false;
- if(FindPlayerVehicle() && this != FindPlayerVehicle() &&
+ if(FindPlayerVehicle() && this != FindPlayerVehicle() && FindPlayerPed()->m_pWanted->m_nWantedLevel > 3 &&
(AutoPilot.m_nCarMission == MISSION_RAMPLAYER_FARAWAY || AutoPilot.m_nCarMission == MISSION_RAMPLAYER_CLOSE ||
- AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_FARAWAY || AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_CLOSE)){
- if(FindPlayerSpeed().Magnitude() > 0.3f){
- strongGrip1 = true;
- if(FindPlayerSpeed().Magnitude() > 0.4f &&
- m_vecMoveSpeed.Magnitude() < 0.3f)
- strongGrip2 = true;
- else if((GetPosition() - FindPlayerCoors()).Magnitude() > 50.0f)
- strongGrip2 = true;
- }
+ AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_FARAWAY || AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_CLOSE) &&
+ FindPlayerSpeed().Magnitude() > 0.3f){
+
+ strongGrip1 = true;
+ if(FindPlayerSpeed().Magnitude() > 0.4f &&
+ m_vecMoveSpeed.Magnitude() < 0.3f)
+ strongGrip2 = true;
+ else if((GetPosition() - FindPlayerCoors()).Magnitude() > 50.0f)
+ strongGrip2 = true;
}else if(GetModelIndex() == MI_RCBANDIT && GetStatus() != STATUS_PLAYER_REMOTE)
strongGrip1 = true;