mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-28 03:54:15 +01:00
commit
87ea37248f
@ -606,13 +606,17 @@ CCarCtrl::ChooseModel(CZoneInfo* pZone, CVector* pPos, int* pClass) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < NUM_GANG_CAR_CLASSES; i++) {
|
int j;
|
||||||
|
for (j = 0; j < NUM_GANG_CAR_CLASSES; j++) {
|
||||||
if (rnd < pZone->gangThreshold[i]) {
|
if (rnd < pZone->gangThreshold[i]) {
|
||||||
*pClass = i + FIRST_GANG_CAR_RATING;
|
*pClass = j + FIRST_GANG_CAR_RATING;
|
||||||
model = ChooseGangCarModel(i);
|
model = ChooseGangCarModel(j);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (j != NUM_GANG_CAR_CLASSES)
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
*pClass = ChooseCarRating(pZone);
|
*pClass = ChooseCarRating(pZone);
|
||||||
model = ChooseCarModel(*pClass);
|
model = ChooseCarModel(*pClass);
|
||||||
|
@ -1342,10 +1342,11 @@ CStreaming::StreamZoneModels(const CVector &pos)
|
|||||||
for(i = 0; i < NUMMODELSPERPEDGROUP; i++){
|
for(i = 0; i < NUMMODELSPERPEDGROUP; i++){
|
||||||
if(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i] == -1)
|
if(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i] == -1)
|
||||||
break;
|
break;
|
||||||
RequestModel(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i], STREAMFLAGS_DONT_REMOVE);
|
RequestModel(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i], STREAMFLAGS_DEPENDENCY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RequestModel(MI_MALE01, STREAMFLAGS_DONT_REMOVE);
|
RequestModel(MI_MALE01, STREAMFLAGS_DONT_REMOVE);
|
||||||
|
//RequestModel(MI_HMOCA, STREAMFLAGS_DONT_REMOVE);
|
||||||
|
|
||||||
gangsToLoad = 0;
|
gangsToLoad = 0;
|
||||||
gangCarsToLoad = 0;
|
gangCarsToLoad = 0;
|
||||||
@ -1369,8 +1370,8 @@ CStreaming::StreamZoneModels(const CVector &pos)
|
|||||||
bit = 1<<i;
|
bit = 1<<i;
|
||||||
|
|
||||||
if(gangsToLoad & bit && (ms_loadedGangs & bit) == 0){
|
if(gangsToLoad & bit && (ms_loadedGangs & bit) == 0){
|
||||||
RequestModel(MI_GANG01 + i*2, STREAMFLAGS_DONT_REMOVE);
|
RequestModel(MI_GANG01 + i*2, STREAMFLAGS_DEPENDENCY);
|
||||||
RequestModel(MI_GANG01 + i*2 + 1, STREAMFLAGS_DONT_REMOVE);
|
RequestModel(MI_GANG01 + i*2 + 1, STREAMFLAGS_DEPENDENCY);
|
||||||
ms_loadedGangs |= bit;
|
ms_loadedGangs |= bit;
|
||||||
}else if((gangsToLoad & bit) == 0 && ms_loadedGangs & bit){
|
}else if((gangsToLoad & bit) == 0 && ms_loadedGangs & bit){
|
||||||
SetModelIsDeletable(MI_GANG01 + i*2);
|
SetModelIsDeletable(MI_GANG01 + i*2);
|
||||||
@ -1384,8 +1385,8 @@ CStreaming::StreamZoneModels(const CVector &pos)
|
|||||||
if(CGangs::GetGangInfo(i)->m_nVehicleMI < 0)
|
if(CGangs::GetGangInfo(i)->m_nVehicleMI < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(gangCarsToLoad & bit && (ms_loadedGangCars & bit) == 0){
|
if((gangCarsToLoad & bit) && (ms_loadedGangCars & bit) == 0){
|
||||||
RequestModel(CGangs::GetGangInfo(i)->m_nVehicleMI, STREAMFLAGS_DONT_REMOVE);
|
RequestModel(CGangs::GetGangInfo(i)->m_nVehicleMI, STREAMFLAGS_DEPENDENCY);
|
||||||
}else if((gangCarsToLoad & bit) == 0 && ms_loadedGangCars & bit){
|
}else if((gangCarsToLoad & bit) == 0 && ms_loadedGangCars & bit){
|
||||||
SetModelIsDeletable(CGangs::GetGangInfo(i)->m_nVehicleMI);
|
SetModelIsDeletable(CGangs::GetGangInfo(i)->m_nVehicleMI);
|
||||||
SetModelTxdIsDeletable(CGangs::GetGangInfo(i)->m_nVehicleMI);
|
SetModelTxdIsDeletable(CGangs::GetGangInfo(i)->m_nVehicleMI);
|
||||||
|
Loading…
Reference in New Issue
Block a user