mirror of
https://github.com/halpz/re3.git
synced 2025-03-04 03:39:41 +00:00
merged correct switch
This commit is contained in:
parent
26e5a7eed1
commit
6bdfb0d386
|
@ -611,8 +611,18 @@ void CCarAI::TellOccupantsToFleeCar(CVehicle* pVehicle)
|
||||||
{
|
{
|
||||||
if (pVehicle->pDriver && !pVehicle->pDriver->IsPlayer()) {
|
if (pVehicle->pDriver && !pVehicle->pDriver->IsPlayer()) {
|
||||||
pVehicle->pDriver->SetObjective(OBJECTIVE_FLEE_ON_FOOT_TILL_SAFE);
|
pVehicle->pDriver->SetObjective(OBJECTIVE_FLEE_ON_FOOT_TILL_SAFE);
|
||||||
if (pVehicle->GetModelIndex() != MI_FIRETRUCK && pVehicle->GetModelIndex() == MI_AMBULAN)
|
switch (pVehicle->GetModelIndex()) {
|
||||||
|
case MI_FIRETRUCK:
|
||||||
|
case MI_FBIRANCH:
|
||||||
|
case MI_ENFORCER:
|
||||||
|
case MI_BARRACKS:
|
||||||
|
case MI_RHINO:
|
||||||
|
case MI_POLICE:
|
||||||
|
break;
|
||||||
|
case MI_AMBULAN:
|
||||||
pVehicle->pDriver->Say(SOUND_PED_LEAVE_VEHICLE);
|
pVehicle->pDriver->Say(SOUND_PED_LEAVE_VEHICLE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
int timer = 100;
|
int timer = 100;
|
||||||
for (int i = 0; i < pVehicle->m_nNumMaxPassengers; i++) {
|
for (int i = 0; i < pVehicle->m_nNumMaxPassengers; i++) {
|
||||||
|
|
Loading…
Reference in a new issue