Updated script to version 2.7 which includes the following:
Added 'pause-ai-goal-track-waypoint'. This new SEXP pauses a custom `add-ai-goal-track-waypoint` goal, which is very useful if you want to pause a ship-track-waypoint or ship-track-ship order without removing it and then having to re-add it will all options again. The specified ship will stop moving along the waypoint path and remain still (though it will still hold it's goal). The sexp pauses any custom order for that ship, even if there are more than one. Additionally, this pause will only work if the ship retains a `add-ai-goal-track-waypoint` goal. If the ship orders are cleared or the custom `remove-ai-goal-track-waypoint` sexp is used then this sexp will do nothing. True will trigger a pause, stopping ship movement. False will remove the triggered pause and the ship will resume using the waypoint logic it was using before. Note, this sexp only has to be called once.
Slightly improved the 'smart-stop' collision detection in close-quarters situations. Previously, the 'smart-stop' option only used a ray-trace from a ship's center to see what collisions might occur, but now there is an additional option that also checks for radius overlap at close ranges. This helps fix the issue where two large ships might be moving to the same waypoint and thus would have previously collided, now they will detect they are in each others radii and the 'smart-stop' will be triggered early enough to ideally avoid collision.
Slightly optimized script for cases where 'smart-stop` was not being used.