[saco] Implement and match CPlayerPed::GetActionTrigger()

This commit is contained in:
RD42 committed 2024-05-05 22:16:15 +08:00
1 parent a7f29efcef
commit 526dff8889
3 files changed
+13 -1

No files matched your search

+5 -1
View File
@@ -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
+7
View File
@@ -228,6 +228,13 @@ BOOL CPlayerPed::IsDead()
return TRUE;
}
//-----------------------------------------------------------
BYTE CPlayerPed::GetActionTrigger()
{
return (BYTE)m_pPed->dwAction;
}
//-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
+1
View File
@@ -35,6 +35,7 @@ public:
DWORD GetStateFlags();
void SetStateFlags(DWORD dwStateFlags);
BOOL IsDead();
BYTE GetActionTrigger();
WORD GetAmmo();