DEFINE VERSION SA 0.33

0002: jump Second_Segment
DEFINE MEMORY  45810   ; Equals Mission Builder type global variable range $2 to $27835.25

:Second_Segment
0002: jump Third_Segment
DEFINE OBJECTS  6
DEFINE OBJECT (UNBENUTZT)                 ; This is an unused object. You can put anything here.
DEFINE OBJECT INFO                        ; Object number -1
DEFINE OBJECT KEYCARD                     ; Object number -2
DEFINE OBJECT PICKUPSAVE                  ; Object number -3
DEFINE OBJECT BODYARMOUR                  ; Object number -4
DEFINE OBJECT BRIBE                       ; Object number -5

:Third_Segment
0002: jump Fourth_Segment
DEFINE MISSIONS  1
DEFINE MISSION 0 AT INITIAL_1   ; originally: Initial 1

:Fourth_Segment
0002: jump Fifth_Segment
DEFINE EXTERNAL_SCRIPTS  0

:Fifth_Segment
0002: jump Sixth_Segment
DEFINE UNKNOWN_FIFTH_SEGMENT
DEFINE UNKNOWN1  0

:Sixth_Segment
0002: jump MAIN_1
DEFINE UNKNOWN_SIXTH_SEGMENT
DEFINE UNKNOWN3  0

;-------------MAIN---------------


:MAIN_1
03A4: name_thread 'MAIN'
03E6: remove_text_box
016A: fade  0 ()  0 ms
042C: set_total_missions_to  0
030D: set_total_mission_points_to  0
01F0: set_max_wanted_level_to  6
0111: set_wasted_busted_check_to  0 (disabled)
00C0: set_current_time  10  0
04E4: unknown_refresh_game_renderer_at  2461.944 -1562.061
03CB: set_camera  2461.944 -1562.061  497.8972
00C0: set_current_time  0  0
0053: $PLAYER_CHAR = create_player #NULL at  2461.944 -1562.061  497.8972
07AF: $PLAYER_GROUP = player $PLAYER_CHAR group
01F5: $PLAYER_ACTOR = create_emulated_actor_from_player $PLAYER_CHAR
0173: set_actor $PLAYER_ACTOR z_angle_to  270.0
0373: set_camera_directly_behind_player
0629: change_stat  181 (islands unlocked) to  4  ; integer see statdisp.dat
0998: add_respect  1000 
062A: change_stat  165 (energy) to  800.0  ; float
062A: change_stat  23 (muscle) to  800.0  ; float
062A: change_stat  21 (fat) to  200.0  ; float
062A: change_stat  160 (driving skill) to  1000.0  ; float
062A: change_stat  223 (pilot skill) to  1000.0  ; float
062A: change_stat  229 (bike skill) to  1000.0  ; float
062A: change_stat  230 (cycling skill) to  1000.0  ; float
0629: change_stat  225 (lung capasity) to  1000  ; integer see statdisp.dat
0629: change_stat  22 (stamina) to  1000  ; integer see statdisp.dat
0629: change_stat  156 (dance skill) to  1000  ; integer see statdisp.dat
062A: change_stat  81 (gambling skill) to  1000.0  ; float
0629: change_stat  64 (respect) to  1000  ; integer see statdisp.dat
0629: change_stat  65 () to  1000  ; integer see statdisp.dat
062A: change_stat  69 (Weap skill: pistol) to  1000.0  ; float
062A: change_stat  70 (Weap skill: silence) to  1000.0  ; float
062A: change_stat  71 (Weap skill: desert ) to  1000.0  ; float
062A: change_stat  72 (Weap skill: shotgun) to  1000.0  ; float
062A: change_stat  73 (Weap skill: sawn of) to  1000.0  ; float
062A: change_stat  74 (Weap skill: combat ) to  1000.0  ; float
062A: change_stat  75 (Weap skill: machine) to  1000.0  ; float
062A: change_stat  76 (Weap skill: smg) to  1000.0  ; float
062A: change_stat  77 (Weap skill: ak-47) to  1000.0  ; float
062A: change_stat  78 (Weap skill: m4) to  1000.0  ; float
062A: change_stat  79 (Weap skill: rifle) to  1000.0  ; float
0629: change_stat  181 (islands unlocked) to  4  ; integer see statdisp.dat
0A1F:  24  500.0 
055E: set_player $PLAYER_CHAR max_health +=  150
055F: set_player $PLAYER_CHAR max_armour +=  150
0223: set_actor $PLAYER_ACTOR health_to  250
035F: set_actor $PLAYER_ACTOR armour_to  250
0330: set_player $PLAYER_CHAR infinite_run_to  1 (true)
07FE: set_actor $PLAYER_ACTOR fighting_style_to  6  6 
0572: set_taxi_boost_jump  1
087B: set_player $PLAYER_CHAR clothes "BBALLJACKRSTAR" "BBJACK" body_part  0 
087B: set_player $PLAYER_CHAR clothes "JEANSDENIM" "JEANS" body_part  2 
087B: set_player $PLAYER_CHAR clothes "SNEAKERBINCBLK" "SNEAKER" body_part  3 
087B: set_player $PLAYER_CHAR clothes "PLAYER_FACE" "HEAD" body_part  1 
070D: $PLAYER_CHAR 
0109: player $PLAYER_CHAR money +=  0
08DE:  0 
08DD:  0 
0180: set_on_mission_flag_to $ON_MISSION
0237: gang_weapons  1  30  32  24 
01B6: set_weather  1
04BB: select_interior  0  ;; select render area
01B4: set_player $PLAYER_CHAR frozen_state  1 (unfrozen)
01B7: release_weather
016C: restart_if_wasted at  2461.944 -1562.061  497.8972 angle  270.0 unknown  0 
016D: restart_if_busted at  2461.944 -1562.061  497.8972 angle  270.0 unknown  0 
0417: start_mission  0   ; Originally: Initial 1
004F: create_thread YOSHI_1 
004F: create_thread RACE_1
004F: create_thread MARIO_1 
004F: create_thread SNOW_1 
016A: fade  1 (back)  1000 ms
0001: wait  100 ms

:MAIN_76
0001: wait  2500 ms
0002: jump MAIN_76

:MARIO_1
03A4: name_thread 'MARIO'
01B4: set_player $PLAYER_CHAR frozen_state  0 (frozen)
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false MARIO_1
0002: jump MARIO_8

:MARIO_8
0247: request_model #FAM1

:MARIO_9
0001: wait  0 ms
00D6: if  0
0248:   model #FAM1 available
004D: jump_if_false MARIO_9
0002: jump MARIO_14

:MARIO_14
009A: $11449 = create_actor  4 #FAM1 at  2490.772 -1562.016  497.7072
0173: set_actor $11449 z_angle_to  82.0
016A: fade  0 ()  1500 ms
00BA: text_styled 'WELC'  1000 ms  2
0001: wait  1500 ms
02A3: toggle_widescreen  1 (on)
016A: fade  1 (back)  1500 ms
015F: set_camera_position  2479.603 -1555.913  497.7139  0.0  0.0  0.0
0159: camera_on_ped $11449  15  2
07A3: $11449 $PLAYER_ACTOR  5.0  10.0 
0001: wait  7000 ms
02EB: restore_camera_with_jumpcut
015F: set_camera_position  2466.855 -1552.457  497.7072  0.0  0.0  0.0
0160: point_camera  2461.944 -1562.061  497.8972  2
00BC: text_highpriority 'WELC_1'  3000 ms  1
0001: wait  3000 ms
00BC: text_highpriority 'WELC_2'  3000 ms  1
0001: wait  3000 ms
00BC: text_highpriority 'WELC_3'  3000 ms  1
0001: wait  3000 ms
00BC: text_highpriority 'WELC_4'  2000 ms  1
0001: wait  2000 ms
00BC: text_highpriority 'WELC_5'  7000 ms  1
0001: wait  7000 ms
016A: fade  0 ()  1500 ms
0001: wait  1500 ms
009B: destroy_actor_instantly $11449
01B4: set_player $PLAYER_CHAR frozen_state  1 (unfrozen)
0249: release_model #FAM1
02A3: toggle_widescreen  0 (off)
02EB: restore_camera_with_jumpcut
0373: set_camera_directly_behind_player
016A: fade  1 (back)  1500 ms
0001: wait  1500 ms
0002: jump MARIO_53

:MARIO_53
0001: wait  0 ms
00D6: if  0
0118:   actor $11449 dead
004D: jump_if_false MARIO_53
0050: gosub INITIAL_1

:SNOW_1
03A4: name_thread 'SNOW'
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_1
0002: jump SNOW_7

:SNOW_7
0247: request_model #URANUS
0001: wait  0 ms
00D6: if  0
0248:   model #URANUS available
004D: jump_if_false SNOW_7
0002: jump SNOW_13

:SNOW_13
00A5: $11451.25 = create_car #URANUS at  2483.716 -1576.258  497.7072
0175: set_car $11451.25 z_angle_to  25.0
0249: release_model #URANUS

:SNOW_16
0001: wait  0 ms
00D6: if  0
00DB:   actor $PLAYER_ACTOR in_car $11451.25
004D: jump_if_false SNOW_16
01B4: set_player $PLAYER_CHAR frozen_state  0 (frozen)
00BA: text_styled 'SNOW1'  2000 ms  2
0002: jump SNOW_23

:SNOW_23
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
00AB: put_car $11451.25 at  2510.92 -1906.635  491.0247
0175: set_car $11451.25 z_angle_to  270.0
00C0: set_current_time  13  0
016A: fade  1 (back)  1000 ms
00BC: text_highpriority 'SNOW2'  3000 ms  1
0001: wait  3000 ms
015F: set_camera_position  2522.926 -1905.257  491.0075  0.0  0.0  0.0
0160: point_camera  2510.92 -1906.635  491.0247  2
00BC: text_highpriority 'TIME1'  5000 ms  1
0001: wait  5000 ms
00BA: text_styled '3'  1000 ms  4
0001: wait  1000 ms
015F: set_camera_position  2511.891 -1901.458  491.4999  0.0  0.0  0.0
0160: point_camera  2510.92 -1906.635  491.0247  2
00BA: text_styled '2'  1000 ms  4
0001: wait  1000 ms
015F: set_camera_position  2507.354 -1910.908  491.6314  0.0  0.0  0.0
0160: point_camera  2510.92 -1906.635  491.0247  2
00BA: text_styled '1'  1000 ms  4
0001: wait  1000 ms
00BA: text_styled 'GO'  1000 ms  4
02EB: restore_camera_with_jumpcut
0373: set_camera_directly_behind_player
01B4: set_player $PLAYER_CHAR frozen_state  1 (unfrozen)
0004: $11450.25 =  35000  ;; integer values
014E: set_timer_to $11450.25 type  1
0002: jump SNOW_52

:SNOW_52
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_52
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2536.953 -1904.419  490.767 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_52

:SNOW_59
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_59
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2570.69 -1924.338  489.7581 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_59

:SNOW_66
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_66
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2575.648 -1978.414  489.7647 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_66

:SNOW_73
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_73
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2528.277 -1968.554  492.0577 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_73

:SNOW_80
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_80
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2471.358 -1978.172  489.4911 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_80

:SNOW_87
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_87
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2446.548 -2004.68  491.125 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_87

:SNOW_94
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_94
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2425.746 -1978.907  491.0226 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_94

:SNOW_101
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_101
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2446.856 -1941.269  490.9913 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_101

:SNOW_108
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false SNOW_108
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2514.519 -1906.095  491.0565 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false SNOW_108
0001: wait  0 ms
00D6: if  0
001A:    1 > $11450.25  ;; integer values
004D: jump_if_false SNOW_130
014F: stop_timer $5499
00BA: text_styled 'LOSE'  1000 ms  1
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at  2461.944 -1562.061  497.8972
0373: set_camera_directly_behind_player
0001: wait  1000 ms
016A: fade  1 (back)  1000 ms
00A6: destroy_car $11451.25
0002: jump SNOW_1
0050: gosub INITIAL_1

:SNOW_130
014F: stop_timer $11450.25
00BA: text_styled 'WIN'  1000 ms  1
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at  2461.944 -1562.061  497.8972
0373: set_camera_directly_behind_player
0001: wait  1000 ms
016A: fade  1 (back)  1000 ms
00A6: destroy_car $11451.25
0002: jump SNOW_1
0050: gosub INITIAL_1

:YOSHI_1
03A4: name_thread 'YOSHI'
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_1
0002: jump YOSHI_7

:YOSHI_7
0247: request_model #URANUS

:YOSHI_8
0001: wait  0 ms
00D6: if  0
0248:   model #URANUS available
004D: jump_if_false YOSHI_8
0002: jump YOSHI_13

:YOSHI_13
00A5: $795 = create_car #URANUS at  2492.688 -1565.587  495.7072
0175: set_car $795 z_angle_to  90.0
0249: release_model #URANUS

:YOSHI_16
0001: wait  0 ms
00D6: if  0
00DB:   actor $PLAYER_ACTOR in_car $795
004D: jump_if_false YOSHI_16
01B4: set_player $PLAYER_CHAR frozen_state  0 (frozen)
00BA: text_styled 'YOSHI1'  2000 ms  2
0002: jump YOSHI_23

:YOSHI_23
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
00AB: put_car $795 at  2505.411 -1753.344  491.063
00C0: set_current_time  0  0
016A: fade  1 (back)  1000 ms
015F: set_camera_position  2551.818 -1771.413  601.0859  0.0  0.0  0.0
0160: point_camera  2461.944 -1562.061  497.8972  2
00BC: text_highpriority 'YOSHI2'  3000 ms  1
0001: wait  3000 ms
015F: set_camera_position  2494.335 -1753.175  491.215  0.0  0.0  0.0
0160: point_camera  2505.411 -1753.344  491.063  2
00BC: text_highpriority 'TIME1'  5000 ms  1
0001: wait  5000 ms
00BA: text_styled '3'  1000 ms  4
0001: wait  1000 ms
015F: set_camera_position  2505.682 -1757.725  491.215  0.0  0.0  0.0
0160: point_camera  2505.411 -1753.344  491.063  2
00BA: text_styled '2'  1000 ms  4
0001: wait  1000 ms
015F: set_camera_position  2508.332 -1749.613  491.215  0.0  0.0  0.0
0160: point_camera  2505.411 -1753.344  491.063  2
00BA: text_styled '1'  1000 ms  4
0001: wait  1000 ms
00BA: text_styled 'GO'  1000 ms  4
02EB: restore_camera_with_jumpcut
0373: set_camera_directly_behind_player
01B4: set_player $PLAYER_CHAR frozen_state  1 (unfrozen)
0004: $5499 =  60000  ;; integer values
014E: set_timer_to $5499 type  1
0002: jump YOSHI_53

:YOSHI_53
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_53
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2476.733 -1753.128  491.215 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_53

:YOSHI_60
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_60
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2451.592 -1713.483  491.7217 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_60

:YOSHI_67
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_67
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2480.67 -1686.505  492.3993 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_67

:YOSHI_74
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_74
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2449.816 -1660.43  491.6472 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_74

:YOSHI_81
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_81
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2436.025 -1629.831  493.1685 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_81

:YOSHI_88
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_88
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2433.559 -1580.804  491.2939 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_88

:YOSHI_95
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_95
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2391.158 -1535.29  492.8289 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_95

:YOSHI_102
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_102
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2443.846 -1514.318  493.9577 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_102

:YOSHI_109
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_109
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2479.562 -1487.775  495.7465 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_109

:YOSHI_116
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_116
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2523.813 -1522.293  497.2915 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_116

:YOSHI_123
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_123
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2517.199 -1574.754  491.9788 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_123

:YOSHI_130
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_130
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2503.725 -1615.554  488.1767 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_130

:YOSHI_137
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_137
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2562.896 -1632.648  490.8268 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_137

:YOSHI_144
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_144
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2601.565 -1648.718  490.8286 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_144

:YOSHI_151
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_151
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2549.242 -1711.158  490.8304 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false YOSHI_151

:YOSHI_158
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false YOSHI_158
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2503.011 -1754.405  490.8266 radius  10.0  5.0  10.0 sphere  1
004D: jump_if_false YOSHI_158
0001: wait  0 ms
00D6: if  0
001A:    1 > $5499  ;; integer values
004D: jump_if_false YOSHI_180
014F: stop_timer $5499
00BA: text_styled 'LOSE'  1000 ms  1
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at  2461.944 -1562.061  497.8972
0373: set_camera_directly_behind_player
0001: wait  1000 ms
016A: fade  1 (back)  1000 ms
00A6: destroy_car $795
0002: jump YOSHI_1
0050: gosub INITIAL_1

:YOSHI_180
014F: stop_timer $5499
00BA: text_styled 'WIN'  1000 ms  1
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at  2461.944 -1562.061  497.8972
0373: set_camera_directly_behind_player
0001: wait  1000 ms
016A: fade  1 (back)  1000 ms
00A6: destroy_car $795
0002: jump YOSHI_1
0050: gosub INITIAL_1

:RACE_1
03A4: name_thread 'RACE'
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_1
0002: jump RACE_7

:RACE_7
0247: request_model #URANUS
0001: wait  0 ms
00D6: if  0
0248:   model #URANUS available
004D: jump_if_false RACE_7
0002: jump RACE_13

:RACE_13
00A5: $10949 = create_car #URANUS at  2487.251 -1551.271  497.7072
0175: set_car $10949 z_angle_to  140.0
0249: release_model #URANUS

:RACE_16
0001: wait  0 ms
00D6: if  0
00DB:   actor $PLAYER_ACTOR in_car $10949
004D: jump_if_false RACE_16
01B4: set_player $PLAYER_CHAR frozen_state  0 (frozen)
00BA: text_styled 'RACE_1'  2000 ms  2
0002: jump RACE_23

:RACE_23
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
00AB: put_car $10949 at  2603.87 -1492.309  497.6294
0175: set_car $10949 z_angle_to  223.0
00C0: set_current_time  0  0
016A: fade  1 (back)  1000 ms
015F: set_camera_position  2570.571 -1422.289  538.5052  0.0  0.0  0.0
0160: point_camera  2643.241 -1520.363  498.9195  2
00BC: text_highpriority 'RACE_2'  3000 ms  1
0001: wait  3000 ms
015F: set_camera_position  2611.022 -1499.925  497.6329  0.0  0.0  0.0
0160: point_camera  2603.87 -1492.309  497.6294  2
00BC: text_highpriority 'TIME1'  5000 ms  1
0001: wait  5000 ms
00BA: text_styled '3'  1000 ms  4
0001: wait  1000 ms
015F: set_camera_position  2607.762 -1489.604  497.2082  0.0  0.0  0.0
0160: point_camera  2603.87 -1492.309  497.6294  2
00BA: text_styled '2'  1000 ms  4
0001: wait  1000 ms
015F: set_camera_position  2599.227 -1493.321  497.7466  0.0  0.0  0.0
0160: point_camera  2603.87 -1492.309  497.6294  2
00BA: text_styled '1'  1000 ms  4
0001: wait  1000 ms
00BA: text_styled 'GO'  1000 ms  4
02EB: restore_camera_with_jumpcut
0373: set_camera_directly_behind_player
01B4: set_player $PLAYER_CHAR frozen_state  1 (unfrozen)
0004: $10948 =  25000  ;; integer values
014E: set_timer_to $10948 type  1
0002: jump RACE_54

:RACE_54
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_54
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2614.554 -1503.71  496.9419 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false RACE_54

:RACE_61
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_61
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2643.783 -1520.27  492.7253 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false RACE_61

:RACE_68
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_68
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2668.469 -1540.587  490.0232 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false RACE_68

:RACE_75
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_75
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2678.047 -1569.52  490.396 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false RACE_75

:RACE_82
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_82
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2681.337 -1540.099  490.601 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false RACE_82

:RACE_89
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_89
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2654.947 -1517.355  491.5236 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false RACE_89

:RACE_96
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_96
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2620.1 -1500.072  496.9419 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false RACE_96

:RACE_103
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false RACE_103
00D6: if  0
0100:   actor $PLAYER_ACTOR near_point_in_car  2603.87 -1492.309  497.6294 radius  8.0  8.0  10.0 sphere  1
004D: jump_if_false RACE_103

:RACE_110
0001: wait  0 ms
00D6: if  0
001A:    1 > $10947  ;; integer values
004D: jump_if_false RACE_110
00D6: if  0
001A:    1 > $10948  ;; integer values
004D: jump_if_false RACE_128
014F: stop_timer $10948
00BA: text_styled 'LOSE'  1000 ms  1
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at  2461.944 -1562.061  497.8972
0373: set_camera_directly_behind_player
0001: wait  1000 ms
016A: fade  1 (back)  1000 ms
00A6: destroy_car $10949
0002: jump RACE_1
0050: gosub INITIAL_1

:RACE_128
014F: stop_timer $10948
00BA: text_styled 'WIN'  1000 ms  1
016A: fade  0 ()  1000 ms
0001: wait  1000 ms
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at  2461.944 -1562.061  497.8972
0373: set_camera_directly_behind_player
0001: wait  1000 ms
016A: fade  1 (back)  1000 ms
00A6: destroy_car $10949
0002: jump RACE_1
0050: gosub INITIAL_1

;-------------Mission 0---------------
; Originally: Initial 1


:INITIAL_1
03A4: name_thread 'INITIAL'
004E: end_thread
