[saco] Implement/match CPlayerPed::StopDancing()

This commit is contained in:
RD42 2024-10-31 19:20:07 +08:00
parent 5ef37e76c2
commit 0de166559e
2 changed files with 11 additions and 0 deletions

View File

@ -1190,6 +1190,16 @@ void CPlayerPed::StartDancing(int iStyle)
//----------------------------------------------------------- //-----------------------------------------------------------
void CPlayerPed::StopDancing()
{
m_iDanceState = 0;
MATRIX4X4 mat;
GetMatrix(&mat);
TeleportTo(mat.pos.X,mat.pos.Y,mat.pos.Z);
}
//-----------------------------------------------------------
void CPlayerPed::ProcessVehicleHorn() void CPlayerPed::ProcessVehicleHorn()
{ {
if(!m_pPed) return; if(!m_pPed) return;

View File

@ -102,6 +102,7 @@ public:
void ProcessVehicleHorn(); void ProcessVehicleHorn();
void StartDancing(int iStyle); void StartDancing(int iStyle);
void StopDancing();
void HandsUp(); void HandsUp();
BOOL HasHandsUp(); BOOL HasHandsUp();
void HoldItem(int iObject); void HoldItem(int iObject);