diff options
author | erorcun <erayorcunus@gmail.com> | 2020-01-07 15:08:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 15:08:51 +0100 |
commit | 18de44e038c904e4de21f42a12afa188146587d1 (patch) | |
tree | 6efdd7adc1648fd63414227dcd9ac13d54ab31b5 /src/peds/PlayerPed.cpp | |
parent | Use CGeneral::faststricmp in CPed::ServiceTalking (diff) | |
parent | fixes (diff) | |
download | re3-18de44e038c904e4de21f42a12afa188146587d1.tar re3-18de44e038c904e4de21f42a12afa188146587d1.tar.gz re3-18de44e038c904e4de21f42a12afa188146587d1.tar.bz2 re3-18de44e038c904e4de21f42a12afa188146587d1.tar.lz re3-18de44e038c904e4de21f42a12afa188146587d1.tar.xz re3-18de44e038c904e4de21f42a12afa188146587d1.tar.zst re3-18de44e038c904e4de21f42a12afa188146587d1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PlayerPed.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp index 7c946dda..a4ffdc7c 100644 --- a/src/peds/PlayerPed.cpp +++ b/src/peds/PlayerPed.cpp @@ -7,6 +7,7 @@ #include "World.h" #include "RpAnimBlend.h" #include "General.h" +#include "Pools.h" CPlayerPed::~CPlayerPed() { @@ -73,6 +74,17 @@ CPlayerPed::SetWantedLevelNoDrop(int32 level) m_pWanted->SetWantedLevelNoDrop(level); } +void +CPlayerPed::MakeObjectTargettable(int32 handle) +{ + for (int i = 0; i < ARRAY_SIZE(m_nTargettableObjects); i++) { + if (CPools::GetObjectPool()->GetAt(m_nTargettableObjects[i]) == nil) { + m_nTargettableObjects[i] = handle; + return; + } + } +} + // I don't know the actual purpose of parameter void CPlayerPed::AnnoyPlayerPed(bool annoyedByPassingEntity) |