# Drift mode and an outrun (runtime/drift.c), one instance (--page app) from a career save in stage 2 or later
# (--seed) with NFSU2_CAREER_RACEWIN=3: in free roam X on the page turns drift mode on (the drift-event switch, the
# drift camera); the game's outrun (race type 7, as career_outrun.txt starts one) turns the handling off and gives
# the player's view back, RACEWIN wins it after 3 s, and back in free roam drift mode comes back.  X off at the end.
#   node web/tools/roam-pair.mjs --solo --page app --seed <save tree> --env NFSU2_CAREER_RACEWIN=3
#        --a Drv:roam_drift_outrun.txt
0     bot on
+0    waitroam 6000
+0    bot off
+300  peekx 0x83aa74
+0    log KEY KeyX
+30   expect i:0x890104 == 1
+0    expect i:0x83aa74 == 4
+600  autopilot on
+600  outrun 0 6000
+0    autopilot off
+120  expect i:0x89e7b0 == 7                 # the outrun
+0    expect i:0x890104 == 0
+0    expect i:0x83aa74 != 4
+0    log SHOT outrun
+0    waitexpr i:0x89e7b0 == 0 1800           # won, back in free roam
+300  expect i:0x890104 == 1
+0    expect i:0x83aa74 == 4
+0    log SHOT back
+0    log KEY KeyX
+30   expect i:0x890104 == 0
+0    expect i:0x83aa74 != 4
+60   quit
