full script basic support

This commit is contained in:
Nikolay Korolev 2020-05-17 21:43:11 +03:00
parent 5c8888d2ed
commit a5b84eb9fe
18 changed files with 675 additions and 127 deletions

View file

@ -1436,3 +1436,13 @@ CPacManPickups::ResetPowerPillsCarriedByPlayer()
FindPlayerVehicle()->m_fForceMultiplier = 1.0f;
}
}
bool
CPickups::TestForPickupsInBubble(CVector pos, float radius)
{
for (int i = 0; i < NUMPICKUPS; i++) {
if ((pos - aPickUps[i].m_vecPos).Magnitude() < radius)
return true;
}
return false;
}