mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CPlayerPed::GetFightingStyle()
This commit is contained in:
parent
25f2999e3f
commit
3bf84844a3
@ -181,6 +181,10 @@ typedef struct _PED_TYPE
|
|||||||
|
|
||||||
BYTE byteCurWeaponSlot; // 1816-1817
|
BYTE byteCurWeaponSlot; // 1816-1817
|
||||||
|
|
||||||
|
char _gap719[20];
|
||||||
|
|
||||||
|
BYTE byteFightingStyle; // 1837-1838
|
||||||
|
|
||||||
} PED_TYPE;
|
} PED_TYPE;
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
@ -1317,6 +1317,14 @@ int CPlayerPed::IsCellphoneEnabled()
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
int CPlayerPed::GetFightingStyle()
|
||||||
|
{
|
||||||
|
if (!m_pPed) return 0;
|
||||||
|
return m_pPed->byteFightingStyle;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
void CPlayerPed::ProcessVehicleHorn()
|
void CPlayerPed::ProcessVehicleHorn()
|
||||||
{
|
{
|
||||||
if(!m_pPed) return;
|
if(!m_pPed) return;
|
||||||
|
@ -52,6 +52,8 @@ public:
|
|||||||
|
|
||||||
WORD GetAmmo();
|
WORD GetAmmo();
|
||||||
|
|
||||||
|
int GetFightingStyle();
|
||||||
|
|
||||||
float GetTargetRotation();
|
float GetTargetRotation();
|
||||||
void SetTargetRotation(float fRotation);
|
void SetTargetRotation(float fRotation);
|
||||||
void ForceTargetRotation(float fRotation);
|
void ForceTargetRotation(float fRotation);
|
||||||
|
Loading…
Reference in New Issue
Block a user