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

This commit is contained in:
RD42 2024-05-05 22:14:11 +08:00
parent c5eb9a8421
commit a7f29efcef
2 changed files with 10 additions and 0 deletions

View File

@ -221,6 +221,15 @@ void CPlayerPed::SetStateFlags(DWORD dwState)
//-----------------------------------------------------------
BOOL CPlayerPed::IsDead()
{
if(!m_pPed) return TRUE;
if(m_pPed->fHealth > 0.0f) return FALSE;
return TRUE;
}
//-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
{
if(!m_pPed) return;

View File

@ -34,6 +34,7 @@ public:
void SetArmour(float fArmour);
DWORD GetStateFlags();
void SetStateFlags(DWORD dwStateFlags);
BOOL IsDead();
WORD GetAmmo();