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

372 commits

Author SHA1 Message Date
Rich Dunne
331aad38f8 Added loop to check if the player enters a collected vehicle, and dismiss it as a result. 2020-10-10 20:11:20 -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
69cf4a8cd3 Adjusted driving style flags. Updated references to driving flag property 2020-10-10 20:09:47 -06:00
Rich Dunne
5ddcf3aead Added DismissOption.FromPlayer condition 2020-10-10 20:09:23 -06:00
Rich Dunne
5d1a17ed1f Added new DismissOption enum for when a player enters a collected vehicle. Added null checking when deleting nearby vehicle from world. 2020-10-10 20:08:59 -06:00
Rich Dunne
822725ae2d Updated references to waypoint driving flag 2020-10-10 20:08:16 -06:00
Rich Dunne
423dc57fcb Updated references to waypoint driving flag. Edit Waypoint menu no longer rebuilds when a waypoint is updated. 2020-10-10 20:07:54 -06:00
Rich Dunne
075856fbce Fixed waypoint blip color not being correct when adding as a new waypoint 2020-10-10 15:56:10 -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
526ff83f90 Replaced waypoint type scroller item with checkboxes. Rearranged order of some menu items. 2020-10-10 15:52:14 -06:00
Rich Dunne
b760192024 Drivers now block permanent events upon collection 2020-10-10 07:31:47 -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
a68de1d56a Fixed vehicles being dismissed prematurely when directed from one path to another. 2020-10-10 07:29:39 -06:00
Rich Dunne
b17135814c Removed irrelevant comment 2020-10-08 06:15:48 -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
a3b553cbff Remove SetVehicleAndDriverPersistence method now that it is handled by the CollectedVehicle class 2020-10-08 05:56:20 -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
dcbf52c6bd Added SetPersistence method to set vehicle and driver persistence when a vehicle is collected. 2020-10-08 05:55:15 -06:00
Rich Dunne
0ad0136c3a Vehicle and driver persistence is now set when a vehicle is collected, inside the CollectedVehicle class. 2020-10-08 05:45:42 -06:00
Rich Dunne
5a36a3582a Changed GetNearbyVehicles param value to max for getting nearby driver in directDriver option 2020-10-07 05:06:44 -06:00
Rich Dunne
aa13b6de6b Added null check at beginning of tasking loop 2020-10-07 05:01:21 -06:00
Rich Dunne
159f7d28a3 Refactored Dismiss function to use local functions for each type of dismissal 2020-10-07 05:01:00 -06:00
Rich Dunne
f0a5fb6d80 Fixed vehicle and driver persistence not being set after dismissal/before recollection 2020-10-07 05:00:29 -06:00
Rich Dunne
5686363cb6 Fixed speed zones being added on non-collector waypoints. Fixed speed zone being created at the player's position instead of the waypoint's position. Added function to remove waypoint blips and speed zone. 2020-10-05 06:12:57 -06:00
Rich Dunne
87e1b591f4 Moved waypoint removal code to the Waypoint class 2020-10-05 06:11:47 -06:00
Rich Dunne
4d305aea15 Directed vehicles are now dismissed properly from their paths and re-collected. 2020-10-05 05:49:11 -06:00
Rich Dunne
0da63a655a Adjusted distance value for collection and dismissal of vehicles 2020-10-05 05:22:52 -06:00
Rich Dunne
0a2ef225ef Added condition to increase path marker height when directing a driver 2020-10-04 15:31:06 -06:00
Rich Dunne
e2924db25f Changed vehicle collection radius from 1.5x collector radius to 2x. This should match the dismissal check radius 2020-10-04 15:30:04 -06:00
Rich Dunne
5d8256b53c Commented debug message for vehicle dismissal 2020-10-04 15:29:20 -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
5f0fb16160 Removed dead code 2020-10-04 14:49:06 -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
70b0adbf8e Commented out potentially useless code checking vehicle's distance to nearest collector upon dismissal. 2020-10-04 13:53:31 -06:00
Rich Dunne
334ec2358c Organized code into local functions within DeletePath. Deleted duplicate speed zone removal code. collectedVehicle is now dismissed when directed to another path in order to remove them from their current path. 2020-10-04 13:52:52 -06:00
Rich Dunne
3367e1a682 Restructured termination code 2020-10-04 13:48:08 -06:00
Rich Dunne
2523f8eb10 Reconfigured some conditionals in an attempt to fix nullref exceptions 2020-10-02 05:41:01 -06:00
Rich Dunne
14378211b6 CreateWaypointBlip is now a local function and not referenced elsewhere 2020-10-01 06:05:05 -06:00
Rich Dunne
6ce58a7d8e Added local function to create waypoint blip for Add As New Waypoint 2020-10-01 06:04:40 -06:00
Rich Dunne
06777aa928 Added null check in driver creation 2020-10-01 05:52:44 -06:00
Rich Dunne
4cb8c10569 Fixed waypoints being highlighted when they shouldn't be 2020-09-27 07:44:15 -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
13d22d218d Added PrefersSingleInstance attribute 2020-09-25 15:43:15 -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
35d7595f6a Added condition to display taller markers if edit path is hovered 2020-09-25 15:41:38 -06:00
Rich Dunne
e554039e03 Removed unnecessary code pertaining to dismiss from waypoint 2020-09-25 15:41:10 -06:00
Rich Dunne
a833ab63d4 Commented out vehicle dismissal debug message to stop log spam 2020-09-24 04:14:03 -06:00
Rich Dunne
eba20888e0 Renamed VehicleAndDriverNullChecks to VehicleAndDriverAreValid for better readability. 2020-09-24 04:13:35 -06:00
Rich Dunne
da1dd590f7 Added null check for vehicle in game fiber loop following unstucking a vehicle 2020-09-24 04:12:44 -06:00
Rich Dunne
6247294039 Added check in vehicle dismissal loop for valid vehicle. Added code to remove dismissed vehicles from collection. 2020-09-23 05:21:11 -06:00