mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 04:14:08 +00:00
CAutoPilot + CCarAI + fixes
This commit is contained in:
parent
131e8af174
commit
ae0c83fa01
15 changed files with 402 additions and 31 deletions
|
@ -531,7 +531,7 @@ CCarCtrl::GenerateOneRandomCar()
|
|||
pVehicleModel->AvoidSameVehicleColour(&pCar->m_currentColour1, &pCar->m_currentColour2);
|
||||
CWorld::Add(pCar);
|
||||
if (carClass == COPS)
|
||||
CCarAI::AddPoliceOccupants(pCar);
|
||||
CCarAI::AddPoliceCarOccupants(pCar);
|
||||
else
|
||||
pCar->SetUpDriver();
|
||||
if ((CGeneral::GetRandomNumber() & 0x3F) == 0){ /* 1/64 probability */
|
||||
|
@ -2751,3 +2751,15 @@ bool CCarCtrl::MapCouldMoveInThisArea(float x, float y)
|
|||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef MIAMI
|
||||
float CCarCtrl::FindSpeedMultiplierWithSpeedFromNodes(int8 type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case 1: return 1.5f;
|
||||
case 2: return 2.0f;
|
||||
}
|
||||
return 1.0f;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue