summaryrefslogtreecommitdiffstats
path: root/src/peds/PedPlacement.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-07-18 04:26:46 +0200
committereray orçunus <erayorcunus@gmail.com>2019-07-18 04:27:29 +0200
commit59671fab03703570eeb4837b713108619d762a01 (patch)
treee94e57a02e09540ba97e078486485d7558be0592 /src/peds/PedPlacement.cpp
parentMerge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff)
downloadre3-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.cpp7
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