[saco] Implement/match CActorPed::IsDead()

This commit is contained in:
RD42
2024-10-30 18:09:46 +08:00
parent 6a3f528e9f
commit 348a33e8d5
2 changed files with 10 additions and 0 deletions

View File

@ -177,3 +177,12 @@ void CActorPed::SetStateFlags(DWORD dwState)
//-----------------------------------------------------------
BOOL CActorPed::IsDead()
{
if(!m_pPed) return TRUE;
if(m_pPed->fHealth > 0.0f) return FALSE;
return TRUE;
}
//-----------------------------------------------------------

View File

@ -20,6 +20,7 @@ public:
void SetArmour(float fArmour);
DWORD GetStateFlags();
void SetStateFlags(DWORD dwStateFlags);
BOOL IsDead();
void ApplyAnimation(char *szAnimName, char *szAnimFile, float fT,
int opt1, int opt2, int opt3, int opt4, int iUnk);