[saco] Implement/match CPlayerPed::StartDancing(...)

This commit is contained in:
RD42 2024-10-31 19:19:32 +08:00
parent 27b31e604d
commit 5ef37e76c2
2 changed files with 24 additions and 5 deletions

View File

@ -35,8 +35,8 @@ CPlayerPed::CPlayerPed()
field_2AC = 1; field_2AC = 1;
m_dwArrow = 0; m_dwArrow = 0;
field_2B9 = 0; field_2B9 = 0;
field_2F2 = 0; m_iPissingState = 0;
field_2D2 = 0; m_iDanceState = 0;
field_2DE = 0; field_2DE = 0;
field_2E2 = 0; field_2E2 = 0;
field_48 = 0; field_48 = 0;
@ -1173,6 +1173,23 @@ VEHICLE_TYPE* CPlayerPed::GetGtaContactVehicle()
//----------------------------------------------------------- //-----------------------------------------------------------
char DanceStyleLibs[4][16] = {"WOP","GFUNK","RUNNINGMAN","STRIP"};
char DanceIdleLoops[4][16] = {"DANCE_LOOP","DANCE_LOOP","DANCE_LOOP","STR_Loop_B"};
void CPlayerPed::StartDancing(int iStyle)
{
if(iStyle < 0 || iStyle > 3) return;
m_iDanceState = 1;
m_iDanceStyle = iStyle;
if(m_bytePlayerNumber == 0) {
ApplyAnimation(DanceIdleLoops[m_iDanceStyle],DanceStyleLibs[m_iDanceStyle],16.0,1,0,0,0,-1);
}
}
//-----------------------------------------------------------
void CPlayerPed::ProcessVehicleHorn() void CPlayerPed::ProcessVehicleHorn()
{ {
if(!m_pPed) return; if(!m_pPed) return;

View File

@ -101,6 +101,7 @@ public:
void ProcessVehicleHorn(); void ProcessVehicleHorn();
void StartDancing(int iStyle);
void HandsUp(); void HandsUp();
BOOL HasHandsUp(); BOOL HasHandsUp();
void HoldItem(int iObject); void HoldItem(int iObject);
@ -135,9 +136,10 @@ public:
int field_2C5; int field_2C5;
int field_2C9; int field_2C9;
DWORD m_dwArrow; DWORD m_dwArrow;
char _gap2D1[1]; char _gap2D1;
int field_2D2; int m_iDanceState;
char _gap2D6[8]; int m_iDanceStyle;
char _gap2DA[4];
int field_2DE; int field_2DE;
int field_2E2; int field_2E2;
BOOL m_bGoggleState; BOOL m_bGoggleState;