mirror of
https://github.com/halpz/re3.git
synced 2025-06-30 15:56:20 +00:00
add the bad crack "features" behind SECUROM define
This commit is contained in:
@ -35,6 +35,7 @@
|
||||
#include "WaterLevel.h"
|
||||
#include "World.h"
|
||||
#include "Zones.h"
|
||||
#include "Pickups.h"
|
||||
|
||||
#define DISTANCE_TO_SPAWN_ROADBLOCK_PEDS (51.0f)
|
||||
#define DISTANCE_TO_SCAN_FOR_DANGER (14.0f)
|
||||
@ -3184,8 +3185,9 @@ void CCarCtrl::GenerateEmergencyServicesCar(void)
|
||||
CStreaming::RequestModel(MI_AMBULAN, STREAMFLAGS_DEPENDENCY);
|
||||
CStreaming::RequestModel(MI_MEDIC, STREAMFLAGS_DONT_REMOVE);
|
||||
if (CStreaming::HasModelLoaded(MI_AMBULAN) && CStreaming::HasModelLoaded(MI_MEDIC)){
|
||||
if (GenerateOneEmergencyServicesCar(MI_AMBULAN, pNearestAccident->m_pVictim->GetPosition()))
|
||||
if (GenerateOneEmergencyServicesCar(MI_AMBULAN, pNearestAccident->m_pVictim->GetPosition())){
|
||||
LastTimeAmbulanceCreated = CTimer::GetTimeInMilliseconds();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3203,8 +3205,15 @@ void CCarCtrl::GenerateEmergencyServicesCar(void)
|
||||
CStreaming::RequestModel(MI_FIRETRUCK, STREAMFLAGS_DEPENDENCY);
|
||||
CStreaming::RequestModel(MI_FIREMAN, STREAMFLAGS_DONT_REMOVE);
|
||||
if (CStreaming::HasModelLoaded(MI_FIRETRUCK) && CStreaming::HasModelLoaded(MI_FIREMAN)){
|
||||
if (GenerateOneEmergencyServicesCar(MI_FIRETRUCK, pNearestFire->m_vecPos))
|
||||
if (GenerateOneEmergencyServicesCar(MI_FIRETRUCK, pNearestFire->m_vecPos)){
|
||||
LastTimeFireTruckCreated = CTimer::GetTimeInMilliseconds();
|
||||
#ifdef SECUROM
|
||||
if ((myrand() & 7) == 5){
|
||||
// if pirated game
|
||||
CPickups::Init();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -177,6 +177,10 @@ void CGarages::Update(void)
|
||||
static uint32 GarageToBeTidied = 0;
|
||||
if (CReplay::IsPlayingBack())
|
||||
return;
|
||||
#ifdef SECUROM
|
||||
extern uint8 gameProcessPirateCheck;
|
||||
if (gameProcessPirateCheck == 2) return;
|
||||
#endif
|
||||
bCamShouldBeOutisde = false;
|
||||
TheCamera.pToGarageWeAreIn = nil;
|
||||
TheCamera.pToGarageWeAreInForHackAvoidFirstPerson = nil;
|
||||
|
@ -1820,6 +1820,12 @@ CPathFind::Load(uint8 *buf, uint32 size)
|
||||
m_pathNodes[i].bBetweenLevels = true;
|
||||
else
|
||||
m_pathNodes[i].bBetweenLevels = false;
|
||||
|
||||
#ifdef SECUROM
|
||||
// if pirated game
|
||||
for(i = 0; i < m_numPathNodes; i++)
|
||||
m_pathNodes[i].bDisabled = true;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -26,6 +26,10 @@ int16 CRoadBlocks::RoadBlockNodes[NUMROADBLOCKS];
|
||||
bool CRoadBlocks::InOrOut[NUMROADBLOCKS];
|
||||
CScriptRoadblock CRoadBlocks::aScriptRoadBlocks[NUM_SCRIPT_ROADBLOCKS];
|
||||
|
||||
#ifdef SECUROM
|
||||
uint8 roadBlocksPirateCheck = 0;
|
||||
#endif
|
||||
|
||||
void
|
||||
CRoadBlocks::Init(void)
|
||||
{
|
||||
@ -189,6 +193,13 @@ CRoadBlocks::RegisterScriptRoadBlock(CVector vInf, CVector vSup)
|
||||
void
|
||||
CRoadBlocks::CreateRoadBlockBetween2Points(CVector point1, CVector point2)
|
||||
{
|
||||
#ifdef SECUROM
|
||||
if (roadBlocksPirateCheck == 0)
|
||||
// if not pirated game
|
||||
// roadBlocksPirateCheck = 1;
|
||||
// else
|
||||
roadBlocksPirateCheck = 2;
|
||||
#endif
|
||||
CMatrix tmp;
|
||||
CVector forward = (point2 - point1);
|
||||
float distBetween = forward.Magnitude();
|
||||
|
@ -1872,6 +1872,12 @@ void CMissionCleanup::Process()
|
||||
m_sEntities[i].type = CLEANUP_UNUSED;
|
||||
m_nCount--;
|
||||
}
|
||||
#ifdef SECUROM
|
||||
if ((myrand() & 3) == 2){
|
||||
// if pirated game
|
||||
CWeather::ForceHurricaneWeather();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* NB: CUpsideDownCarCheck is not used by actual script at all
|
||||
|
Reference in New Issue
Block a user