Rich Dunne
|
f64438a39b
|
Added logic to update waypoint position during driving task if the waypoint position was changed before the driver arrived.
|
2020-10-23 06:26:37 -06:00 |
|
Rich Dunne
|
277a169cdf
|
Added null check for current waypoint when tasks assigned. Removed unstucking code.
|
2020-10-18 19:39:33 -06:00 |
|
Rich Dunne
|
be299e556f
|
Removed unnecessary unstucking code. Fixed vehicles stopping briefly at waypoint they were directed to
|
2020-10-17 07:12:58 -06:00 |
|
Rich Dunne
|
7ee307f8e6
|
Commented out unnecessary logging for release
|
2020-10-15 14:52:50 -06:00 |
|
Rich Dunne
|
772e618628
|
Fixed vehicles not being directed from paths/stop waypoints correctly
|
2020-10-11 15:00:08 -06:00 |
|
Rich Dunne
|
90b9b1dd64
|
Fixed a crash when trying to call DriveVehicleToNextWaypoint when the path has no waypoints. Removed dead code.
|
2020-10-10 20:10:53 -06:00 |
|
Rich Dunne
|
d36c7fb012
|
Refactored variable/object references to reflect changes in path creation/edit waypoint menus.
|
2020-10-10 15:52:48 -06:00 |
|
Rich Dunne
|
86206688b4
|
AssignWaypointTasks now takes a Path parameter instead of a collection of Waypoints
|
2020-10-10 07:30:14 -06:00 |
|
Rich Dunne
|
a47e736494
|
Refactored tasks for a directed driver into a local function. Removed dead code.
|
2020-10-08 06:15:31 -06:00 |
|
Rich Dunne
|
82c221355d
|
Directed vehicles should now drive to their waypoint in accordance with the waypoint's driving flag.
|
2020-10-08 05:55:53 -06:00 |
|
Rich Dunne
|
aa13b6de6b
|
Added null check at beginning of tasking loop
|
2020-10-07 05:01:21 -06:00 |
|
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 |
|