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

This commit is contained in:
RD42 2024-10-30 18:22:13 +08:00
parent f6d232a45c
commit 007f7729f9
2 changed files with 13 additions and 0 deletions

View File

@ -202,3 +202,15 @@ void CActorPed::SetActionTrigger(BYTE byteTrigger)
//-----------------------------------------------------------
BOOL CActorPed::IsInVehicle()
{
if(!m_pPed) return FALSE;
if(IN_VEHICLE(m_pPed)) {
return TRUE;
}
return FALSE;
}
//-----------------------------------------------------------

View File

@ -23,6 +23,7 @@ public:
BOOL IsDead();
BYTE GetActionTrigger();
void SetActionTrigger(BYTE byteTrigger);
BOOL IsInVehicle();
void ApplyAnimation(char *szAnimName, char *szAnimFile, float fT,
int opt1, int opt2, int opt3, int opt4, int iUnk);