{$CLEO .cs}

thread 'NOS'
0000: NOP 

:NOS_1
wait 0
if and
   Actor.DrivingVehicleType($PLAYER_ACTOR, #OPPRESS)
00E1:   player 0 pressed_key 19  // Sub-mission.
jf @NOS_1

03C0: 0@ = actor $PLAYER_ACTOR car
00AD: set_car 0@ max_speed_to 300.0
066C: 9@ = attach_particle "NITRO" to_car 0@ with_offset 0.0 -1.00 0.23 rotation 0.0 90.0 0.0 type 1 
064C: make_particle 9@ visible  
jump @NOS_4

//---------------------

:NOS_2
wait 0
if
00E1:   player 0 pressed_key 19 // Sub-mission.
jf @NOS_21
jump @NOS_4

:NOS_21
wait 0
if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #OPPRESS)
jf @NOS_99
jump @NOS_2

//---------------------

:NOS_3
wait 0
if
00E1:   player 0 pressed_key 19 // Sub-mission.
jf @NOS_9

:NOS_4
02e3: 1@ = car 0@ speed
1@ += 18.0
04BA: set_car 0@ speed_to 1@
wait 500

if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #OPPRESS)
jf @NOS_99
jump @NOS_3

//---------------------

:NOS_9
00AD: set_car 0@ max_speed_to 100.0
wait 1000
jump @NOS_2

:NOS_99
0650: destroy_particle 9@
00AD: set_car 0@ max_speed_to 100.0
jump @NOS_1

0A93: end_custom_thread