mirror of
https://github.com/halpz/re3.git
synced 2025-07-04 08:50:47 +00:00
peds starting to work
This commit is contained in:
@ -825,7 +825,7 @@ int32
|
||||
CCarCtrl::ChooseGangCarModel(int32 gang)
|
||||
{
|
||||
if (CStreaming::HasModelLoaded(MI_GANG01 + 2 * gang) &&
|
||||
CStreaming::HasModelLoaded(MI_GANG02 + 2 * gang))
|
||||
CStreaming::HasModelLoaded(MI_GANG01+1 + 2 * gang))
|
||||
return CGangs::GetGangVehicleModel(gang);
|
||||
return -1;
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ static int32 NextValidModelId(int32 mi, int32 step)
|
||||
int32 i = mi;
|
||||
while (result == -1) {
|
||||
i += step;
|
||||
if (i < 0 || i > 5500) {
|
||||
if (i < 0 || i > MODELINFOSIZE) {
|
||||
step = -step;
|
||||
continue;
|
||||
}
|
||||
@ -86,7 +86,7 @@ static int32 NextValidModelId(int32 mi, int32 step)
|
||||
continue;
|
||||
if (pInfo->GetModelType() == MITYPE_PED
|
||||
#ifdef FIX_BUGS
|
||||
&& !(i >= MI_SPECIAL01 && i <= MI_SPECIAL04)
|
||||
&& !(i >= MI_SPECIAL01 && i <= MI_SPECIAL21)
|
||||
#endif
|
||||
|| pInfo->GetModelType() == MITYPE_VEHICLE &&
|
||||
#ifdef FIX_BUGS
|
||||
|
@ -5903,8 +5903,8 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
|
||||
continue;
|
||||
if (pPed->bFadeOut)
|
||||
continue;
|
||||
if (pPed->GetModelIndex() == MI_SCUM_WOM || pPed->GetModelIndex() == MI_SCUM_MAN)
|
||||
continue;
|
||||
// if (pPed->GetModelIndex() == MI_SCUM_WOM || pPed->GetModelIndex() == MI_SCUM_MAN)
|
||||
// continue;
|
||||
if (!ThisIsAValidRandomPed(pPed->m_nPedType))
|
||||
continue;
|
||||
if (pPed->bIsLeader || pPed->m_leader)
|
||||
@ -5952,8 +5952,8 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
|
||||
continue;
|
||||
if (pPed->bFadeOut)
|
||||
continue;
|
||||
if (pPed->GetModelIndex() == MI_SCUM_WOM || pPed->GetModelIndex() == MI_SCUM_MAN)
|
||||
continue;
|
||||
// if (pPed->GetModelIndex() == MI_SCUM_WOM || pPed->GetModelIndex() == MI_SCUM_MAN)
|
||||
// continue;
|
||||
if (!ThisIsAValidRandomPed(pPed->m_nPedType))
|
||||
continue;
|
||||
if (pPed->bIsLeader || pPed->m_leader)
|
||||
|
Reference in New Issue
Block a user