summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-10 23:10:24 +0100
committeraap <aap@papnet.eu>2021-01-10 23:52:37 +0100
commit8aaa3c4884d6ca3e3d46824fbcfa23bb974328d0 (patch)
tree862262518d6a156e751f16baba852e0646beebc2 /src/vehicles
parentupdate librw (diff)
downloadre3-8aaa3c4884d6ca3e3d46824fbcfa23bb974328d0.tar
re3-8aaa3c4884d6ca3e3d46824fbcfa23bb974328d0.tar.gz
re3-8aaa3c4884d6ca3e3d46824fbcfa23bb974328d0.tar.bz2
re3-8aaa3c4884d6ca3e3d46824fbcfa23bb974328d0.tar.lz
re3-8aaa3c4884d6ca3e3d46824fbcfa23bb974328d0.tar.xz
re3-8aaa3c4884d6ca3e3d46824fbcfa23bb974328d0.tar.zst
re3-8aaa3c4884d6ca3e3d46824fbcfa23bb974328d0.zip
Diffstat (limited to 'src/vehicles')
-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 8f034126..ed187849 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -239,17 +239,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;
}
if(bIsBus)