mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-17 17:39:22 +00:00
CCarCtrl::GenerateOneRandomCar
This commit is contained in:
parent
f902136b6a
commit
7e753c2596
19 changed files with 275 additions and 41 deletions
|
@ -43,9 +43,13 @@ CPedPlacement::IsPositionClearOfCars(Const CVector *pos)
|
|||
}
|
||||
|
||||
bool
|
||||
CPedPlacement::IsPositionClearForPed(CVector* pos)
|
||||
CPedPlacement::IsPositionClearForPed(const CVector& pos, float radius, int total, CEntity** entities)
|
||||
{
|
||||
int16 count;
|
||||
CWorld::FindObjectsKindaColliding(*pos, 0.75f, true, &count, 2, nil, false, true, true, false, false);
|
||||
if (radius == -1.0f)
|
||||
radius = 0.75f;
|
||||
if (total == -1)
|
||||
total = 2;
|
||||
CWorld::FindObjectsKindaColliding(pos, radius, true, &count, total, entities, false, true, true, false, false);
|
||||
return count == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue