From c8bd72c1a0374ddeeb0d9796773fec35912ca7bd Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 5 May 2024 18:34:54 +0800 Subject: [PATCH] [saco] Implement and match `CPlayerPed::GetCurrentAim()` --- saco/game/playerped.cpp | 7 +++++++ saco/game/playerped.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 94295e4..6b726a3 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -109,6 +109,13 @@ BYTE CPlayerPed::GetSpecialKey() } +//----------------------------------------------------------- + +CAMERA_AIM * CPlayerPed::GetCurrentAim() +{ + return GameGetInternalAim(); +} + void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo) { if(!m_pPed) return; diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 080392d..547ba92 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -21,6 +21,8 @@ public: BYTE GetSpecialKey(); + CAMERA_AIM * GetCurrentAim(); + WORD GetAmmo(); void GiveWeapon(int iWeaponID, int iAmmo);