mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[saco] Implement/match CActorPed::IsDead()
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user