mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-24 01:30:02 +00:00
commit
225ad5d78e
|
@ -1649,7 +1649,8 @@ void CCarCtrl::PickNextNodeToChaseCar(CVehicle* pVehicle, float targetX, float t
|
||||||
int16 numNodes;
|
int16 numNodes;
|
||||||
float distanceToTargetNode;
|
float distanceToTargetNode;
|
||||||
#ifndef REMOVE_TREADABLE_PATHFIND
|
#ifndef REMOVE_TREADABLE_PATHFIND
|
||||||
if (pTarget && pTarget->m_pCurGroundEntity->m_type == ENTITY_TYPE_BUILDING &&
|
if (pTarget && pTarget->m_pCurGroundEntity &&
|
||||||
|
pTarget->m_pCurGroundEntity->m_type == ENTITY_TYPE_BUILDING &&
|
||||||
((CBuilding*)pTarget->m_pCurGroundEntity)->GetIsATreadable() &&
|
((CBuilding*)pTarget->m_pCurGroundEntity)->GetIsATreadable() &&
|
||||||
((CTreadable*)pTarget->m_pCurGroundEntity)->m_nodeIndices[0][0] >= 0){
|
((CTreadable*)pTarget->m_pCurGroundEntity)->m_nodeIndices[0][0] >= 0){
|
||||||
CTreadable* pCurrentMapObject = (CTreadable*)pTarget->m_pCurGroundEntity;
|
CTreadable* pCurrentMapObject = (CTreadable*)pTarget->m_pCurGroundEntity;
|
||||||
|
|
|
@ -1988,7 +1988,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
|
||||||
car->m_status = STATUS_PHYSICS;
|
car->m_status = STATUS_PHYSICS;
|
||||||
car->bEngineOn = true;
|
car->bEngineOn = true;
|
||||||
car->AutoPilot.m_nCruiseSpeed = max(car->AutoPilot.m_nCruiseSpeed, 6);
|
car->AutoPilot.m_nCruiseSpeed = max(car->AutoPilot.m_nCruiseSpeed, 6);
|
||||||
car->AutoPilot.m_nTimeToStartMission = CTimer::GetTimeInMilliseconds();
|
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_CAR_WANDER_RANDOMLY:
|
case COMMAND_CAR_WANDER_RANDOMLY:
|
||||||
|
@ -2000,7 +2000,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
|
||||||
car->AutoPilot.m_nCarMission = MISSION_CRUISE;
|
car->AutoPilot.m_nCarMission = MISSION_CRUISE;
|
||||||
car->bEngineOn = true;
|
car->bEngineOn = true;
|
||||||
car->AutoPilot.m_nCruiseSpeed = max(car->AutoPilot.m_nCruiseSpeed, 6);
|
car->AutoPilot.m_nCruiseSpeed = max(car->AutoPilot.m_nCruiseSpeed, 6);
|
||||||
car->AutoPilot.m_nTimeToStartMission = CTimer::GetTimeInMilliseconds();
|
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_CAR_SET_IDLE:
|
case COMMAND_CAR_SET_IDLE:
|
||||||
|
@ -2100,7 +2100,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
|
||||||
CVehicle* car = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
|
CVehicle* car = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
|
||||||
assert(car);
|
assert(car);
|
||||||
car->AutoPilot.m_nCarMission = (eCarMission)ScriptParams[1];
|
car->AutoPilot.m_nCarMission = (eCarMission)ScriptParams[1];
|
||||||
car->AutoPilot.m_nTimeToStartMission = CTimer::GetTimeInMilliseconds();
|
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
|
||||||
car->bEngineOn = true;
|
car->bEngineOn = true;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue