1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00
Commit graph

24 commits

Author SHA1 Message Date
Rich Dunne
04758b3a45 Disabled assigning tasks in DriveToWaypoint loop. This fixed vehicles not being dismissed on plugin termination, but not sure if there is still a reason we needed to re-assign the tasks in a loop. 2020-10-04 14:49:59 -06:00
Rich Dunne
bf8985179d Renamed some functions, added more logging. Reset directed vehicle properties before tasking. 2020-10-04 13:57:44 -06:00
Rich Dunne
cf0aa75644 Fixed an issue where dismissing a vehicle from the last waypoint of a path was not working 2020-09-26 08:38:01 -06:00
Rich Dunne
59d85e72a8 Fixed vehicle being incorrectly dismissed from path when user dismissed them from waypoint 2020-09-25 15:43:01 -06:00
Rich Dunne
eba20888e0 Renamed VehicleAndDriverNullChecks to VehicleAndDriverAreValid for better readability. 2020-09-24 04:13:35 -06:00
Rich Dunne
c7ef4ab52d Added guard clauses to return/continue if collected vehicle is dismissed/skipping waypoint. Added check in LoopWhileDrivingToWaypoint to ensure vehicles are driving to the correct position if a waypoint position was updated. 2020-09-22 14:26:28 -06:00
Rich Dunne
5ad6e61973 Added more null ref checks. Refactored initial task assignment to take into account whether a vehicle was Directed 2020-09-20 12:58:32 -06:00
Rich Dunne
ca6a272276 Added WaitForCompletion to VehicleManeuver.GoForwardWithCustomSteeringAngle and cleared tasks afterwards to try and fix vehicles rarely getting stuck with this task. 2020-09-17 16:12:12 -06:00
Rich Dunne
f2909ef6a8 Removed unnecessary else statements, changed Z-height for waypoint currently being edited. Added condition for drawing edit waypoint to ensure it's only changing the waypoint markers for the selected path. 2020-09-15 13:50:02 -06:00
Rich Dunne
9cf578f380 Changed public methods to internal 2020-09-14 13:17:14 -06:00
Rich Dunne
730e85fe3c Changed Game.LogTrivial references to Logger.Log. Changed LoopWhileDrivingToWaypoint methods to local functions 2020-09-14 12:33:34 -06:00
Rich Dunne
e58dc71113 Adjusted distance check of vehicle to waypoint position relative to waypoint's collector radius 2020-09-13 04:50:35 -06:00
Rich Dunne
a24350a435 Removed DismissDriver method. Refactored waypoint tasking. Experimenting with new braking distance formula. 2020-09-13 03:01:45 -06:00
Rich Dunne
4b68e12606 Added null checking method. Updated references based on CollectedVehicle refactoring. Fixed performance issue with vehicle's at stop waypoint. 2020-09-07 20:28:24 -06:00
Rich Dunne
b7b9cf3f8f Added guard clause function for null checks 2020-09-07 08:51:19 -06:00
Rich Dunne
dfbf027b0f Added null check for collectedVehicle in DriveVehicleToNextWaypoint 2020-09-07 00:04:41 -06:00
Rich Dunne
a816967255 Added new Drive-To mode (Direct) which allows the AI to drive on the wrong side of the road to the next waypoint. 2020-09-06 22:09:02 -06:00
Rich Dunne
82590778d3 Added IsSirenSilent to try and fix emergency vehicles turning on their sirens upon dismissal 2020-09-06 09:22:19 -06:00
Rich Dunne
c40f2e13a5 Removed unused using statements 2020-09-04 04:35:49 -06:00
Rich Dunne
268bcc4ca6 Fixed AI driving around vehicles stopped at Stop waypoints. 2020-09-03 17:52:28 -06:00
Rich Dunne
18a49ed143 Tweaked AI driving flag values 2020-08-31 06:42:34 -06:00
Rich Dunne
98f7efe647 Added VehicleManeuver.GoForwardWithCustomSteeringAngle after each driving task to stop AI from braking at each waypoint. 2020-08-30 10:06:46 -06:00
Rich Dunne
c8874a5186 Added null checks for vehicles and drivers. Included valid vehicle check into GetNearbyVehicles method 2020-08-26 19:30:53 -06:00
Rich Dunne
689c5da8ec Refactored TrafficPathing class into VehicleCollector and AITasking classes 2020-08-25 17:10:33 -06:00