1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 23:50:29 +01:00

Adding waypoint no longer resets the waypoint type, fixed a bug and crash with remove waypoint option. Functional version before major menu updates

This commit is contained in:
Rich Dunne 2020-06-15 17:28:46 -06:00
parent 071ac92ba0
commit 33b9dcb0d3
4 changed files with 9 additions and 7 deletions

View file

@ -35,7 +35,7 @@ namespace SceneManager
while (waypointData.ElementAtOrDefault(0) != null)
{
Game.DisplaySubtitle($"Vehicles in collection: {ControlledVehicles.Count()}");
//Game.DisplaySubtitle($"Vehicles in collection: {ControlledVehicles.Count()}");
// Getting vehicles within 3f of waypoint
try
{
@ -240,6 +240,7 @@ namespace SceneManager
return (from x in World.GetAllVehicles() where !x.IsTrailer && x.DistanceTo(OriginPosition) < radius select x).ToArray();
}
// Driving styles https://gtaforums.com/topic/822314-guide-driving-styles/
[Flags]
public enum EDrivingFlags
{
@ -253,6 +254,7 @@ namespace SceneManager
IgnoreRoads = 4194304,
AvoidHighways = 536870912,
Normal = StopForVehicles | StopForPeds | AvoidEmptyVehicles | StopForTrafficLights | UseBlinkers,
//TotalControl = AllowMedianCrossing | AllowWrongWay | DriveAroundObjects | DriveAroundPeds | DriveBySight | FollowTraffic | IgnorePathfinding
}
public static void SetDriveTaskDrivingFlags(this Ped ped, EDrivingFlags flags)