mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
The client works out on its own when its racer goes the wrong way and shows a 6 second countdown, but it only moves the car when the server sends RacingSetPlayerResetInfo, which DLU never did for this. The server now follows the reset planes the way the client's LWORacingControlComponent does (1.10.64): each path waypoint is a plane facing along its rotation; the racer starts between planes 0 and 1, moves forward when in front of the upcoming plane and back when behind the last one (CheckUpcomingResetPlane @ 0x00c7edf0, CheckLastResetPlane @ 0x00c7f1a0, CrossResetPlaneBackward @ 0x00cba380). Driving back through a second plane in a row starts the client's countdown (UpdateWrongWayCount @ 0x00be5c10, 6 seconds); going forward through a plane ends it. When it runs out, the racer gets the same reset as an unsmashed reset: reset info for their furthest point and RacingResetPlayerToLastReset. Resets sent for smashes keep the planes in step as well. Fixes issue 764. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>