# Quick Race Drift (Stadium Drift 2, 3 laps, 3 AI drifters, Medium) for the
# x87 oracle: the intro camera and countdown, then ~17 s of racing from GO
# with a few player drifts while the AI cars drift too.  Used with
# NFSU2_ORACLE=cmp|exec (runtime/oracle.c).  The throttle goes
# down at GO (GRaceStatus [0x890118] state 4): held from 6 s into the intro
# camera instead, it never moved the car (0 mph for the whole run in
# drift-20, drift-80 and int2-rev-oracle).
0     tapuntil RETURN MC_Background.fng 120 4000
+200  tap RETURN
+0    tapuntil RETURN UI_QRModeSelect.fng 150 3000
+40   tap RIGHT
+40   tap RIGHT
+40   tap RIGHT
+60   dump mode_selected
+0    tapuntil RETURN UI_QRTrackSelect.fng 150 1500
+0    tapuntil RETURN UI_QRModeOptions.fng 150 1500
+0    tapuntil RETURN UI_QRCarSelect.fng 150 1500
+0    tapuntil RETURN PC_Loading.fng 150 1500
+0    waitmem 0x8654a4 6 6000
+0    wzero
+0    trace 30 st=i:[[$P+0x1d4]]+0x14 pend=[[$P+0x1d4]]+0x24 tot=[[$P+0x1d4]]+0x2c spd=[[$P+0x1d8]+8]+0x430 a0=[[$R0+0x1d4]]+0x2c a1=[[$R1+0x1d4]]+0x2c a2=[[$R2+0x1d4]]+0x2c a3=[[$R3+0x1d4]]+0x2c
+0    waitexpr i:[0x890118] == 4 6000            # GRaceStatus: 4 = racing (after the countdown)
+0    dump race_start
+0    down UP
+2000wms down LEFT
+300wms tap SPACE 10
+400wms up LEFT
+0    down RIGHT
+300wms up RIGHT
+1500wms down RIGHT
+300wms tap SPACE 10
+400wms up RIGHT
+0    down LEFT
+300wms up LEFT
+1500wms dump r1
+3000wms dump r2
+3000wms dump r3
+3000wms dump r4
+0    up UP
+0    quit
