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

This commit is contained in:
RD42 2024-11-02 23:04:47 +08:00
parent 25f2999e3f
commit 3bf84844a3
3 changed files with 14 additions and 0 deletions

View File

@ -181,6 +181,10 @@ typedef struct _PED_TYPE
BYTE byteCurWeaponSlot; // 1816-1817
char _gap719[20];
BYTE byteFightingStyle; // 1837-1838
} PED_TYPE;
//-----------------------------------------------------------

View File

@ -1317,6 +1317,14 @@ int CPlayerPed::IsCellphoneEnabled()
//-----------------------------------------------------------
int CPlayerPed::GetFightingStyle()
{
if (!m_pPed) return 0;
return m_pPed->byteFightingStyle;
}
//-----------------------------------------------------------
void CPlayerPed::ProcessVehicleHorn()
{
if(!m_pPed) return;

View File

@ -52,6 +52,8 @@ public:
WORD GetAmmo();
int GetFightingStyle();
float GetTargetRotation();
void SetTargetRotation(float fRotation);
void ForceTargetRotation(float fRotation);