From 26f769103163e6c3c96be6e8bf1d905d21db3dd2 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 6 Oct 2019 14:25:13 +0300 Subject: car AI --- src/vehicles/Vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicles') diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index 8abba646..e33d848c 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -105,7 +105,7 @@ CVehicle::CVehicle(uint8 CreatedBy) AutoPilot.m_nTempAction = TEMPACT_NONE; AutoPilot.m_nTimeToStartMission = CTimer::GetTimeInMilliseconds(); AutoPilot.m_bStayInCurrentLevel = false; - AutoPilot.m_flag10 = false; + AutoPilot.m_bIgnorePathfinding = false; } CVehicle::~CVehicle() -- cgit v1.2.3 From 803412f33bd046ca228dd43788ba0048cc446066 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Fri, 11 Oct 2019 00:02:55 +0300 Subject: CCarAI + bugfixes --- src/vehicles/Vehicle.cpp | 6 +++--- src/vehicles/Vehicle.h | 9 +++------ 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'src/vehicles') diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index e33d848c..7229992d 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -68,15 +68,15 @@ CVehicle::CVehicle(uint8 CreatedBy) bTakeLessDamage = false; bIsDamaged = false; bFadeOut = false; - m_veh_flagC10 = false; + bIsBeingCarJacked = false; m_nTimeOfDeath = 0; m_pCarFire = nil; bHasBeenOwnedByPlayer = false; bCreateRoadBlockPeds = false; bCanBeDamaged = true; bUsingSpecialColModel = false; - m_veh_flagD1 = false; - m_veh_flagD2 = false; + bOccupantsHaveBeenGenerated = false; + bGunSwitchedOff = false; m_nGunFiringTime = 0; m_nTimeBlocked = 0; bLightsOn = false; diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h index 5eec0d23..db0485a9 100644 --- a/src/vehicles/Vehicle.h +++ b/src/vehicles/Vehicle.h @@ -158,19 +158,16 @@ public: uint8 bIsDamaged : 1; // This vehicle has been damaged and is displaying all its components uint8 bHasBeenOwnedByPlayer : 1;// To work out whether stealing it is a crime uint8 bFadeOut : 1; // Fade vehicle out - uint8 m_veh_flagC10 : 1; + uint8 bIsBeingCarJacked : 1; // Fade vehicle out uint8 bCreateRoadBlockPeds : 1; // If this vehicle gets close enough we will create peds (coppers or gang members) round it uint8 bCanBeDamaged : 1; // Set to FALSE during cut scenes to avoid explosions uint8 bUsingSpecialColModel : 1;// Is player vehicle using special collision model, stored in player strucure - uint8 m_veh_flagD1 : 1; - uint8 m_veh_flagD2 : 1; + uint8 bOccupantsHaveBeenGenerated : 1; // Is true if the occupants have already been generated. (Shouldn't happen again) + uint8 bGunSwitchedOff : 1; // Level designers can use this to switch off guns on boats uint8 bVehicleColProcessed : 1;// Has ProcessEntityCollision been processed for this car? uint8 bIsCarParkVehicle : 1; // Car has been created using the special CAR_PARK script command uint8 bHasAlreadyBeenRecorded : 1; // Used for replays - uint8 m_veh_flagD20 : 1; - uint8 m_veh_flagD40 : 1; - uint8 m_veh_flagD80 : 1; int8 m_numPedsUseItAsCover; uint8 m_nAmmoInClip; // Used to make the guns on boat do a reload (20 by default) -- cgit v1.2.3