[saco] Implement/match CVehicle::GetHealth()

This commit is contained in:
RD42 2024-08-20 23:00:33 +08:00
parent f1febb6911
commit 91d7bff083
2 changed files with 10 additions and 0 deletions

View File

@ -92,3 +92,11 @@ void CVehicle::SetEngineState(BOOL bState)
//-----------------------------------------------------------
float CVehicle::GetHealth()
{
if(m_pVehicle) return m_pVehicle->fHealth;
else return 0.0f;
}
//-----------------------------------------------------------

View File

@ -22,6 +22,8 @@ public:
void SetLockedState(int iLocked);
float GetHealth();
BOOL HasADriver();
void SetEngineState(BOOL bState);