Files
DarkflameServer/tests/dGameTests
Aaron Kimbrell b63f65ee5d feat(moving platform): mover turns with a stopped rotator, Departed, arrivals in one place
Three changes to the platform logic, each as the client's platform does it:

- Mover and rotator on one object: the object now turns at an angular
  velocity. A mover setting off (or going on between waypoints of
  different speeds) puts the object in the rotation for where it is and
  gives it the angular velocity that brings it to the next waypoint's
  rotation as it gets there. A rotator that has not stopped puts its own
  angular velocity back every frame, so the mover only turns the object
  while the rotator is stopped. Objects without a rotator still turn
  between the two waypoints' rotations as before.
- Departed: a new script hook, OnDeparted, called when a platform leaves
  a waypoint it waited at, before it sets off.
- Two waypoints in one place: a platform that has not stopped looks for
  its arrival every frame, also while it waits, and with no special case
  for a next waypoint in the same place. It is there at once, and on a
  path that keeps it at one waypoint it arrives every frame (without
  resending an unchanged state).

ScriptComponent::SetScript can now take a script itself (used by the
tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:49:46 -06:00
..