diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-14 08:47:07 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-14 08:47:07 +0100 |
commit | f42a01f653c860b5df3cfdbe34cc37f25dc3c36a (patch) | |
tree | bc6a09f0a1ca0fafbf1e53b4c8e60b581281c0c4 /src/peds/Ped.h | |
parent | Merge branch 'master' of https://github.com/GTAmodding/re3 (diff) | |
download | re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.gz re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.bz2 re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.lz re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.xz re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.zst re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.zip |
Diffstat (limited to 'src/peds/Ped.h')
-rw-r--r-- | src/peds/Ped.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h index f8e619d7..0e398b25 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -863,6 +863,13 @@ public: SetMoveState(PEDMOVE_WALK); } + inline void SetWeaponLockOnTarget(CEntity *target) + { + m_pPointGunAt = (CPed *)target; + if(target) + ((CEntity *)target)->RegisterReference(&m_pPointGunAt); + } + // Using this to abstract nodes of skinned and non-skinned meshes CVector GetNodePosition(int32 node) { |