{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
thread 'nerospoiler' 

:SPOILER_13
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @SPOILER_13 

:SPOILER_33
wait 0 
if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #NERO) // <- change with your model!!!
else_jump @SPOILER_33 
03C0: 0@ = actor $PLAYER_ACTOR car 

:SPOILER_64
wait 0 
if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #NERO) // <- change with your model!!!
else_jump @SPOILER_553 
02E3: 1@ = car 0@ speed 
wait 0 
if 
  1@ > 19.5 
else_jump @SPOILER_64 
wait 0 
08A6: set_car 0@ componentA 4 rotation_to 0.05 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.1 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.15 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.2 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.25 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.3

//----

:SPOILER_200
wait 0 
02E3: 1@ = car 0@ speed 
wait 0 
if 
  18.5 > 1@ 
else_jump @SPOILER_200 
08A6: set_car 0@ componentA 4 rotation_to 0.25
wait 50
08A6: set_car 0@ componentA 4 rotation_to 0.2 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.15 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.1 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.05 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.0 
jump @SPOILER_64

:SPOILER_553
Car.RemoveReferences(0@)
jump @SPOILER_33 
0A93: end_custom_thread 
