mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 16:21:50 +01:00
Automobile: fix
This commit is contained in:
parent
cc2cebffb6
commit
8aaa3c4884
@ -239,10 +239,11 @@ CAutomobile::ProcessControl(void)
|
|||||||
// Improve grip of vehicles in certain cases
|
// Improve grip of vehicles in certain cases
|
||||||
bool strongGrip1 = false;
|
bool strongGrip1 = false;
|
||||||
bool strongGrip2 = 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_RAMPLAYER_FARAWAY || AutoPilot.m_nCarMission == MISSION_RAMPLAYER_CLOSE ||
|
||||||
AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_FARAWAY || AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_CLOSE)){
|
AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_FARAWAY || AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_CLOSE) &&
|
||||||
if(FindPlayerSpeed().Magnitude() > 0.3f){
|
FindPlayerSpeed().Magnitude() > 0.3f){
|
||||||
|
|
||||||
strongGrip1 = true;
|
strongGrip1 = true;
|
||||||
if(FindPlayerSpeed().Magnitude() > 0.4f &&
|
if(FindPlayerSpeed().Magnitude() > 0.4f &&
|
||||||
m_vecMoveSpeed.Magnitude() < 0.3f)
|
m_vecMoveSpeed.Magnitude() < 0.3f)
|
||||||
@ -250,7 +251,6 @@ CAutomobile::ProcessControl(void)
|
|||||||
else if((GetPosition() - FindPlayerCoors()).Magnitude() > 50.0f)
|
else if((GetPosition() - FindPlayerCoors()).Magnitude() > 50.0f)
|
||||||
strongGrip2 = true;
|
strongGrip2 = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(bIsBus)
|
if(bIsBus)
|
||||||
ProcessAutoBusDoors();
|
ProcessAutoBusDoors();
|
||||||
|
Loading…
Reference in New Issue
Block a user