diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-18 04:26:46 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-18 04:27:29 +0200 |
commit | 59671fab03703570eeb4837b713108619d762a01 (patch) | |
tree | e94e57a02e09540ba97e078486485d7558be0592 /src/peds/PedPlacement.cpp | |
parent | Merge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff) | |
download | re3-59671fab03703570eeb4837b713108619d762a01.tar re3-59671fab03703570eeb4837b713108619d762a01.tar.gz re3-59671fab03703570eeb4837b713108619d762a01.tar.bz2 re3-59671fab03703570eeb4837b713108619d762a01.tar.lz re3-59671fab03703570eeb4837b713108619d762a01.tar.xz re3-59671fab03703570eeb4837b713108619d762a01.tar.zst re3-59671fab03703570eeb4837b713108619d762a01.zip |
Diffstat (limited to 'src/peds/PedPlacement.cpp')
-rw-r--r-- | src/peds/PedPlacement.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/peds/PedPlacement.cpp b/src/peds/PedPlacement.cpp index e9a3f7d9..f292f4fa 100644 --- a/src/peds/PedPlacement.cpp +++ b/src/peds/PedPlacement.cpp @@ -35,6 +35,13 @@ CPedPlacement::FindZCoorForPed(CVector* pos) pos->z = 1.04f + zForPed; } +CEntity* +CPedPlacement::IsPositionClearOfCars(CVector* pos) +{ + return CWorld::TestSphereAgainstWorld(*pos, 0.25f, false, true, true, false, false, false, false); +} + STARTPATCHES InjectHook(0x4EE340, &CPedPlacement::FindZCoorForPed, PATCH_JUMP); + InjectHook(0x4EE310, &CPedPlacement::IsPositionClearOfCars, PATCH_JUMP); ENDPATCHES |