mirror of
https://github.com/halpz/re3.git
synced 2025-07-03 22:50:43 +00:00
CAutoPilot + CCarAI + fixes
This commit is contained in:
@ -98,7 +98,10 @@ CVehicle::CVehicle(uint8 CreatedBy)
|
||||
bHasAlreadyBeenRecorded = false;
|
||||
m_bSirenOrAlarm = 0;
|
||||
m_nCarHornTimer = 0;
|
||||
field_22D = 0;
|
||||
m_nCarHornPattern = 0;
|
||||
#ifdef MIAMI
|
||||
bParking = false;
|
||||
#endif
|
||||
m_nAlarmState = 0;
|
||||
m_nDoorLock = CARLOCK_UNLOCKED;
|
||||
m_nLastWeaponDamage = -1;
|
||||
@ -118,6 +121,9 @@ CVehicle::CVehicle(uint8 CreatedBy)
|
||||
AutoPilot.m_nTimeToStartMission = CTimer::GetTimeInMilliseconds();
|
||||
AutoPilot.m_bStayInCurrentLevel = false;
|
||||
AutoPilot.m_bIgnorePathfinding = false;
|
||||
#ifdef MIAMI
|
||||
AutoPilot.m_nSwitchDistance = 20;
|
||||
#endif
|
||||
}
|
||||
|
||||
CVehicle::~CVehicle()
|
||||
@ -1347,3 +1353,23 @@ CVehicle::Load(uint8*& buf)
|
||||
SkipSaveBuf(buf, 99);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MIAMI
|
||||
eVehicleAppearance
|
||||
//--MIAMI: TODO, implement VC version, appearance != type
|
||||
// This would work for cars, boats and bikes but not for planes and helis
|
||||
CVehicle::GetVehicleAppearance(void)
|
||||
{
|
||||
if (IsCar())
|
||||
return VEHICLE_CAR;
|
||||
if (IsBoat())
|
||||
return VEHICLE_BOAT;
|
||||
if (IsBike())
|
||||
return VEHICLE_BIKE;
|
||||
if (IsPlane())
|
||||
return VEHICLE_PLANE;
|
||||
if (IsHeli())
|
||||
return VEHICLE_HELI;
|
||||
return VEHICLE_NONE;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user