mirror of
https://github.com/halpz/re3.git
synced 2025-06-30 00:06:20 +00:00
script revision
This commit is contained in:
@ -18599,4 +18599,29 @@ CPed::AddInCarAnims(CVehicle* car, bool isDriver)
|
||||
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), group, anim, 100.0f);
|
||||
|
||||
StopNonPartialAnims();
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
IsPedPointerValid_NotInWorld(CPed* pPed)
|
||||
{
|
||||
if (!pPed)
|
||||
return false;
|
||||
int index = CPools::GetPedPool()->GetJustIndex(pPed);
|
||||
#ifdef FIX_BUGS
|
||||
if (index < 0 || index >= NUMPEDS)
|
||||
#else
|
||||
if (index < 0 || index > NUMPEDS)
|
||||
#endif
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
IsPedPointerValid(CPed* pPed)
|
||||
{
|
||||
if (!IsPedPointerValid_NotInWorld(pPed))
|
||||
return false;
|
||||
if (pPed->bInVehicle && pPed->m_pMyVehicle)
|
||||
return IsEntityPointerValid(pPed->m_pMyVehicle);
|
||||
return pPed->m_entryInfoList.first || pPed == FindPlayerPed();
|
||||
}
|
||||
|
@ -1018,3 +1018,6 @@ void FinishFuckUCB(CAnimBlendAssociation *assoc, void *arg);
|
||||
#ifndef PED_SKIN
|
||||
VALIDATE_SIZE(CPed, 0x53C);
|
||||
#endif
|
||||
|
||||
bool IsPedPointerValid(CPed*);
|
||||
bool IsPedPointerValid_NotInWorld(CPed*);
|
||||
|
Reference in New Issue
Block a user