mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[saco] Implement and match CPlayerPed::GetActionTrigger()
This commit is contained in:
1 parent
a7f29efcef
commit
526dff8889
3 files changed
+13
-1
No files matched your search
+5
-1
@@ -103,7 +103,11 @@ typedef struct _PED_TYPE
|
||||
|
||||
DWORD dwActiveVision; // 1280-1284
|
||||
|
||||
char _gap504[60];
|
||||
char _gap504[44];
|
||||
|
||||
DWORD dwAction; // 1328-1332
|
||||
|
||||
char _gap534[12];
|
||||
|
||||
float fHealth; // 1344-1348
|
||||
|
||||
|
||||
@@ -228,6 +228,13 @@ BOOL CPlayerPed::IsDead()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BYTE CPlayerPed::GetActionTrigger()
|
||||
{
|
||||
return (BYTE)m_pPed->dwAction;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||
|
||||
@@ -35,6 +35,7 @@ public:
|
||||
DWORD GetStateFlags();
|
||||
void SetStateFlags(DWORD dwStateFlags);
|
||||
BOOL IsDead();
|
||||
BYTE GetActionTrigger();
|
||||
|
||||
WORD GetAmmo();
|
||||
|
||||
|
||||
Reference in new issue
Block a user