diff --git a/saco/game/common.h b/saco/game/common.h index 08a8772..2fca1e0 100644 --- a/saco/game/common.h +++ b/saco/game/common.h @@ -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 diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index e485ccd..be19b7b 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -228,6 +228,13 @@ BOOL CPlayerPed::IsDead() return TRUE; } +//----------------------------------------------------------- + +BYTE CPlayerPed::GetActionTrigger() +{ + return (BYTE)m_pPed->dwAction; +} + //----------------------------------------------------------- void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo) diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 31be2bc..16ddbff 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -35,6 +35,7 @@ public: DWORD GetStateFlags(); void SetStateFlags(DWORD dwStateFlags); BOOL IsDead(); + BYTE GetActionTrigger(); WORD GetAmmo();