From 5aa26948af22939d808deecb75bf91d2de81bf15 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 31 Oct 2024 19:20:37 +0800 Subject: [PATCH] [saco] Implement/match `CPlayerPed::IsDancing()` --- saco/game/playerped.cpp | 8 ++++++++ saco/game/playerped.h | 1 + 2 files changed, 9 insertions(+) diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index a082acd..dc7bf95 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -1200,6 +1200,14 @@ void CPlayerPed::StopDancing() //----------------------------------------------------------- +BOOL CPlayerPed::IsDancing() +{ + if(m_iDanceState) return TRUE; + return FALSE; +} + +//----------------------------------------------------------- + void CPlayerPed::ProcessVehicleHorn() { if(!m_pPed) return; diff --git a/saco/game/playerped.h b/saco/game/playerped.h index c9ffc54..0231639 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -103,6 +103,7 @@ public: void StartDancing(int iStyle); void StopDancing(); + BOOL IsDancing(); void HandsUp(); BOOL HasHandsUp(); void HoldItem(int iObject);