CCopPed, except spike traps

This commit is contained in:
eray orçunus
2020-07-27 16:04:05 +03:00
parent 5d266ace64
commit 429f6b03c4
8 changed files with 256 additions and 129 deletions

View File

@@ -4,7 +4,8 @@
#include "PedPlacement.h"
#include "World.h"
void
// --MIAMI: Done
bool
CPedPlacement::FindZCoorForPed(CVector* pos)
{
float zForPed;
@@ -32,8 +33,11 @@ CPedPlacement::FindZCoorForPed(CVector* pos)
zForPed = Max(foundColZ, foundColZ2);
if (zForPed > -99.0f)
if (zForPed > -99.0f) {
pos->z = FEET_OFFSET + zForPed;
return true;
}
return false;
}
CEntity*