mirror of
https://github.com/halpz/re3.git
synced 2025-07-04 02:40:49 +00:00
Merge remote-tracking branch 'upstream/miami' into miami
This commit is contained in:
@ -884,7 +884,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;
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ CAutomobile *CReplay::pBuf1;
|
||||
uint8 *CReplay::pBuf2;
|
||||
CPlayerPed *CReplay::pBuf3;
|
||||
uint8 *CReplay::pBuf4;
|
||||
CCutsceneHead *CReplay::pBuf5;
|
||||
CCutsceneObject *CReplay::pBuf5;
|
||||
uint8 *CReplay::pBuf6;
|
||||
CPtrNode *CReplay::pBuf7;
|
||||
uint8 *CReplay::pBuf8;
|
||||
|
@ -213,7 +213,7 @@ private:
|
||||
static uint8* pBuf2;
|
||||
static CPlayerPed* pBuf3;
|
||||
static uint8* pBuf4;
|
||||
static CCutsceneHead* pBuf5;
|
||||
static CCutsceneObject* pBuf5;
|
||||
static uint8* pBuf6;
|
||||
static CPtrNode* pBuf7;
|
||||
static uint8* pBuf8;
|
||||
|
@ -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)
|
||||
@ -6175,25 +6175,12 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
|
||||
}
|
||||
case COMMAND_CREATE_CUTSCENE_HEAD:
|
||||
{
|
||||
CollectParameters(&m_nIp, 2);
|
||||
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
||||
assert(pObject);
|
||||
CCutsceneHead* pCutHead = CCutsceneMgr::AddCutsceneHead(pObject, ScriptParams[1]);
|
||||
ScriptParams[0] = CPools::GetObjectPool()->GetIndex(pCutHead);
|
||||
StoreParameters(&m_nIp, 1);
|
||||
assert(0);
|
||||
return 0;
|
||||
}
|
||||
case COMMAND_SET_CUTSCENE_HEAD_ANIM:
|
||||
{
|
||||
CollectParameters(&m_nIp, 1);
|
||||
CObject* pCutHead = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
||||
assert(pCutHead);
|
||||
char name[KEY_LENGTH_IN_SCRIPT];
|
||||
strncpy(name, (const char*)&CTheScripts::ScriptSpace[m_nIp], KEY_LENGTH_IN_SCRIPT);
|
||||
m_nIp += KEY_LENGTH_IN_SCRIPT;
|
||||
CTimer::Stop();
|
||||
CCutsceneMgr::SetHeadAnim(name, pCutHead);
|
||||
CTimer::Update();
|
||||
assert(0);
|
||||
return 0;
|
||||
}
|
||||
case COMMAND_SIN:
|
||||
|
Reference in New Issue
Block a user