mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 11:18:59 +00:00
fixes
This commit is contained in:
parent
be2291e44c
commit
af564d865c
2 changed files with 9 additions and 7 deletions
|
@ -984,13 +984,15 @@ void CCarCtrl::SlowCarDownForPedsSectorList(CPtrList& lst, CVehicle* pVehicle, f
|
||||||
if (pVehicle->GetModelIndex() == MI_RCBANDIT){
|
if (pVehicle->GetModelIndex() == MI_RCBANDIT){
|
||||||
if (dotVelocity * GAME_SPEED_TO_METERS_PER_SECOND / 2 > distanceUntilHit)
|
if (dotVelocity * GAME_SPEED_TO_METERS_PER_SECOND / 2 > distanceUntilHit)
|
||||||
pPed->SetEvasiveStep(pVehicle, 0);
|
pPed->SetEvasiveStep(pVehicle, 0);
|
||||||
}else if (dotVelocity > 0.3f){
|
}
|
||||||
if (sideLength - 0.5f < sidewaysDistance)
|
else if (dotVelocity > 0.3f) {
|
||||||
|
if (sideLength + 0.1f < sidewaysDistance)
|
||||||
pPed->SetEvasiveStep(pVehicle, 0);
|
pPed->SetEvasiveStep(pVehicle, 0);
|
||||||
else
|
else
|
||||||
pPed->SetEvasiveDive(pVehicle, 0);
|
pPed->SetEvasiveDive(pVehicle, 0);
|
||||||
}else{
|
}
|
||||||
if (sideLength + 0.1f < sidewaysDistance)
|
else if (dotVelocity > 0.1f) {
|
||||||
|
if (sideLength - 0.5f < sidewaysDistance)
|
||||||
pPed->SetEvasiveStep(pVehicle, 0);
|
pPed->SetEvasiveStep(pVehicle, 0);
|
||||||
else
|
else
|
||||||
pPed->SetEvasiveDive(pVehicle, 0);
|
pPed->SetEvasiveDive(pVehicle, 0);
|
||||||
|
@ -1019,7 +1021,7 @@ void CCarCtrl::SlowCarDownForPedsSectorList(CPtrList& lst, CVehicle* pVehicle, f
|
||||||
CPlayerPed* pPlayerPed = (CPlayerPed*)pPed;
|
CPlayerPed* pPlayerPed = (CPlayerPed*)pPed;
|
||||||
if (pPlayerPed->IsPlayer() && dotDirection < frontSafe &&
|
if (pPlayerPed->IsPlayer() && dotDirection < frontSafe &&
|
||||||
pPlayerPed->IsPedInControl() &&
|
pPlayerPed->IsPedInControl() &&
|
||||||
pPlayerPed->m_fMoveSpeed < 0.1f && pPlayerPed->bIsLooking &&
|
pPlayerPed->m_fMoveSpeed < 1.0f && !pPlayerPed->bIsLooking &&
|
||||||
CTimer::GetTimeInMilliseconds() > pPlayerPed->m_lookTimer) {
|
CTimer::GetTimeInMilliseconds() > pPlayerPed->m_lookTimer) {
|
||||||
pPlayerPed->AnnoyPlayerPed(false);
|
pPlayerPed->AnnoyPlayerPed(false);
|
||||||
pPlayerPed->SetLookFlag(pVehicle, true);
|
pPlayerPed->SetLookFlag(pVehicle, true);
|
||||||
|
|
|
@ -2153,7 +2153,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
|
||||||
car->AutoPilot.m_nCarMission = MISSION_GOTOCOORDS;
|
car->AutoPilot.m_nCarMission = MISSION_GOTOCOORDS;
|
||||||
car->SetStatus(STATUS_PHYSICS);
|
car->SetStatus(STATUS_PHYSICS);
|
||||||
car->bEngineOn = true;
|
car->bEngineOn = true;
|
||||||
car->AutoPilot.m_nCruiseSpeed = Max(car->AutoPilot.m_nCruiseSpeed, 6);
|
car->AutoPilot.m_nCruiseSpeed = Max(6, car->AutoPilot.m_nCruiseSpeed);
|
||||||
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
|
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -2165,7 +2165,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
|
||||||
CCarCtrl::JoinCarWithRoadSystem(car);
|
CCarCtrl::JoinCarWithRoadSystem(car);
|
||||||
car->AutoPilot.m_nCarMission = MISSION_CRUISE;
|
car->AutoPilot.m_nCarMission = MISSION_CRUISE;
|
||||||
car->bEngineOn = true;
|
car->bEngineOn = true;
|
||||||
car->AutoPilot.m_nCruiseSpeed = Max(car->AutoPilot.m_nCruiseSpeed, 6);
|
car->AutoPilot.m_nCruiseSpeed = Max(6, car->AutoPilot.m_nCruiseSpeed);
|
||||||
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
|
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue