Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Luigi's Girls Source Code

By: Flitskikker on Aug 18th, 2013  |  syntax: PureBasic  |  size: 69.72 KB  |  views: 177  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. MISSION_START
  2. // *****************************************************************************************
  3. // *****************************************************************************************
  4. // *****************************************************************************************
  5. // **************************************8Ball Mission**************************************
  6. // **************************************Luigi's Girls**************************************
  7. // *****************************************************************************************
  8. // *****************************************************************************************
  9. // *****************************************************************************************
  10.  
  11. SCRIPT_NAME eight
  12.  
  13.  
  14. // Mission start stuff
  15.  
  16. GOSUB mission_start_eightball
  17.  
  18. IF HAS_DEATHARREST_BEEN_EXECUTED
  19.         GOSUB mission_eightball_failed
  20. ENDIF
  21.  
  22. GOSUB mission_cleanup_eightball
  23.  
  24. MISSION_END
  25.  
  26.  
  27. // Variables for mission
  28.  
  29.  
  30. VAR_INT radar_blip_car1_eightball
  31.  
  32. VAR_INT radar_blip_coord1_eightball
  33.  
  34. VAR_INT radar_blip_coord2_eightball
  35.  
  36. VAR_INT eightball      
  37.  
  38. VAR_INT car_eightball  //Any car the player might get into
  39.  
  40. VAR_INT van_8ball //Car that I create
  41.  
  42. VAR_INT flag_blip_on_eightball
  43.  
  44. VAR_INT flag_player_got_cops_message_eightball
  45.  
  46. VAR_INT flag_player_got_car_message1_eightball
  47.  
  48. VAR_INT radar_blip_ped1_eightball
  49.  
  50. VAR_INT flag_player_in_area
  51.  
  52. VAR_INT flag_eightball_in_area
  53.  
  54.  
  55. // Luigi variables for missions
  56.  
  57. VAR_INT radar_blip_coord1_lm1
  58.  
  59. VAR_INT radar_blip_ped1_lm1
  60.  
  61. VAR_INT radar_blip_ped2_lm1
  62.  
  63. VAR_INT girl1_lm1
  64.  
  65. VAR_INT car_lm1
  66.  
  67. VAR_INT flag_player_had_car_message_lm1
  68.  
  69. VAR_INT flag_player_not_in_car_message_lm1
  70.  
  71. VAR_INT no_of_passengers_car_lm1
  72.  
  73. VAR_INT flag_girl1_in_car_lm1
  74.  
  75. VAR_INT passenger_count_lm1
  76.  
  77. VAR_INT total_space_in_car_lm1
  78.  
  79. VAR_INT flag_blip_on_girl1_lm1
  80.  
  81. VAR_INT flag_coord_blip_on
  82.  
  83. VAR_INT flag_luigi_coord1_blip_created
  84.  
  85. VAR_INT flag_luigi_ped1_blip_created
  86.  
  87. VAR_INT flag_girl1_in_group_lm1
  88.  
  89. VAR_INT flag_player_had_vehicle_message_lm1
  90.  
  91. VAR_INT flag_player_in_area_lm1
  92.  
  93. VAR_INT flag_eightball_in_area_lm1
  94.  
  95. VAR_INT flag_help_8ball1
  96.  
  97. VAR_INT flag_help_8ball2
  98.  
  99. // car variables for restart
  100.  
  101. VAR_FLOAT car_8ball_x
  102.  
  103. VAR_FLOAT car_8ball_y
  104.  
  105. VAR_FLOAT car_8ball_z
  106.  
  107. VAR_FLOAT car_8ball_heading
  108.  
  109. VAR_INT flag_car_message_8ball
  110.  
  111. VAR_INT cop_car1_8ball
  112.  
  113. VAR_INT cop_car2_8ball
  114.  
  115. VAR_INT cop1_8ball
  116.  
  117. VAR_INT cop2_8ball
  118.  
  119. VAR_INT flag_brake_message  // Brake message
  120.  
  121. VAR_INT flag_hbrake_message  // Handbrake message
  122.  
  123. VAR_INT flag_look2_8ball  // Look right message
  124.  
  125. VAR_INT flag_look3_8ball // Look behind message
  126.  
  127. VAR_INT flag_misty_stop  // Misty message to tell player to stop and let her in the car
  128.  
  129. VAR_INT flag_player_had_camera_message_8ball // Tells player how to change camera modes
  130.  
  131. VAR_INT car_colour1_8ball
  132.  
  133. VAR_INT car_colour2_8ball
  134.  
  135. VAR_INT flag_girl_in_group_lm1
  136.  
  137. VAR_INT radar_blip_car1_lm1
  138.  
  139. VAR_INT flag_timer_stopped_flashing_8ball  // Stops the radar flashing
  140.  
  141. VAR_INT fire_sound_8ball
  142.  
  143. // ***************************************Mission Start*************************************
  144.  
  145. mission_start_eightball:
  146.  
  147. flag_player_on_mission = 1
  148.  
  149. flag_player_on_eightball_mission = 1
  150.  
  151. REGISTER_MISSION_GIVEN
  152.  
  153. FORCE_WEATHER_NOW WEATHER_CLOUDY
  154.  
  155. SET_TIME_OF_DAY 4 0
  156.  
  157. LOAD_SCENE 807.0 -937.0 36.6  // THIS MIGHT HAVE TO COME OUT!!!!!!!!!!!!!!!!!!!!!!!!!!!
  158.  
  159. WAIT 0
  160.  
  161. flag_blip_on_eightball = 0
  162.  
  163. flag_player_got_cops_message_eightball = 0
  164.  
  165. flag_player_got_car_message1_eightball = 0
  166.  
  167. flag_player_in_area = 0
  168.  
  169. flag_eightball_in_area = 0
  170.  
  171. // luigi variables
  172.  
  173. flag_player_had_car_message_lm1 = 0
  174.  
  175. flag_player_not_in_car_message_lm1 = 0
  176.  
  177. no_of_passengers_car_lm1 = 0
  178.  
  179. flag_girl1_in_car_lm1 = 0
  180.  
  181. passenger_count_lm1 = 0
  182.  
  183. total_space_in_car_lm1 = 0
  184.  
  185. flag_blip_on_girl1_lm1 = 0
  186.  
  187. flag_coord_blip_on = 0
  188.  
  189. blob_flag = 1
  190.  
  191. // luigi blip stuff
  192.  
  193. flag_luigi_coord1_blip_created = 0
  194. flag_luigi_ped1_blip_created = 0
  195. flag_girl1_in_group_lm1 = 0
  196. flag_player_had_vehicle_message_lm1 = 0
  197.  
  198. flag_player_in_area_lm1 = 0
  199.  
  200. flag_eightball_in_area_lm1 = 0
  201.  
  202. flag_help_8ball1 = 0
  203.  
  204. flag_help_8ball2 = 0
  205.  
  206. flag_car_message_8ball = 0
  207.  
  208. flag_brake_message = 0
  209.  
  210. flag_hbrake_message = 0
  211.  
  212. flag_look2_8ball = 0
  213.  
  214. flag_look3_8ball = 0
  215.  
  216. flag_misty_stop = 0
  217.  
  218. flag_player_had_camera_message_8ball = 0
  219.  
  220. flag_girl_in_group_lm1 = 0
  221.  
  222. flag_timer_stopped_flashing_8ball = 0
  223.  
  224. {      
  225. IF flag_reached_hideout = 0
  226.  
  227.         REQUEST_MODEL CAR_KURUMA
  228.  
  229.         LOAD_SPECIAL_CHARACTER 1 eight
  230.        
  231.         LOAD_ALL_MODELS_NOW
  232.  
  233.         car_8ball_x = 0.0
  234.  
  235.         car_8ball_y = 0.0
  236.  
  237.         car_8ball_z = 0.0
  238.  
  239.         car_8ball_heading = 0.0
  240.  
  241.         car_colour1_8ball = 0
  242.  
  243.         car_colour2_8ball = 0
  244.                                
  245. ELSE
  246.        
  247.         GOTO hideout_reached
  248.  
  249. ENDIF
  250.  
  251. IF flag_bridge_created_8ball = 0
  252.         CREATE_OBJECT_NO_OFFSET bridgefuka 715.746 -937.908 40.194 damagea
  253.         DONT_REMOVE_OBJECT damagea
  254.  
  255.         CREATE_OBJECT_NO_OFFSET bridgefukb 787.835 -939.24 38.971 damageb
  256.         DONT_REMOVE_OBJECT damageb
  257.         flag_bridge_created_8ball = 1
  258. ENDIF
  259.  
  260. SET_PLAYER_HEADING player 180.0
  261.  
  262. CREATE_CAR CAR_KURUMA 812.0131 -945.5528 35.7889 car_eightball  // new Aaron position
  263.  
  264. CHANGE_CAR_COLOUR car_eightball 58 1
  265.  
  266. SET_CAR_HEADING car_eightball 262.3871
  267.  
  268. CREATE_CHAR PEDTYPE_SPECIAL PED_SPECIAL1 811.90 -942.47 -100.0 eightball  // New Aaron position
  269.  
  270. SET_ANIM_GROUP_FOR_CHAR eightball ANIM_GANG2_PED
  271.  
  272. CLEAR_CHAR_THREAT_SEARCH eightball
  273.  
  274. TURN_CHAR_TO_FACE_COORD eightball 811.90 -939.95 35.8  // New Aaron position
  275.  
  276. CHAR_LOOK_AT_PLAYER_ALWAYS eightball player
  277.  
  278. OVERRIDE_NEXT_RESTART 811.90 -939.95 35.8 180.0 //Restarts at the bridge
  279.  
  280. SET_OBJECT_HEADING playersdoor 0.0
  281.  
  282. SWITCH_WIDESCREEN ON
  283.  
  284. SET_PLAYER_CONTROL player OFF
  285.  
  286. ADD_PARTICLE_EFFECT 4 791.661 -936.916 38.313 FALSE //SMOKE ON CARS
  287. ADD_PARTICLE_EFFECT 4 788.337 -938.467 38.073 FALSE
  288. ADD_PARTICLE_EFFECT 4 786.493 -942.398 39.8   FALSE
  289.  
  290. ADD_PARTICLE_EFFECT 10 783.572 -938.549 38.448 FALSE //FIRE ON CARS
  291. ADD_PARTICLE_EFFECT 10 790.537 -935.67  38.005 FALSE
  292. ADD_PARTICLE_EFFECT 10 789.295 -938.882 38.127 FALSE
  293.  
  294. REMOVE_SOUND fire_sound_8ball
  295.  
  296. ADD_CONTINUOUS_SOUND 790.537 -935.67  38.005 SOUND_PRETEND_FIRE_LOOP fire_sound_8ball
  297.  
  298. SET_POLICE_IGNORE_PLAYER player ON
  299.  
  300. SET_FIXED_CAMERA_POSITION 785.0 -936.77 39.75 0.0 0.0 0.0 // New position
  301.  
  302. POINT_CAMERA_AT_CHAR eightball fixed jump_cut
  303.  
  304. LOAD_MISSION_AUDIO LIB_A1
  305.  
  306. SET_FADING_COLOUR 0 0 0
  307.  
  308. DO_FADE 1000 FADE_IN
  309.  
  310. WHILE GET_FADING_STATUS
  311.         WAIT 0
  312. ENDWHILE
  313.        
  314. SET_FADING_COLOUR 0 0 0
  315.  
  316. WHILE NOT HAS_MISSION_AUDIO_LOADED
  317.  
  318.         WAIT 0
  319.  
  320.         IF IS_CHAR_DEAD eightball
  321.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  322.                 GOTO mission_eightball_failed
  323.         ENDIF
  324.  
  325.         IF IS_CAR_DEAD car_eightball
  326.  
  327.                 IF IS_CHAR_DEAD eightball
  328.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  329.                         GOTO mission_eightball_failed
  330.                 ELSE
  331.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  332.                         GOTO mission_eightball_failed
  333.                 ENDIF
  334.  
  335.         ELSE
  336.  
  337.                 IF IS_CAR_UPSIDEDOWN car_eightball
  338.                 AND IS_CAR_STOPPED car_eightball
  339.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  340.                         GOTO mission_eightball_failed
  341.                 ENDIF
  342.  
  343.         ENDIF
  344.  
  345. ENDWHILE
  346.  
  347. WAIT 2000
  348.  
  349. IF IS_CHAR_DEAD eightball
  350.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  351.         GOTO mission_eightball_failed
  352. ENDIF
  353.  
  354. IF IS_CAR_DEAD car_eightball
  355.  
  356.         IF IS_CHAR_DEAD eightball
  357.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  358.                 GOTO mission_eightball_failed
  359.         ELSE
  360.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  361.                 GOTO mission_eightball_failed
  362.         ENDIF
  363.  
  364. ELSE
  365.  
  366.         IF IS_CAR_UPSIDEDOWN car_eightball
  367.         AND IS_CAR_STOPPED car_eightball
  368.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  369.                 GOTO mission_eightball_failed
  370.         ENDIF
  371.  
  372. ENDIF
  373.  
  374. SET_FIXED_CAMERA_POSITION 804.5746 -933.048 39.9828 0.0 0.0 0.0
  375.  
  376. POINT_CAMERA_AT_POINT 805.1921 -933.7454 39.6193 JUMP_CUT
  377.  
  378. PRINT_BIG ( EBAL ) 15000 2 //"Give me Liberty"
  379.  
  380. PLAY_MISSION_AUDIO
  381.  
  382. PRINT_NOW ( EBAL_A ) 5000 1 //"I know a place on the edge of the Red Light District where we can lay low,
  383.  
  384. WHILE NOT HAS_MISSION_AUDIO_FINISHED
  385.  
  386.         WAIT 0
  387.  
  388.         IF IS_CHAR_DEAD eightball
  389.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  390.                 GOTO mission_eightball_failed
  391.         ENDIF
  392.  
  393.         IF IS_CAR_DEAD car_eightball
  394.  
  395.                 IF IS_CHAR_DEAD eightball
  396.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  397.                         GOTO mission_eightball_failed
  398.                 ELSE
  399.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  400.                         GOTO mission_eightball_failed
  401.                 ENDIF
  402.  
  403.         ELSE
  404.  
  405.                 IF IS_CAR_UPSIDEDOWN car_eightball
  406.                 AND IS_CAR_STOPPED car_eightball
  407.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  408.                         GOTO mission_eightball_failed
  409.                 ENDIF
  410.  
  411.         ENDIF
  412.  
  413. ENDWHILE
  414.  
  415. CLEAR_THIS_PRINT ( EBAL_A )
  416.  
  417. LOAD_MISSION_AUDIO LIB_A2
  418.  
  419. WHILE NOT HAS_MISSION_AUDIO_LOADED
  420.  
  421.         WAIT 0
  422.  
  423.         IF IS_CHAR_DEAD eightball
  424.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  425.                 GOTO mission_eightball_failed
  426.         ENDIF
  427.  
  428.         IF IS_CAR_DEAD car_eightball
  429.  
  430.                 IF IS_CHAR_DEAD eightball
  431.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  432.                         GOTO mission_eightball_failed
  433.                 ELSE
  434.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  435.                         GOTO mission_eightball_failed
  436.                 ENDIF
  437.  
  438.         ELSE
  439.  
  440.                 IF IS_CAR_UPSIDEDOWN car_eightball
  441.                 AND IS_CAR_STOPPED car_eightball
  442.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  443.                         GOTO mission_eightball_failed
  444.                 ENDIF
  445.  
  446.         ENDIF
  447.  
  448. ENDWHILE
  449.  
  450. PLAY_MISSION_AUDIO
  451.  
  452. PRINT_NOW ( EBAL_A1 ) 5000 1 //"but my hands are badly burned so you'll have to drive.""
  453.  
  454. IF HAS_MISSION_AUDIO_FINISHED
  455.         CLEAR_THIS_PRINT ( EBAL_A1 )
  456. ENDIF
  457.  
  458. IF IS_CHAR_DEAD eightball
  459.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  460.         GOTO mission_eightball_failed
  461. ENDIF
  462.  
  463. IF IS_CAR_DEAD car_eightball
  464.  
  465.         IF IS_CHAR_DEAD eightball
  466.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  467.                 GOTO mission_eightball_failed
  468.         ELSE
  469.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  470.                 GOTO mission_eightball_failed
  471.         ENDIF
  472.  
  473. ELSE
  474.  
  475.         IF IS_CAR_UPSIDEDOWN car_eightball
  476.         AND IS_CAR_STOPPED car_eightball
  477.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  478.                 GOTO mission_eightball_failed
  479.         ENDIF
  480.  
  481. ENDIF
  482.  
  483. STOP_CHAR_LOOKING eightball
  484.  
  485. SET_CHAR_OBJ_ENTER_CAR_AS_PASSENGER eightball car_eightball
  486.  
  487. WHILE NOT IS_CHAR_IN_CAR eightball car_eightball
  488.  
  489.         WAIT 0
  490.  
  491.         IF HAS_MISSION_AUDIO_FINISHED
  492.                 CLEAR_THIS_PRINT ( EBAL_A1 )
  493.         ENDIF
  494.  
  495.         IF IS_CHAR_DEAD eightball
  496.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  497.                 GOTO mission_eightball_failed
  498.         ENDIF
  499.  
  500.         IF IS_CAR_DEAD car_eightball
  501.  
  502.                 IF IS_CHAR_DEAD eightball
  503.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  504.                         GOTO mission_eightball_failed
  505.                 ELSE
  506.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  507.                         GOTO mission_eightball_failed
  508.                 ENDIF
  509.  
  510.         ELSE
  511.  
  512.                 IF IS_CAR_UPSIDEDOWN car_eightball
  513.                 AND IS_CAR_STOPPED car_eightball
  514.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  515.                         GOTO mission_eightball_failed
  516.                 ENDIF
  517.  
  518.         ENDIF
  519.        
  520. ENDWHILE
  521.  
  522. IF HAS_MISSION_AUDIO_FINISHED
  523.         CLEAR_THIS_PRINT ( EBAL_A1 )
  524. ENDIF
  525.  
  526. // This will tune the radio to HEAD RADIO
  527.  
  528. IF flag_done_radio_8ball = 0
  529.         SET_RADIO_CHANNEL HEAD_RADIO 0
  530.         flag_done_radio_8ball = 1
  531. ELSE
  532.    SET_RADIO_CHANNEL HEAD_RADIO -1
  533. ENDIF
  534.  
  535. SET_CHAR_CANT_BE_DRAGGED_OUT eightball TRUE
  536.  
  537. SWITCH_WIDESCREEN OFF
  538.  
  539. RESTORE_CAMERA
  540.  
  541. SET_PLAYER_CONTROL player ON
  542.  
  543. SET_POLICE_IGNORE_PLAYER player OFF
  544.  
  545. ADD_BLIP_FOR_CAR car_eightball radar_blip_car1_eightball
  546.  
  547. GOSUB car_gen_start_8ball  // This turns on all the car generators in the level
  548.  
  549. WAIT 500
  550.  
  551. IF HAS_MISSION_AUDIO_FINISHED
  552.         CLEAR_THIS_PRINT ( EBAL_A1 )
  553. ENDIF
  554.  
  555. IF IS_CHAR_DEAD eightball
  556.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  557.         GOTO mission_eightball_failed
  558. ENDIF
  559.  
  560. IF IS_CAR_DEAD car_eightball
  561.  
  562.         IF IS_CHAR_DEAD eightball
  563.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  564.                 GOTO mission_eightball_failed
  565.         ELSE
  566.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  567.                 GOTO mission_eightball_failed
  568.         ENDIF
  569.  
  570. ELSE
  571.  
  572.         IF IS_CAR_UPSIDEDOWN car_eightball
  573.         AND IS_CAR_STOPPED car_eightball
  574.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  575.                 GOTO mission_eightball_failed
  576.         ENDIF
  577.  
  578. ENDIF
  579.  
  580. // gives the player the help message for entering cars
  581.  
  582. GET_CONTROLLER_MODE controlmode
  583.  
  584. IF controlmode = 0
  585.         PRINT_HELP ( EBAL_1 ) //"Press Triangle to enter a vehicle."
  586. ENDIF
  587.  
  588. IF controlmode = 1
  589.         PRINT_HELP ( EBAL_1 ) //"Press Triangle to enter a vehicle."
  590. ENDIF
  591.  
  592. IF controlmode = 2
  593.         PRINT_HELP ( EBAL_1B ) //"Press Triangle to enter a vehicle."
  594. ENDIF
  595.  
  596. IF controlmode = 3
  597.         PRINT_HELP ( EBAL_1 ) //"Press Triangle to enter a vehicle."
  598. ENDIF
  599.  
  600. timerb = 0 // Timer for police wanted level stuff
  601.  
  602. WAIT 3000
  603.  
  604. IF IS_CHAR_DEAD eightball
  605.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  606.         GOTO mission_eightball_failed
  607. ENDIF
  608.  
  609. IF IS_CAR_DEAD car_eightball
  610.  
  611.         IF IS_CHAR_DEAD eightball
  612.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  613.                 GOTO mission_eightball_failed
  614.         ELSE
  615.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  616.                 GOTO mission_eightball_failed
  617.         ENDIF
  618.  
  619. ELSE
  620.  
  621.         IF IS_CAR_UPSIDEDOWN car_eightball
  622.         AND IS_CAR_STOPPED car_eightball
  623.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  624.                 GOTO mission_eightball_failed
  625.         ENDIF
  626.  
  627. ENDIF
  628.                
  629. // Waiting for the player to get into the car
  630.  
  631. WHILE NOT IS_PLAYER_IN_CAR player car_eightball
  632. OR NOT IS_CHAR_IN_CAR eightball car_eightball
  633.  
  634.         WAIT 0
  635.  
  636.         IF timerb < 120000  // 2 mins
  637.                 CLEAR_WANTED_LEVEL player
  638.         ENDIF
  639.  
  640.         IF IS_CAR_DEAD car_eightball
  641.  
  642.                 IF IS_CHAR_DEAD eightball
  643.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  644.                         GOTO mission_eightball_failed
  645.                 ELSE
  646.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  647.                         GOTO mission_eightball_failed
  648.                 ENDIF
  649.  
  650.         ELSE
  651.  
  652.                 IF IS_CAR_UPSIDEDOWN car_eightball
  653.                 AND IS_CAR_STOPPED car_eightball
  654.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  655.                         GOTO mission_eightball_failed
  656.                 ENDIF
  657.  
  658.         ENDIF
  659.  
  660.         IF IS_CHAR_DEAD eightball
  661.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  662.             GOTO mission_eightball_failed
  663.         ENDIF
  664.                                                                
  665. ENDWHILE
  666.  
  667. // creates two cops cars that drive onto the bridge
  668.  
  669. CREATE_CAR car_police 1083.2 -945.0 13.8 cop_car1_8ball
  670.  
  671. CREATE_CHAR_INSIDE_CAR cop_car1_8ball PEDTYPE_CIVMALE PED_COP cop1_8ball
  672.  
  673. CLEAR_CHAR_THREAT_SEARCH cop1_8ball
  674.  
  675. SET_CAR_HEADING cop_car1_8ball 90.0
  676.  
  677. SWITCH_CAR_SIREN cop_car1_8ball ON
  678.  
  679. SET_CAR_DRIVING_STYLE cop_car1_8ball 2
  680.  
  681. SET_CAR_CRUISE_SPEED  cop_car1_8ball 20.0
  682.  
  683. CAR_GOTO_COORDINATES cop_car1_8ball 713.9 -916.7 42.0
  684.  
  685. CREATE_CAR car_police 1074.1 -946.7 13.8 cop_car2_8ball
  686.  
  687. CREATE_CHAR_INSIDE_CAR cop_car2_8ball PEDTYPE_CIVMALE PED_COP cop2_8ball
  688.  
  689. CLEAR_CHAR_THREAT_SEARCH cop2_8ball
  690.  
  691. SET_CAR_HEADING cop_car2_8ball 90.0
  692.  
  693. SWITCH_CAR_SIREN cop_car2_8ball ON
  694.  
  695. SET_CAR_DRIVING_STYLE cop_car2_8ball 2
  696.  
  697. SET_CAR_CRUISE_SPEED cop_car2_8ball 20.0
  698.  
  699. CAR_GOTO_COORDINATES cop_car2_8ball 718.7 -922.2 42.0
  700.  
  701. REMOVE_BLIP radar_blip_car1_eightball
  702.  
  703. // Accelertation help messages
  704.  
  705. WAIT 500
  706.  
  707. IF timerb < 120000  // 2 mins
  708.         CLEAR_WANTED_LEVEL player
  709. ENDIF
  710.  
  711. IF IS_CAR_DEAD car_eightball
  712.  
  713.         IF IS_CHAR_DEAD eightball
  714.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  715.                 GOTO mission_eightball_failed
  716.         ELSE
  717.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  718.                 GOTO mission_eightball_failed
  719.         ENDIF
  720.  
  721. ELSE
  722.  
  723.         IF IS_CAR_UPSIDEDOWN car_eightball
  724.         AND IS_CAR_STOPPED car_eightball
  725.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  726.                 GOTO mission_eightball_failed
  727.         ENDIF
  728.  
  729. ENDIF
  730.  
  731. IF IS_CHAR_DEAD eightball
  732.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  733.         GOTO mission_eightball_failed
  734. ENDIF
  735.  
  736. GET_CONTROLLER_MODE controlmode
  737.  
  738. IF controlmode = 0
  739.         PRINT_HELP ( HELP4_A ) //"Press the / button to accelerate."
  740. ENDIF
  741.  
  742. IF controlmode = 1
  743.         PRINT_HELP ( HELP4_A ) //"Press the / button to accelerate."
  744. ENDIF
  745.  
  746. IF controlmode = 2
  747.         PRINT_HELP ( HELP4_A ) //"Press the / button to accelerate."
  748. ENDIF
  749.  
  750. IF controlmode = 3
  751.         PRINT_HELP ( HELP4_D ) //"Press the / button to accelerate."
  752. ENDIF
  753.  
  754. ADD_BLIP_FOR_COORD 875.0 -309.0 -100.0 radar_blip_coord1_eightball
  755.  
  756. timera = 0
  757.  
  758. blob_flag = 1
  759.  
  760. IF timerb < 120000  // 2 mins
  761.         CLEAR_WANTED_LEVEL player
  762. ENDIF
  763.  
  764. LOAD_MISSION_AUDIO LIB_A
  765.  
  766.  
  767. timera = 0
  768.  
  769. WHILE timera < 10000
  770.  
  771.         WAIT 0
  772.  
  773.         IF IS_CHAR_DEAD eightball
  774.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  775.             GOTO mission_eightball_failed
  776.         ENDIF
  777.                                
  778.         IF IS_CAR_DEAD car_eightball
  779.  
  780.                 IF IS_CHAR_DEAD eightball
  781.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  782.                         GOTO mission_eightball_failed
  783.                 ELSE
  784.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  785.                         GOTO mission_eightball_failed
  786.                 ENDIF
  787.  
  788.         ELSE
  789.  
  790.                 IF IS_CAR_UPSIDEDOWN car_eightball
  791.                 AND IS_CAR_STOPPED car_eightball
  792.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  793.                         GOTO mission_eightball_failed
  794.                 ENDIF
  795.  
  796.                 IF NOT IS_PLAYER_IN_CAR player car_eightball
  797.  
  798.                         blob_flag = 0
  799.                        
  800.                         IF flag_car_message_8ball = 0
  801.                                 PRINT_NOW ( IN_VEH ) 5000 1 //"Get back into the car and get on with the mission!"
  802.                                 REMOVE_BLIP radar_blip_coord1_eightball
  803.                                 ADD_BLIP_FOR_CAR car_eightball radar_blip_car1_eightball
  804.                                 flag_car_message_8ball = 1
  805.                         ENDIF
  806.                        
  807.                 ELSE
  808.  
  809.                         blob_flag = 1
  810.                
  811.                         IF flag_car_message_8ball = 1
  812.                                 REMOVE_BLIP radar_blip_car1_eightball
  813.                                 ADD_BLIP_FOR_COORD 875.0 -309.0 -100.0 radar_blip_coord1_eightball
  814.                                 flag_car_message_8ball = 0
  815.                         ENDIF
  816.                        
  817.                 ENDIF
  818.                
  819.         ENDIF  
  820.        
  821.         IF LOCATE_PLAYER_IN_CAR_2D player 875.0 -309.0 20.0 20.0 FALSE
  822.         AND IS_PLAYER_IN_CAR player car_eightball
  823.         AND flag_help_8ball1 = 0
  824.                 PRINT_HELP ( HELP1 ) //Stop in the centre of the red dome."
  825.                 flag_help_8ball1 = 1
  826.         ENDIF
  827.        
  828. ENDWHILE
  829.  
  830. PRINT_HELP ( EBAL_3 ) //"Follow the "blip" to find the hideout!"
  831.  
  832. FLASH_HUD_OBJECT HUD_FLASH_RADAR
  833.  
  834. timera = 0
  835.  
  836. // waiting for the player to get to Luigi's
  837.  
  838. WHILE NOT IS_PLAYER_STOPPED_IN_AREA_IN_CAR_3D player 879.4 -303.4 7.3 870.1 -311.7 10.0 blob_flag
  839. OR NOT IS_CHAR_STOPPED_IN_AREA_IN_CAR_3D eightball 879.4 -303.4 7.3 870.1 -311.7 10.0 FALSE
  840. OR NOT IS_PLAYER_SITTING_IN_CAR player car_eightball
  841. OR NOT IS_CHAR_SITTING_IN_CAR eightball car_eightball
  842. OR NOT HAS_MISSION_AUDIO_LOADED
  843.  
  844.         WAIT 0
  845.  
  846.         IF timerb < 120000  // 2 mins
  847.                 CLEAR_WANTED_LEVEL player
  848.         ENDIF
  849.  
  850.         IF flag_timer_stopped_flashing_8ball = 0
  851.  
  852.                 IF timera > 4000
  853.                         FLASH_HUD_OBJECT -1
  854.                         flag_timer_stopped_flashing_8ball = 1
  855.                 ENDIF
  856.  
  857.         ENDIF
  858.        
  859.         IF flag_brake_message = 0
  860.  
  861.                 IF timera >= 10000
  862.                        
  863.                         GET_CONTROLLER_MODE controlmode
  864.  
  865.                         IF controlmode = 0
  866.                                 PRINT_HELP ( HELP5_A ) //"Press the ^ button to brake, when stopped this will make the vehicle reverse."
  867.                         ENDIF
  868.  
  869.                         IF controlmode = 1
  870.                                 PRINT_HELP ( HELP5_A ) //"Press the ^ button to brake, when stopped this will make the vehicle reverse."
  871.                         ENDIF
  872.  
  873.                         IF controlmode = 2
  874.                                 PRINT_HELP ( HELP5_A ) //"Press the ^ button to brake, when stopped this will make the vehicle reverse."
  875.                         ENDIF
  876.  
  877.                         IF controlmode = 3
  878.                                 PRINT_HELP ( HELP5_D ) //"Press the ^ button to brake, when stopped this will make the vehicle reverse."
  879.                         ENDIF
  880.  
  881.                         flag_brake_message = 1
  882.                         timera = 0
  883.  
  884.                 ENDIF
  885.  
  886.         ENDIF
  887.  
  888.         IF timera > 10000
  889.                                          
  890.                 IF flag_hbrake_message = 0
  891.          
  892.                         GET_CONTROLLER_MODE controlmode
  893.  
  894.                         IF controlmode = 0
  895.                                 PRINT_HELP ( HELP6_A ) //"Press the R1 button to apply the vehicle's handbrake."
  896.                         ENDIF
  897.  
  898.                         IF controlmode = 1
  899.                                 PRINT_HELP ( HELP6_A ) //"Press the R1 button to apply the vehicle's handbrake."
  900.                         ENDIF
  901.  
  902.                         IF controlmode = 2
  903.                                 PRINT_HELP ( HELP6_C ) //"Press the R1 button to apply the vehicle's handbrake."
  904.                         ENDIF
  905.  
  906.                         IF controlmode = 3
  907.                                 PRINT_HELP ( HELP6_D ) //"Press the R1 button to apply the vehicle's handbrake."
  908.                         ENDIF
  909.  
  910.                         flag_hbrake_message = 1
  911.                        
  912.                 ENDIF
  913.                                        
  914.         ENDIF
  915.                
  916.         IF IS_CHAR_DEAD eightball
  917.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  918.             GOTO mission_eightball_failed
  919.         ENDIF
  920.                                
  921.         IF IS_CAR_DEAD car_eightball
  922.  
  923.                 IF IS_CHAR_DEAD eightball
  924.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  925.                         GOTO mission_eightball_failed
  926.                 ELSE
  927.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  928.                         GOTO mission_eightball_failed
  929.                 ENDIF
  930.  
  931.         ELSE
  932.  
  933.                 IF IS_CAR_UPSIDEDOWN car_eightball
  934.                 AND IS_CAR_STOPPED car_eightball
  935.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  936.                         GOTO mission_eightball_failed
  937.                 ENDIF
  938.  
  939.                 IF NOT IS_PLAYER_IN_CAR player car_eightball
  940.  
  941.                         blob_flag = 0
  942.                        
  943.                         IF flag_car_message_8ball = 0
  944.                                 PRINT_NOW ( IN_VEH ) 5000 1 //"Get back into the car and get on with the mission!"
  945.                                 REMOVE_BLIP radar_blip_coord1_eightball
  946.                                 ADD_BLIP_FOR_CAR car_eightball radar_blip_car1_eightball
  947.                                 flag_car_message_8ball = 1
  948.                         ENDIF
  949.                        
  950.                 ELSE
  951.  
  952.                         blob_flag = 1
  953.                
  954.                         IF flag_car_message_8ball = 1
  955.                                 REMOVE_BLIP radar_blip_car1_eightball
  956.                                 ADD_BLIP_FOR_COORD 875.0 -309.0 -100.0 radar_blip_coord1_eightball
  957.                                 flag_car_message_8ball = 0
  958.                         ENDIF
  959.                        
  960.                 ENDIF
  961.                
  962.         ENDIF  
  963.        
  964.         IF LOCATE_PLAYER_IN_CAR_2D player 875.0 -309.0 20.0 20.0 FALSE
  965.         AND IS_PLAYER_IN_CAR player car_eightball
  966.         AND flag_help_8ball1 = 0
  967.                 PRINT_HELP ( HELP1 ) //Stop in the centre of the red dome."
  968.                 flag_help_8ball1 = 1
  969.         ENDIF
  970.                            
  971. ENDWHILE
  972.  
  973. CLEAR_HELP
  974.  
  975. REMOVE_BLIP radar_blip_coord1_eightball
  976.  
  977. // ******************************Player and 8ball are at base scripted cutscene*************
  978.  
  979. SWITCH_WIDESCREEN ON
  980.  
  981. CLEAR_WANTED_LEVEL player
  982.  
  983. SET_POLICE_IGNORE_PLAYER player ON
  984.  
  985. SET_PLAYER_CONTROL player OFF
  986.  
  987. IF NOT IS_CAR_DEAD cop_car1_8ball
  988.         DELETE_CAR cop_car1_8ball
  989. ENDIF
  990.  
  991. IF NOT IS_CAR_DEAD cop_car2_8ball
  992.         DELETE_CAR cop_car2_8ball
  993. ENDIF
  994.  
  995.  
  996. CLEAR_AREA 886.8 -310.1 -100.0 2.0 TRUE
  997.  
  998. GET_CAR_COORDINATES car_eightball car_8ball_x car_8ball_y car_8ball_z
  999.  
  1000. GET_CAR_HEADING car_eightball car_8ball_heading
  1001.  
  1002. GET_CAR_COLOURS car_eightball car_colour1_8ball car_colour2_8ball
  1003.  
  1004. WHILE NOT ROTATE_OBJECT playersdoor 210.0 10.0 FALSE
  1005.  
  1006.         WAIT 0
  1007.  
  1008.         IF IS_CAR_DEAD car_eightball
  1009.  
  1010.                 IF IS_CHAR_DEAD eightball
  1011.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1012.                         GOTO mission_eightball_failed
  1013.                 ELSE
  1014.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1015.                         GOTO mission_eightball_failed
  1016.                 ENDIF
  1017.  
  1018.         ELSE
  1019.  
  1020.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1021.                 AND IS_CAR_STOPPED car_eightball
  1022.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1023.                         GOTO mission_eightball_failed
  1024.                 ENDIF
  1025.  
  1026.         ENDIF
  1027.                        
  1028.         IF IS_CHAR_DEAD eightball
  1029.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1030.             GOTO mission_eightball_failed
  1031.         ENDIF
  1032.  
  1033. ENDWHILE
  1034.  
  1035. CLEAR_AREA 889.7 -308.2 8.6 3.0 TRUE  // This should remove any stuff that is in the way for the cut-scene
  1036.  
  1037. GET_PLAYER_CHAR player script_controlled_player
  1038.  
  1039. CLEAR_CHAR_THREAT_SEARCH script_controlled_player
  1040.                  
  1041. SET_CHAR_OBJ_LEAVE_CAR eightball car_eightball
  1042.  
  1043. WHILE IS_CHAR_IN_CAR eightball car_eightball
  1044.  
  1045.         WAIT 0
  1046.  
  1047.         IF IS_CHAR_DEAD eightball
  1048.                  PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1049.                  GOTO mission_eightball_failed
  1050.         ENDIF
  1051.  
  1052.         IF IS_CAR_DEAD car_eightball
  1053.  
  1054.                 IF IS_CHAR_DEAD eightball
  1055.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1056.                         GOTO mission_eightball_failed
  1057.                 ELSE
  1058.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1059.                         GOTO mission_eightball_failed
  1060.                 ENDIF
  1061.  
  1062.         ELSE
  1063.  
  1064.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1065.                 AND IS_CAR_STOPPED car_eightball
  1066.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1067.                         GOTO mission_eightball_failed
  1068.                 ENDIF
  1069.  
  1070.         ENDIF
  1071.            
  1072. ENDWHILE
  1073.  
  1074. PLAY_MISSION_AUDIO
  1075.  
  1076. PRINT_NOW ( EBAL_B ) 7000 1 //"This is the place! Let's get off the street and find a change of clothes!"
  1077.  
  1078. SET_CHAR_OBJ_RUN_TO_COORD eightball 892.7 -308.6
  1079.  
  1080. IF HAS_MISSION_AUDIO_FINISHED
  1081.         CLEAR_THIS_PRINT ( EBAL_B )
  1082. ENDIF
  1083.  
  1084. WAIT 1000
  1085.  
  1086. IF HAS_MISSION_AUDIO_FINISHED
  1087.         CLEAR_THIS_PRINT ( EBAL_B )
  1088. ENDIF
  1089.  
  1090. IF IS_CHAR_DEAD eightball
  1091.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1092.         GOTO mission_eightball_failed
  1093. ENDIF
  1094.  
  1095. IF IS_CAR_DEAD car_eightball
  1096.  
  1097.         IF IS_CHAR_DEAD eightball
  1098.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1099.                 GOTO mission_eightball_failed
  1100.         ELSE
  1101.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1102.                 GOTO mission_eightball_failed
  1103.         ENDIF
  1104.  
  1105. ELSE
  1106.  
  1107.         IF IS_CAR_UPSIDEDOWN car_eightball
  1108.         AND IS_CAR_STOPPED car_eightball
  1109.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1110.                 GOTO mission_eightball_failed
  1111.         ENDIF
  1112.  
  1113. ENDIF
  1114.  
  1115. IF HAS_MISSION_AUDIO_FINISHED
  1116.         CLEAR_THIS_PRINT ( EBAL_B )
  1117. ENDIF
  1118.  
  1119. SET_CHAR_OBJ_LEAVE_CAR script_controlled_player car_eightball
  1120.                                                        
  1121. CLEAR_AREA 868.63 -311.7 8.3 1.0 TRUE
  1122.  
  1123. IF IS_AREA_OCCUPIED 870.4 -309.9 6.0 865.2 -314.7 12.0 FALSE TRUE TRUE TRUE TRUE
  1124.         SET_FIXED_CAMERA_POSITION 848.265 -295.26 19.136 0.0 0.0 0.0  //high camera that points to the water tower
  1125.         POINT_CAMERA_AT_POINT 849.11 -295.79 19.18 jump_cut
  1126. ELSE
  1127.         SET_FIXED_CAMERA_POSITION 868.63 -311.7 8.3 0.0 0.0 0.0  //low new camera that points to the save house
  1128.         POINT_CAMERA_AT_POINT 869.59 -311.53 8.53 jump_cut
  1129. ENDIF
  1130.  
  1131. WHILE IS_CHAR_IN_CAR script_controlled_player car_eightball
  1132.                        
  1133.         WAIT 0
  1134.  
  1135.         IF HAS_MISSION_AUDIO_FINISHED
  1136.         CLEAR_THIS_PRINT ( EBAL_B )
  1137.    ENDIF
  1138.  
  1139.         IF IS_CHAR_DEAD eightball
  1140.                  PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1141.                  GOTO mission_eightball_failed
  1142.         ENDIF
  1143.  
  1144.         IF IS_CAR_DEAD car_eightball
  1145.  
  1146.                 IF IS_CHAR_DEAD eightball
  1147.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1148.                         GOTO mission_eightball_failed
  1149.                 ELSE
  1150.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1151.                         GOTO mission_eightball_failed
  1152.                 ENDIF
  1153.  
  1154.         ELSE
  1155.  
  1156.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1157.                 AND IS_CAR_STOPPED car_eightball
  1158.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1159.                         GOTO mission_eightball_failed
  1160.                 ENDIF
  1161.  
  1162.         ENDIF
  1163.            
  1164. ENDWHILE
  1165.  
  1166. //Make player walk into the doors and get a change of clothes
  1167.  
  1168. SET_CHAR_OBJ_RUN_TO_COORD script_controlled_player 892.4 -308.5
  1169.  
  1170. timerb = 0
  1171.  
  1172. WHILE NOT flag_player_in_area = 2
  1173. OR NOT flag_eightball_in_area = 2
  1174.  
  1175.         WAIT 0
  1176.        
  1177.         IF IS_CAR_DEAD car_eightball
  1178.  
  1179.                 IF IS_CHAR_DEAD eightball
  1180.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1181.                         GOTO mission_eightball_failed
  1182.                 ELSE
  1183.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1184.                         GOTO mission_eightball_failed
  1185.                 ENDIF
  1186.  
  1187.         ELSE
  1188.  
  1189.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1190.                 AND IS_CAR_STOPPED car_eightball
  1191.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1192.                         GOTO mission_eightball_failed
  1193.                 ENDIF
  1194.  
  1195.         ENDIF
  1196.        
  1197.         IF IS_CHAR_DEAD eightball
  1198.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1199.                 GOTO mission_eightball_failed
  1200.         ENDIF
  1201.                        
  1202.         IF flag_player_in_area = 0
  1203.  
  1204.                 IF LOCATE_CHAR_ON_FOOT_2D script_controlled_player 892.4 -308.5 0.5 0.5 FALSE
  1205.                         SET_CHAR_OBJ_RUN_TO_COORD script_controlled_player 892.4 -305.6
  1206.                         flag_player_in_area = 1
  1207.                 ENDIF
  1208.  
  1209.         ENDIF
  1210.        
  1211.  
  1212.         IF flag_eightball_in_area = 0
  1213.  
  1214.                 IF LOCATE_CHAR_ON_FOOT_2D eightball 892.7 -308.6 0.5 0.5 FALSE
  1215.                         SET_CHAR_OBJ_RUN_TO_COORD eightball 894.2 -304.3
  1216.                         flag_eightball_in_area = 1
  1217.                 ENDIF
  1218.        
  1219.         ENDIF
  1220.        
  1221.         IF flag_player_in_area = 1
  1222.  
  1223.                 IF LOCATE_CHAR_ON_FOOT_2D script_controlled_player 892.4 -305.6 0.5 0.5 FALSE
  1224.                         flag_player_in_area = 2
  1225.                 ENDIF
  1226.        
  1227.         ENDIF
  1228.  
  1229.         IF flag_eightball_in_area = 1
  1230.  
  1231.                 IF LOCATE_CHAR_ON_FOOT_2D eightball 894.2 -304.3 0.5 0.5 FALSE
  1232.                         flag_eightball_in_area = 2
  1233.                 ENDIF
  1234.        
  1235.         ENDIF
  1236.  
  1237.         IF timerb >= 10000
  1238.  
  1239.                 IF NOT flag_player_in_area = 2
  1240.                 OR NOT flag_eightball_in_area = 2
  1241.                         SET_PLAYER_COORDINATES player 892.4 -305.6 7.7
  1242.                         CHAR_SET_IDLE script_controlled_player
  1243.                         SET_CHAR_COORDINATES eightball 894.2 -304.3 7.7
  1244.                         CHAR_SET_IDLE eightball
  1245.                         GOTO mission_bloke_stuck_8ball
  1246.                 ENDIF
  1247.                
  1248.         ENDIF
  1249.                                        
  1250. ENDWHILE
  1251.  
  1252. mission_bloke_stuck_8ball:
  1253.  
  1254. SET_FIXED_CAMERA_POSITION 886.8 -310.1 9.9 0.0 0.0 0.0
  1255.  
  1256. POINT_CAMERA_AT_POINT 887.7 -309.8 9.8 JUMP_CUT
  1257.  
  1258. CHAR_SET_IDLE eightball
  1259.  
  1260. SET_CHAR_OBJ_NO_OBJ script_controlled_player
  1261.  
  1262. PRINT_HELP ( S_PROMP ) //"When not on a mission you can save your game here, this will also advance time six hours."
  1263.  
  1264. WAIT 4000
  1265.  
  1266. IF IS_CAR_DEAD car_eightball
  1267.  
  1268.         IF IS_CHAR_DEAD eightball
  1269.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1270.                 GOTO mission_eightball_failed
  1271.         ELSE
  1272.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1273.                 GOTO mission_eightball_failed
  1274.         ENDIF
  1275.  
  1276. ELSE
  1277.  
  1278.         IF IS_CAR_UPSIDEDOWN car_eightball
  1279.         AND IS_CAR_STOPPED car_eightball
  1280.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1281.                 GOTO mission_eightball_failed
  1282.         ENDIF
  1283.  
  1284. ENDIF
  1285.        
  1286. IF IS_CHAR_DEAD eightball
  1287.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1288.         GOTO mission_eightball_failed
  1289. ENDIF
  1290.  
  1291.  
  1292. PRINT_HELP ( S_PROM2 ) //"The garage next door can store one car."
  1293.  
  1294. POINT_CAMERA_AT_POINT 887.8 -310.5 9.7 interpolation
  1295.  
  1296. SET_PLAYER_COORDINATES player 895.9 -311.4 7.7
  1297.  
  1298. SET_CHAR_COORDINATES eightball 884.3 -309.2 7.6
  1299.  
  1300. // Clothes change
  1301.  
  1302. //8-BAll change
  1303.                    
  1304. IF NOT IS_CHAR_DEAD eightball
  1305.        
  1306.         UNDRESS_CHAR eightball eight2
  1307.         WHILE NOT HAS_MODEL_LOADED PED_SPECIAL1
  1308.        
  1309.                 WAIT 0
  1310.  
  1311.                 IF IS_CAR_DEAD car_eightball
  1312.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1313.                         GOTO mission_eightball_failed
  1314.                 ELSE
  1315.  
  1316.                         IF IS_CAR_UPSIDEDOWN car_eightball
  1317.                         AND IS_CAR_STOPPED car_eightball
  1318.                                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1319.                                 GOTO mission_eightball_failed
  1320.                         ENDIF
  1321.  
  1322.                 ENDIF
  1323.                                
  1324.         ENDWHILE
  1325.        
  1326.         IF NOT IS_CHAR_DEAD eightball
  1327.                 DRESS_CHAR eightball
  1328.         ENDIF
  1329.  
  1330. ENDIF
  1331.  
  1332. //Player change
  1333.  
  1334. IF NOT IS_CHAR_DEAD script_controlled_player
  1335.        
  1336.         UNDRESS_CHAR script_controlled_player player
  1337.         WHILE NOT HAS_MODEL_LOADED PED_PLAYER
  1338.        
  1339.                 WAIT 0
  1340.  
  1341.                 IF IS_CAR_DEAD car_eightball
  1342.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1343.                         GOTO mission_eightball_failed
  1344.                 ELSE
  1345.  
  1346.                         IF IS_CAR_UPSIDEDOWN car_eightball
  1347.                         AND IS_CAR_STOPPED car_eightball
  1348.                                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1349.                                 GOTO mission_eightball_failed
  1350.                         ENDIF
  1351.  
  1352.                 ENDIF
  1353.                
  1354.         ENDWHILE
  1355.        
  1356.         IF NOT IS_CHAR_DEAD script_controlled_player
  1357.                 DRESS_CHAR script_controlled_player
  1358.         ENDIF
  1359. ENDIF
  1360.  
  1361. WAIT 3000
  1362.  
  1363. IF IS_CAR_DEAD car_eightball
  1364.  
  1365.         IF IS_CHAR_DEAD eightball
  1366.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1367.                 GOTO mission_eightball_failed
  1368.         ELSE
  1369.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1370.                 GOTO mission_eightball_failed
  1371.         ENDIF
  1372.  
  1373. ELSE
  1374.  
  1375.         IF IS_CAR_UPSIDEDOWN car_eightball
  1376.         AND IS_CAR_STOPPED car_eightball
  1377.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1378.                 GOTO mission_eightball_failed
  1379.         ENDIF
  1380.  
  1381. ENDIF
  1382.        
  1383. IF IS_CHAR_DEAD eightball
  1384.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1385.         GOTO mission_eightball_failed
  1386. ENDIF
  1387.  
  1388. SET_PLAYER_COORDINATES player 883.5 -308.2 7.6
  1389.  
  1390. RELEASE_WEATHER
  1391.  
  1392. SET_CHAR_OBJ_ENTER_CAR_AS_PASSENGER eightball car_eightball
  1393.  
  1394. WAIT 1500
  1395.  
  1396. IF IS_CHAR_DEAD eightball
  1397.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1398.         GOTO mission_eightball_failed
  1399. ENDIF
  1400.  
  1401. IF IS_CAR_DEAD car_eightball
  1402.  
  1403.         IF IS_CHAR_DEAD eightball
  1404.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1405.                 GOTO mission_eightball_failed
  1406.         ELSE
  1407.                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1408.                 GOTO mission_eightball_failed
  1409.         ENDIF
  1410.  
  1411. ELSE
  1412.  
  1413.         IF IS_CAR_UPSIDEDOWN car_eightball
  1414.         AND IS_CAR_STOPPED car_eightball
  1415.                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1416.                 GOTO mission_eightball_failed
  1417.         ENDIF
  1418.  
  1419. ENDIF
  1420.  
  1421. SET_CHAR_OBJ_ENTER_CAR_AS_DRIVER script_controlled_player car_eightball
  1422.  
  1423. CLEAR_AREA 868.63 -311.7 8.3 1.0 TRUE
  1424.  
  1425. IF IS_AREA_OCCUPIED 870.4 -309.9 6.0 865.2 -314.7 12.0 FALSE TRUE TRUE TRUE TRUE
  1426.         SET_FIXED_CAMERA_POSITION 848.265 -295.26 19.136 0.0 0.0 0.0  //high camera that points to the water tower
  1427.         POINT_CAMERA_AT_POINT 849.11 -295.79 19.18 jump_cut
  1428. ELSE
  1429.         SET_FIXED_CAMERA_POSITION 868.63 -311.7 8.3 0.0 0.0 0.0  //low new camera that points to the save house
  1430.         POINT_CAMERA_AT_POINT 869.59 -311.53 8.53 jump_cut
  1431. ENDIF
  1432.  
  1433. CLEAR_HELP
  1434.  
  1435. WHILE NOT IS_PLAYER_IN_CAR player car_eightball
  1436. OR NOT IS_CHAR_IN_CAR eightball car_eightball
  1437.  
  1438.         WAIT 0
  1439.  
  1440.         IF IS_CAR_DEAD car_eightball
  1441.  
  1442.                 IF IS_CHAR_DEAD eightball
  1443.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1444.                         GOTO mission_eightball_failed
  1445.                 ELSE
  1446.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1447.                         GOTO mission_eightball_failed
  1448.                 ENDIF
  1449.  
  1450.         ELSE
  1451.  
  1452.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1453.                 AND IS_CAR_STOPPED car_eightball
  1454.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1455.                         GOTO mission_eightball_failed
  1456.                 ENDIF
  1457.  
  1458.         ENDIF
  1459.  
  1460.         IF IS_CHAR_DEAD eightball
  1461.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1462.                 GOTO mission_eightball_failed
  1463.         ENDIF
  1464.  
  1465. ENDWHILE
  1466.  
  1467. WHILE NOT ROTATE_OBJECT playersdoor 0.0 10.0 FALSE
  1468.  
  1469.         WAIT 0
  1470.  
  1471.         IF IS_CAR_DEAD car_eightball
  1472.  
  1473.                 IF IS_CHAR_DEAD eightball
  1474.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1475.                         GOTO mission_eightball_failed
  1476.                 ELSE
  1477.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1478.                         GOTO mission_eightball_failed
  1479.                 ENDIF
  1480.  
  1481.         ELSE
  1482.  
  1483.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1484.                 AND IS_CAR_STOPPED car_eightball
  1485.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1486.                         GOTO mission_eightball_failed
  1487.                 ENDIF
  1488.  
  1489.         ENDIF
  1490.        
  1491.         IF IS_CHAR_DEAD eightball
  1492.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1493.             GOTO mission_eightball_failed
  1494.         ENDIF
  1495.  
  1496. ENDWHILE
  1497.  
  1498. RESTORE_CAMERA_JUMPCUT
  1499.  
  1500. SET_CAMERA_IN_FRONT_OF_PLAYER
  1501.  
  1502. SWITCH_WIDESCREEN OFF
  1503.  
  1504. SET_PLAYER_CONTROL player ON
  1505.  
  1506. SET_POLICE_IGNORE_PLAYER player OFF
  1507.  
  1508. //ADD_BLIP_FOR_COORD 906.2 -426.0 -100.0 radar_blip_coord2_eightball
  1509.  
  1510. blob_flag = 1
  1511.  
  1512. // *************Restart function for 8ball and the player at players hideout***************
  1513.  
  1514. hideout_reached:
  1515.  
  1516. IF flag_reached_hideout = 1
  1517.  
  1518.         SWITCH_WIDESCREEN ON
  1519.  
  1520.         SET_PLAYER_CONTROL player OFF
  1521.  
  1522.         SET_POLICE_IGNORE_PLAYER player ON
  1523.        
  1524.         SET_PLAYER_HEADING player 90.0
  1525.        
  1526.         CLEAR_AREA 868.63 -311.7 8.3 1.0 TRUE
  1527.  
  1528.         IF IS_AREA_OCCUPIED 870.4 -309.9 6.0 865.2 -314.7 12.0 FALSE TRUE TRUE TRUE TRUE
  1529.                 SET_FIXED_CAMERA_POSITION 848.265 -295.26 19.136 0.0 0.0 0.0  //high camera that points to the water tower
  1530.                 POINT_CAMERA_AT_POINT 849.11 -295.79 19.18 jump_cut
  1531.         ELSE
  1532.                 SET_FIXED_CAMERA_POSITION 868.63 -311.7 8.3 0.0 0.0 0.0  //low new camera that points to the save house
  1533.                 POINT_CAMERA_AT_POINT 869.59 -311.53 8.53 jump_cut
  1534.         ENDIF
  1535.        
  1536.         SET_OBJECT_HEADING playersdoor 0.0
  1537.  
  1538.         LOAD_SPECIAL_CHARACTER 1 eight2
  1539.        
  1540.         REQUEST_MODEL CAR_KURUMA
  1541.  
  1542.         LOAD_ALL_MODELS_NOW
  1543.                        
  1544.         //CREATE_CHAR PEDTYPE_SPECIAL PED_SPECIAL1 887.2 -308.4 7.6 eightball
  1545.  
  1546.          CREATE_CHAR PEDTYPE_SPECIAL PED_SPECIAL1 884.3 -309.2 7.6 eightball
  1547.  
  1548.         SET_ANIM_GROUP_FOR_CHAR eightball ANIM_GANG2_PED
  1549.        
  1550.         SET_CHAR_HEADING eightball 90.0
  1551.  
  1552.         CLEAR_CHAR_THREAT_SEARCH eightball
  1553.        
  1554.         CREATE_CAR CAR_KURUMA car_8ball_x car_8ball_y car_8ball_z car_eightball
  1555.  
  1556.         SET_CAR_HEADING car_eightball car_8ball_heading
  1557.  
  1558.         CHANGE_CAR_COLOUR car_eightball car_colour1_8ball car_colour2_8ball
  1559.        
  1560.         RELEASE_WEATHER
  1561.        
  1562.         SET_CHAR_OBJ_ENTER_CAR_AS_DRIVER script_controlled_player car_eightball
  1563.  
  1564.         SET_CHAR_OBJ_ENTER_CAR_AS_PASSENGER eightball car_eightball
  1565.  
  1566.         WHILE NOT IS_PLAYER_IN_CAR player car_eightball
  1567.         OR NOT IS_CHAR_IN_CAR eightball car_eightball
  1568.  
  1569.                 WAIT 0
  1570.  
  1571.                 IF IS_CAR_DEAD car_eightball
  1572.  
  1573.                         IF IS_CHAR_DEAD eightball
  1574.                                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1575.                                 GOTO mission_eightball_failed
  1576.                         ELSE
  1577.                                 PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1578.                                 GOTO mission_eightball_failed
  1579.                         ENDIF
  1580.  
  1581.                 ELSE
  1582.  
  1583.                         IF IS_CAR_UPSIDEDOWN car_eightball
  1584.                         AND IS_CAR_STOPPED car_eightball
  1585.                                 PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1586.                                 GOTO mission_eightball_failed
  1587.                         ENDIF
  1588.  
  1589.                 ENDIF
  1590.  
  1591.                 IF IS_CHAR_DEAD eightball
  1592.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1593.                         GOTO mission_eightball_failed
  1594.                 ENDIF
  1595.  
  1596.         ENDWHILE
  1597.  
  1598.         SET_CHAR_CANT_BE_DRAGGED_OUT eightball TRUE
  1599.  
  1600.         RESTORE_CAMERA_JUMPCUT
  1601.  
  1602.         SET_CAMERA_IN_FRONT_OF_PLAYER
  1603.  
  1604.         SWITCH_WIDESCREEN OFF
  1605.  
  1606.         SET_PLAYER_CONTROL player ON
  1607.  
  1608.         SET_POLICE_IGNORE_PLAYER player OFF
  1609.                
  1610. ENDIF
  1611.  
  1612. // **************************************end of the restart stuff***************************
  1613.  
  1614. IF flag_reached_hideout = 0
  1615.         REMOVE_PARTICLE_EFFECTS_IN_AREA 804.02 -948.03 30.0 765.15 -924.32 50.0
  1616.         REMOVE_SOUND fire_sound_8ball
  1617.         DELETE_OBJECT damagea
  1618.         DELETE_OBJECT damageb
  1619.         SWAP_NEAREST_BUILDING_MODEL 1027.26 -933.796 15.042 50.0 LOD_land014 indhelix_barrier  
  1620.         SET_VISIBILITY_OF_CLOSEST_OBJECT_OF_TYPE 1027.26 -933.796 15.042 50.0 indhelix_barrier TRUE
  1621. ENDIF
  1622. flag_reached_hideout = 1
  1623.  
  1624. OVERRIDE_NEXT_RESTART 883.5 -308.2 7.6 90.0  // Players hideout
  1625.  
  1626. IF IS_CHAR_DEAD eightball
  1627.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1628.         GOTO mission_eightball_failed
  1629. ENDIF
  1630.  
  1631. ADD_BLIP_FOR_COORD 906.2 -426.0 -100.0 radar_blip_coord2_eightball  //Luigis blip
  1632.  
  1633. LOAD_MISSION_AUDIO LIB_B
  1634.  
  1635. WHILE NOT HAS_MISSION_AUDIO_LOADED
  1636.  
  1637.         WAIT 0
  1638.                                                                
  1639.         IF IS_CAR_DEAD car_eightball
  1640.  
  1641.                 IF IS_CHAR_DEAD eightball
  1642.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1643.                         GOTO mission_eightball_failed
  1644.                 ELSE
  1645.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1646.                         GOTO mission_eightball_failed
  1647.                 ENDIF
  1648.  
  1649.         ELSE
  1650.  
  1651.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1652.                 AND IS_CAR_STOPPED car_eightball
  1653.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1654.                         GOTO mission_eightball_failed
  1655.                 ENDIF
  1656.  
  1657.                 IF NOT IS_PLAYER_IN_CAR player car_eightball
  1658.  
  1659.                         blob_flag = 0
  1660.                        
  1661.                         IF flag_car_message_8ball = 0
  1662.                                 PRINT_NOW ( IN_VEH ) 5000 1 //"Get back into the car and get on with the mission!"
  1663.                                 REMOVE_BLIP radar_blip_coord2_eightball
  1664.                                 ADD_BLIP_FOR_CAR car_eightball radar_blip_car1_eightball
  1665.                                 flag_car_message_8ball = 1
  1666.                         ENDIF
  1667.                        
  1668.                 ELSE
  1669.  
  1670.                         blob_flag = 1
  1671.                
  1672.                         IF flag_car_message_8ball = 1
  1673.                                 REMOVE_BLIP radar_blip_car1_eightball
  1674.                                 ADD_BLIP_FOR_COORD 906.2 -426.0 -100.0 radar_blip_coord2_eightball //Luigis
  1675.                                 flag_car_message_8ball = 0
  1676.                         ENDIF
  1677.                        
  1678.                 ENDIF
  1679.                
  1680.         ENDIF  
  1681.  
  1682.         IF IS_CHAR_DEAD eightball
  1683.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1684.             GOTO mission_eightball_failed
  1685.         ENDIF
  1686.        
  1687. ENDWHILE
  1688.  
  1689. PLAY_MISSION_AUDIO
  1690.  
  1691. PRINT_NOW ( EBAL_D ) 5000 1 //"I know a guy, he's connected, Names Luigi.
  1692.  
  1693. WAIT 2000
  1694.  
  1695. IF IS_CAR_DEAD car_eightball
  1696.  
  1697.                 IF IS_CHAR_DEAD eightball
  1698.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1699.                         GOTO mission_eightball_failed
  1700.                 ELSE
  1701.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1702.                         GOTO mission_eightball_failed
  1703.                 ENDIF
  1704.  
  1705.         ELSE
  1706.  
  1707.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1708.                 AND IS_CAR_STOPPED car_eightball
  1709.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1710.                         GOTO mission_eightball_failed
  1711.                 ENDIF
  1712.  
  1713.                 IF NOT IS_PLAYER_IN_CAR player car_eightball
  1714.  
  1715.                         blob_flag = 0
  1716.                        
  1717.                         IF flag_car_message_8ball = 0
  1718.                                 PRINT_NOW ( IN_VEH ) 5000 1 //"Get back into the car and get on with the mission!"
  1719.                                 REMOVE_BLIP radar_blip_coord2_eightball
  1720.                                 ADD_BLIP_FOR_CAR car_eightball radar_blip_car1_eightball
  1721.                                 flag_car_message_8ball = 1
  1722.                         ENDIF
  1723.                        
  1724.                 ELSE
  1725.  
  1726.                         blob_flag = 1
  1727.                
  1728.                         IF flag_car_message_8ball = 1
  1729.                                 REMOVE_BLIP radar_blip_car1_eightball
  1730.                                 ADD_BLIP_FOR_COORD 906.2 -426.0 -100.0 radar_blip_coord2_eightball //Luigis
  1731.                                 flag_car_message_8ball = 0
  1732.                         ENDIF
  1733.                        
  1734.                 ENDIF
  1735.                
  1736.         ENDIF  
  1737.  
  1738.         IF IS_CHAR_DEAD eightball
  1739.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1740.             GOTO mission_eightball_failed
  1741.         ENDIF
  1742.  
  1743.  
  1744. PRINT_NOW ( EBAL_D1 ) 7000 1 //"Me an' him go back so I could probably get you some work."
  1745.  
  1746. //waiting for the player to got to Luigi's
  1747.  
  1748. WHILE NOT HAS_MISSION_AUDIO_FINISHED
  1749.  
  1750.         WAIT 0
  1751.  
  1752.         IF IS_CAR_DEAD car_eightball
  1753.  
  1754.                 IF IS_CHAR_DEAD eightball
  1755.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1756.                         GOTO mission_eightball_failed
  1757.                 ELSE
  1758.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1759.                         GOTO mission_eightball_failed
  1760.                 ENDIF
  1761.  
  1762.         ELSE
  1763.  
  1764.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1765.                 AND IS_CAR_STOPPED car_eightball
  1766.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1767.                         GOTO mission_eightball_failed
  1768.                 ENDIF
  1769.  
  1770.                 IF NOT IS_PLAYER_IN_CAR player car_eightball
  1771.  
  1772.                         blob_flag = 0
  1773.                        
  1774.                         IF flag_car_message_8ball = 0
  1775.                                 PRINT_NOW ( IN_VEH ) 5000 1 //"Get back into the car and get on with the mission!"
  1776.                                 REMOVE_BLIP radar_blip_coord2_eightball
  1777.                                 ADD_BLIP_FOR_CAR car_eightball radar_blip_car1_eightball
  1778.                                 flag_car_message_8ball = 1
  1779.                         ENDIF
  1780.                        
  1781.                 ELSE
  1782.  
  1783.                         blob_flag = 1
  1784.                
  1785.                         IF flag_car_message_8ball = 1
  1786.                                 REMOVE_BLIP radar_blip_car1_eightball
  1787.                                 ADD_BLIP_FOR_COORD 906.2 -426.0 -100.0 radar_blip_coord2_eightball //Luigis
  1788.                                 flag_car_message_8ball = 0
  1789.                         ENDIF
  1790.                        
  1791.                 ENDIF
  1792.                
  1793.         ENDIF  
  1794.  
  1795.         IF IS_CHAR_DEAD eightball
  1796.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1797.             GOTO mission_eightball_failed
  1798.         ENDIF
  1799.        
  1800. ENDWHILE
  1801.  
  1802. CLEAR_THIS_PRINT ( EBAL_D )
  1803.  
  1804. CLEAR_THIS_PRINT ( EBAL_D1 )
  1805.  
  1806. // waiting for the player to get to luigi's
  1807.    
  1808. LOAD_MISSION_AUDIO LIB_C
  1809.  
  1810. WHILE NOT IS_PLAYER_STOPPED_IN_AREA_IN_CAR_3D player 903.8 -420.2 14.0 908.3 -431.1 18.0 blob_flag
  1811. OR NOT IS_CHAR_STOPPED_IN_AREA_IN_CAR_3D eightball 903.8 -420.2 14.0 908.3 -431.1 18.0 FALSE
  1812. OR NOT IS_PLAYER_IN_CAR player car_eightball
  1813. OR NOT IS_CHAR_IN_CAR eightball car_eightball
  1814. OR NOT HAS_MISSION_AUDIO_LOADED
  1815.  
  1816.         WAIT 0
  1817.                                                
  1818.         IF IS_CAR_DEAD car_eightball
  1819.  
  1820.                 IF IS_CHAR_DEAD eightball
  1821.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1822.                         GOTO mission_eightball_failed
  1823.                 ELSE
  1824.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1825.                         GOTO mission_eightball_failed
  1826.                 ENDIF
  1827.  
  1828.         ELSE
  1829.  
  1830.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1831.                 AND IS_CAR_STOPPED car_eightball
  1832.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1833.                         GOTO mission_eightball_failed
  1834.                 ENDIF
  1835.  
  1836.                 IF NOT IS_PLAYER_IN_CAR player car_eightball
  1837.  
  1838.                         blob_flag = 0
  1839.                        
  1840.                         IF flag_car_message_8ball = 0
  1841.                                 PRINT_NOW ( IN_VEH ) 5000 1 //"Get back into the car and get on with the mission!"
  1842.                                 REMOVE_BLIP radar_blip_coord2_eightball
  1843.                                 ADD_BLIP_FOR_CAR car_eightball radar_blip_car1_eightball
  1844.                                 flag_car_message_8ball = 1
  1845.                         ENDIF
  1846.                        
  1847.                 ELSE
  1848.  
  1849.                         blob_flag = 1
  1850.                
  1851.                         IF flag_car_message_8ball = 1
  1852.                                 REMOVE_BLIP radar_blip_car1_eightball
  1853.                                 ADD_BLIP_FOR_COORD 906.2 -426.0 -100.0 radar_blip_coord2_eightball //Luigis
  1854.                                 flag_car_message_8ball = 0
  1855.                         ENDIF
  1856.                        
  1857.                 ENDIF
  1858.                
  1859.         ENDIF  
  1860.  
  1861.         IF IS_CHAR_DEAD eightball
  1862.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1863.             GOTO mission_eightball_failed
  1864.         ENDIF
  1865.  
  1866.         IF LOCATE_PLAYER_IN_CAR_2D player 902.8 -425.6 15.0 15.0 FALSE
  1867.         AND IS_PLAYER_IN_CAR player car_eightball
  1868.         AND flag_help_8ball2 = 0
  1869.                 PRINT_HELP ( HELP1 ) //Stop in the centre of the red dome."
  1870.                 flag_help_8ball2 = 1
  1871.         ENDIF
  1872.                        
  1873. ENDWHILE
  1874.  
  1875. CLEAR_HELP
  1876.  
  1877. REMOVE_BLIP radar_blip_coord2_eightball
  1878.  
  1879. SWITCH_WIDESCREEN ON
  1880.  
  1881. CLEAR_WANTED_LEVEL player
  1882.  
  1883. SET_POLICE_IGNORE_PLAYER player ON
  1884.  
  1885. SET_EVERYONE_IGNORE_PLAYER player ON
  1886.  
  1887. SET_PLAYER_CONTROL player OFF
  1888.  
  1889. CLEAR_AREA 887.4 -417.3 13.9 10.0 TRUE // This should get rid of any stuff for the cut-scene
  1890.  
  1891. GET_PLAYER_CHAR player script_controlled_player
  1892.  
  1893. CLEAR_CHAR_THREAT_SEARCH script_controlled_player
  1894.  
  1895. SET_CHAR_OBJ_LEAVE_CAR script_controlled_player car_eightball
  1896.  
  1897. SET_CHAR_OBJ_LEAVE_CAR eightball car_eightball
  1898.  
  1899. PLAY_MISSION_AUDIO
  1900.  
  1901. PRINT_NOW ( EBAL_G ) 7000 1 //"Here's Luigi's club. c'mon lets go round the back and use the service door."
  1902.  
  1903.  
  1904. WHILE IS_CHAR_IN_CAR script_controlled_player car_eightball
  1905.                        
  1906.         WAIT 0
  1907.  
  1908.         IF IS_CHAR_DEAD eightball
  1909.                 PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1910.                  GOTO mission_eightball_failed
  1911.         ENDIF
  1912.  
  1913.         IF IS_CAR_DEAD car_eightball
  1914.  
  1915.                 IF IS_CHAR_DEAD eightball
  1916.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1917.                         GOTO mission_eightball_failed
  1918.                 ELSE
  1919.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1920.                         GOTO mission_eightball_failed
  1921.                 ENDIF
  1922.  
  1923.         ELSE
  1924.  
  1925.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1926.                 AND IS_CAR_STOPPED car_eightball
  1927.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1928.                         GOTO mission_eightball_failed
  1929.                 ENDIF
  1930.  
  1931.         ENDIF
  1932.  
  1933.         IF HAS_MISSION_AUDIO_FINISHED
  1934.            CLEAR_THIS_PRINT ( EBAL_G )
  1935.         ENDIF  
  1936.            
  1937. ENDWHILE
  1938.  
  1939. IF IS_CHAR_DEAD eightball
  1940.         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1941.         GOTO mission_eightball_failed
  1942. ENDIF
  1943.  
  1944. WHILE IS_CHAR_IN_CAR eightball car_eightball
  1945.  
  1946.         WAIT 0
  1947.  
  1948.         IF IS_CAR_DEAD car_eightball
  1949.  
  1950.                 IF IS_CHAR_DEAD eightball
  1951.                         PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1952.                         GOTO mission_eightball_failed
  1953.                 ELSE
  1954.                         PRINT_NOW ( WRECKED ) 5000 1 //"The vehicle's wrecked!"
  1955.                         GOTO mission_eightball_failed
  1956.                 ENDIF
  1957.  
  1958.         ELSE
  1959.  
  1960.                 IF IS_CAR_UPSIDEDOWN car_eightball
  1961.                 AND IS_CAR_STOPPED car_eightball
  1962.                         PRINT_NOW ( UPSIDE ) 5000 1 //You've flipped your wheels!"
  1963.                         GOTO mission_eightball_failed
  1964.                 ENDIF
  1965.  
  1966.         ENDIF
  1967.  
  1968.         IF IS_CHAR_DEAD eightball
  1969.                  PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1970.                  GOTO mission_eightball_failed
  1971.         ENDIF
  1972.  
  1973.         IF HAS_MISSION_AUDIO_FINISHED
  1974.            CLEAR_THIS_PRINT ( EBAL_G )
  1975.         ENDIF
  1976.            
  1977. ENDWHILE
  1978.  
  1979. MARK_CAR_AS_NO_LONGER_NEEDED car_eightball
  1980.  
  1981. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT script_controlled_player 897.1 -426.3
  1982.  
  1983. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT eightball 897.3 -424.6
  1984.  
  1985.  
  1986. WHILE NOT HAS_MISSION_AUDIO_FINISHED
  1987.  
  1988.         WAIT 0
  1989.  
  1990.         IF IS_CHAR_DEAD eightball
  1991.                  PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  1992.                  GOTO mission_eightball_failed
  1993.         ENDIF
  1994.  
  1995. ENDWHILE
  1996.  
  1997. CLEAR_THIS_PRINT ( EBAL_G )
  1998.  
  1999. SET_EVERYONE_IGNORE_PLAYER player OFF
  2000.  
  2001. SET_POLICE_IGNORE_PLAYER player OFF
  2002.  
  2003. SET_CHAR_CANT_BE_DRAGGED_OUT eightball FALSE
  2004.  
  2005. CLEAR_HELP
  2006.  
  2007. // ****************************Player and eightball cut-scene at luigi's********************
  2008.  
  2009. GET_GAME_TIMER breakout_timer_start
  2010.  
  2011. breakout_diff = 0
  2012.  
  2013. WHILE NOT CAN_PLAYER_START_MISSION Player
  2014. AND breakout_diff < 5000        //      if player is not in control after 5 secs do the cutscene anyway
  2015.  
  2016.         WAIT 0
  2017.  
  2018.         IF IS_CHAR_DEAD eightball
  2019.                  PRINT_NOW ( EBAL_4 ) 5000 1 //"8-Balls dead!
  2020.                  GOTO mission_eightball_failed
  2021.         ENDIF
  2022.  
  2023.         GET_GAME_TIMER breakout_timer
  2024.  
  2025.         breakout_diff = breakout_timer - breakout_timer_start
  2026.        
  2027. ENDWHILE
  2028.  
  2029. MAKE_PLAYER_SAFE_FOR_CUTSCENE player
  2030.  
  2031. SET_FADING_COLOUR 0 0 0
  2032.  
  2033. DO_FADE 1500 FADE_OUT
  2034.  
  2035. SWITCH_STREAMING OFF
  2036.  
  2037. PRINT_BIG ( LM1 ) 15000 2 //"Luigi's Girls"
  2038.  
  2039. REQUEST_MODEL indhibuild3
  2040. REQUEST_MODEL luigiclubout
  2041. REQUEST_MODEL luigiineerclub
  2042.  
  2043. LOAD_SPECIAL_CHARACTER 2 MICKY
  2044. LOAD_SPECIAL_CHARACTER 3 LUIGI
  2045.  
  2046. LOAD_SPECIAL_MODEL cut_obj1 LUDOOR
  2047. LOAD_SPECIAL_MODEL cut_obj2 MICKYH
  2048. LOAD_SPECIAL_MODEL cut_obj3 EIGHTH
  2049. LOAD_SPECIAL_MODEL cut_obj4     LUIGIH
  2050. LOAD_SPECIAL_MODEL cut_obj5     PLAYERH
  2051.  
  2052. WHILE GET_FADING_STATUS
  2053.  
  2054.         WAIT 0
  2055.  
  2056. ENDWHILE
  2057.  
  2058. LOAD_ALL_MODELS_NOW
  2059.  
  2060. SET_PED_DENSITY_MULTIPLIER 0.0
  2061.  
  2062. CLEAR_AREA_OF_CHARS 926.54 -471.72 1.0 830.76 -257.96 25.0
  2063.  
  2064. IF NOT IS_CHAR_DEAD eightball
  2065.         SET_CHAR_OBJ_WAIT_ON_FOOT eightball
  2066. ENDIF
  2067.  
  2068. SET_CHAR_OBJ_WAIT_ON_FOOT script_controlled_player
  2069.        
  2070. // Cutscene stuff
  2071.  
  2072. WHILE NOT HAS_SPECIAL_CHARACTER_LOADED 2
  2073. OR NOT HAS_SPECIAL_CHARACTER_LOADED 3
  2074. OR NOT HAS_MODEL_LOADED cut_obj1
  2075. OR NOT HAS_MODEL_LOADED cut_obj2
  2076.  
  2077.         WAIT 0
  2078.  
  2079. ENDWHILE
  2080.  
  2081. WHILE NOT HAS_MODEL_LOADED cut_obj3
  2082. OR NOT HAS_MODEL_LOADED cut_obj4
  2083. OR NOT HAS_MODEL_LOADED cut_obj5
  2084. OR NOT HAS_MODEL_LOADED indhibuild3
  2085. OR NOT HAS_MODEL_LOADED luigiclubout
  2086. OR NOT HAS_MODEL_LOADED luigiineerclub
  2087.  
  2088.         WAIT 0
  2089.  
  2090. ENDWHILE
  2091.  
  2092. DELETE_CHAR eightball
  2093.  
  2094. SET_VISIBILITY_OF_CLOSEST_OBJECT_OF_TYPE 890.9 -416.9 15.0 6.0 backdoor FALSE
  2095.  
  2096. LOAD_CUTSCENE l1_lg
  2097.  
  2098. SET_CUTSCENE_OFFSET 900.782 -427.523 13.829
  2099.  
  2100. CREATE_CUTSCENE_OBJECT PED_PLAYER cs_player
  2101.  
  2102. SET_CUTSCENE_ANIM cs_player player
  2103.  
  2104. CREATE_CUTSCENE_OBJECT PED_SPECIAL2 cs_micky
  2105.  
  2106. SET_CUTSCENE_ANIM cs_micky micky
  2107.  
  2108. CREATE_CUTSCENE_OBJECT PED_SPECIAL1 cs_eight
  2109.  
  2110. SET_CUTSCENE_ANIM cs_eight eight2
  2111.  
  2112. CREATE_CUTSCENE_OBJECT PED_SPECIAL3 cs_luigi
  2113.  
  2114. SET_CUTSCENE_ANIM cs_luigi luigi
  2115.  
  2116. CREATE_CUTSCENE_HEAD cs_micky CUT_OBJ2 cs_mickyhead
  2117.  
  2118. SET_CUTSCENE_HEAD_ANIM cs_mickyhead micky
  2119.  
  2120. CREATE_CUTSCENE_HEAD cs_eight CUT_OBJ3 cs_eighthead
  2121.  
  2122. SET_CUTSCENE_HEAD_ANIM cs_eighthead eight
  2123.  
  2124. CREATE_CUTSCENE_HEAD cs_luigi CUT_OBJ4 cs_luigihead
  2125.  
  2126. SET_CUTSCENE_HEAD_ANIM cs_luigihead luigi
  2127.  
  2128. CREATE_CUTSCENE_HEAD cs_player CUT_OBJ5 cs_playerhead
  2129.  
  2130. SET_CUTSCENE_HEAD_ANIM cs_playerhead player
  2131.  
  2132. CREATE_CUTSCENE_OBJECT cut_obj1 cs_ludoor
  2133.  
  2134. SET_CUTSCENE_ANIM cs_ludoor LUDOOR
  2135.  
  2136. CLEAR_AREA 896.6 -426.2 13.9 1.0 TRUE
  2137. SET_PLAYER_COORDINATES player 896.6 -426.2 13.9
  2138.  
  2139. SET_PLAYER_HEADING player 270.0
  2140.  
  2141. TIMERA = 0
  2142.  
  2143. WHILE TIMERA < 3500
  2144.  
  2145.         WAIT 0
  2146.  
  2147. ENDWHILE
  2148.  
  2149. DO_FADE 1500 FADE_IN
  2150.  
  2151. CLEAR_AREA 887.4 -417.3 13.9 10.0 TRUE  // This should get rid of anything in the alleway
  2152.  
  2153. CLEAR_AREA 892.8 -425.5 13.9 3.0 TRUE
  2154.  
  2155. CLEAR_AREA 896.3 -425.6 13.8 3.0 TRUE
  2156.  
  2157. CLEAR_AREA 899.7 -425.7 14.0 0.5 TRUE
  2158.  
  2159.  
  2160. SWITCH_RUBBISH OFF
  2161.  
  2162. START_CUTSCENE
  2163.  
  2164. GET_CUTSCENE_TIME cs_time
  2165.  
  2166. SET_PLAYER_VISIBLE player OFF
  2167.  
  2168. // Displays cutscene text
  2169.  
  2170. WHILE cs_time < 11165
  2171.         WAIT 0
  2172.         GET_CUTSCENE_TIME cs_time
  2173. ENDWHILE
  2174.  
  2175. PRINT_NOW ( EBAL_H ) 10000 1 //"Wait here while I go in and talk to Luigi."
  2176.  
  2177. WHILE cs_time < 13416
  2178.         WAIT 0
  2179.         GET_CUTSCENE_TIME cs_time
  2180. ENDWHILE
  2181.  
  2182. CLEAR_THIS_PRINT ( EBAL_H )
  2183.  
  2184. //PRINT_NOW ( EBAL_I ) 10000 1 //"Da boss will be out to see you shortly..."
  2185.  
  2186. WHILE cs_time < 30834
  2187.         WAIT 0
  2188.         GET_CUTSCENE_TIME cs_time
  2189. ENDWHILE
  2190.  
  2191. PRINT_NOW ( EBAL_J ) 10000 1 //"8-Ball's got some business up stairs."
  2192.  
  2193. WHILE cs_time < 33186
  2194.         WAIT 0
  2195.         GET_CUTSCENE_TIME cs_time
  2196. ENDWHILE
  2197.  
  2198. PRINT_NOW ( EBAL_K ) 10000 1 //"Maybe you can do me a favor."
  2199.  
  2200. WHILE cs_time < 35235
  2201.         WAIT 0
  2202.         GET_CUTSCENE_TIME cs_time
  2203. ENDWHILE
  2204.  
  2205. PRINT_NOW ( EBAL_L ) 10000 1 //"One of my girls needs a ride so grab a car and pick up Misty from the clinic. Then bring her back here"
  2206.  
  2207. WHILE cs_time < 41551
  2208.         WAIT 0
  2209.         GET_CUTSCENE_TIME cs_time
  2210. ENDWHILE
  2211.  
  2212. PRINT_NOW ( EBAL_M ) 10000 1//"Remember no one messes with my girls"
  2213.  
  2214. WHILE cs_time < 45634
  2215.         WAIT 0
  2216.         GET_CUTSCENE_TIME cs_time
  2217. ENDWHILE
  2218.  
  2219. PRINT_NOW ( EBAL_N ) 10000 1//"So keep your hands on the wheel!"
  2220.  
  2221. WHILE cs_time < 47560
  2222.         WAIT 0
  2223.         GET_CUTSCENE_TIME cs_time
  2224. ENDWHILE
  2225.  
  2226. PRINT_NOW ( EBAL_O ) 10000 1 //"If you don't mess this up there might be more work for you."
  2227.  
  2228. WHILE cs_time < 51911
  2229.         WAIT 0
  2230.         GET_CUTSCENE_TIME cs_time
  2231. ENDWHILE
  2232.  
  2233. CLEAR_THIS_PRINT ( EBAL_O )
  2234.  
  2235. WHILE cs_time < 52500
  2236.         WAIT 0
  2237.         GET_CUTSCENE_TIME cs_time
  2238. ENDWHILE
  2239.  
  2240. DO_FADE 1500 FADE_OUT
  2241.  
  2242. WHILE NOT HAS_CUTSCENE_FINISHED
  2243.         WAIT 0
  2244. ENDWHILE
  2245.  
  2246. CLEAR_PRINTS
  2247.  
  2248. WHILE GET_FADING_STATUS
  2249.         WAIT 0
  2250. ENDWHILE
  2251.  
  2252. CLEAR_CUTSCENE
  2253.  
  2254. SET_CAMERA_BEHIND_PLAYER
  2255.  
  2256. WAIT 500
  2257.  
  2258. SWITCH_STREAMING ON
  2259.  
  2260. DO_FADE 1500 FADE_IN
  2261.  
  2262. SWITCH_RUBBISH ON
  2263.  
  2264. LOAD_SCENE 920.3 -425.4 15.0
  2265.  
  2266. SET_VISIBILITY_OF_CLOSEST_OBJECT_OF_TYPE 890.9 -416.9 15.0 6.0 backdoor TRUE
  2267.  
  2268. UNLOAD_SPECIAL_CHARACTER 1
  2269.  
  2270. UNLOAD_SPECIAL_CHARACTER 2
  2271.  
  2272. UNLOAD_SPECIAL_CHARACTER 3
  2273.  
  2274. MARK_MODEL_AS_NO_LONGER_NEEDED cut_obj1
  2275.  
  2276. MARK_MODEL_AS_NO_LONGER_NEEDED cut_obj2
  2277.  
  2278. MARK_MODEL_AS_NO_LONGER_NEEDED cut_obj3
  2279.  
  2280. MARK_MODEL_AS_NO_LONGER_NEEDED cut_obj4
  2281.  
  2282. MARK_MODEL_AS_NO_LONGER_NEEDED cut_obj5
  2283.  
  2284. MARK_MODEL_AS_NO_LONGER_NEEDED indhibuild3
  2285.  
  2286. MARK_MODEL_AS_NO_LONGER_NEEDED luigiclubout
  2287.  
  2288. MARK_MODEL_AS_NO_LONGER_NEEDED luigiineerclub
  2289.  
  2290. SET_PLAYER_CONTROL player ON
  2291.  
  2292. SET_PED_DENSITY_MULTIPLIER 1.0
  2293.  
  2294. // ************************************************END OF CUT_SCENE*************************
  2295.  
  2296.  
  2297. // *****************************************LUIGI'S GIRLS***********************************
  2298.  
  2299. LOAD_SPECIAL_CHARACTER 2 MISTY
  2300.  
  2301. PRINT_NOW ( EBAL_5 ) 5000 1 //"Get a vehicle!"
  2302.  
  2303. // Waiting for the player to be in a car
  2304.  
  2305. WHILE NOT HAS_SPECIAL_CHARACTER_LOADED 2
  2306.  
  2307.         WAIT 0
  2308.                                
  2309. ENDWHILE
  2310.  
  2311. // Creates the first girl
  2312.  
  2313. CREATE_CHAR PEDTYPE_SPECIAL PED_SPECIAL2 1144.6 -592.8 13.9 girl1_lm1
  2314.  
  2315. CLEAR_CHAR_THREAT_SEARCH girl1_lm1
  2316.  
  2317. SET_CHAR_HEADING girl1_lm1 90.0
  2318.  
  2319. SET_ANIM_GROUP_FOR_CHAR girl1_lm1 ANIM_SEXY_WOMANPED
  2320.  
  2321. ADD_BLIP_FOR_CHAR girl1_lm1 radar_blip_ped1_lm1
  2322.  
  2323. flag_blip_on_girl1_lm1 = 1
  2324.  
  2325. LOAD_MISSION_AUDIO LIB_D
  2326.  
  2327. WHILE NOT IS_PLAYER_IN_ANY_CAR player
  2328. OR NOT HAS_MISSION_AUDIO_LOADED
  2329.  
  2330.         WAIT 0
  2331.  
  2332.         IF IS_CHAR_DEAD girl1_lm1
  2333.                 PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2334.                 GOTO mission_eightball_failed
  2335.         ENDIF
  2336.  
  2337.         IF IS_PLAYER_IN_ANY_CAR player
  2338.                 STORE_CAR_PLAYER_IS_IN player car_lm1
  2339.         ENDIF
  2340.  
  2341. ENDWHILE
  2342.  
  2343. GET_CONTROLLER_MODE controlmode
  2344.  
  2345. IF controlmode = 0
  2346.         CLEAR_HELP
  2347.         PRINT_HELP ( RADIO_A ) //"Press the L1 button to cycle through the radio stations."
  2348. ENDIF
  2349.  
  2350. IF controlmode = 1
  2351.         CLEAR_HELP
  2352.         PRINT_HELP ( RADIO_B ) //"Press the SELECT button to cycle through the radio stations.
  2353. ENDIF
  2354.  
  2355. IF controlmode = 2
  2356.         CLEAR_HELP
  2357.         PRINT_HELP ( RADIO_C ) //"Press the L3 button to cycle through the radio stations."
  2358. ENDIF
  2359.  
  2360. IF controlmode = 3
  2361.         CLEAR_HELP
  2362.         PRINT_HELP ( RADIO_D ) //"Press the | button to cycle through the radio stations."
  2363. ENDIF
  2364.  
  2365. PRINT_NOW ( EBAL_6 ) 5000 1 //"Pick up Misty!"
  2366.  
  2367. // Waiting for the player and the girls all to be in the one car
  2368.  
  2369. WHILE flag_girl1_in_car_lm1 = 0
  2370.  
  2371.         WAIT 0
  2372.  
  2373. IF flag_girl_in_group_lm1 = 0
  2374.  
  2375.         IF IS_CHAR_DEAD girl1_lm1
  2376.                 PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2377.                 GOTO mission_eightball_failed
  2378.         ENDIF
  2379.  
  2380.         IF flag_misty_stop = 0
  2381.  
  2382.                 IF LOCATE_PLAYER_IN_CAR_CHAR_2D player girl1_lm1 20.0 20.0 FALSE
  2383.                         PRINT_HELP ( LM1_7 ) //"Stop the vehicle next to Misty and allow her to enter it."
  2384.                         flag_misty_stop = 1
  2385.                 ENDIF
  2386.                                
  2387.         ENDIF
  2388.        
  2389.         IF NOT IS_PLAYER_IN_ANY_CAR player
  2390.  
  2391.                 IF flag_player_had_vehicle_message_lm1 = 0
  2392.                         PRINT_NOW ( IN_VEH2 ) 5000 1 //"Get a vehicle and get on with the mission!"
  2393.  
  2394.                         IF flag_blip_on_girl1_lm1 = 1
  2395.                                 REMOVE_BLIP radar_blip_ped1_lm1
  2396.                                 flag_blip_on_girl1_lm1 = 0
  2397.                         ENDIF
  2398.  
  2399.                         flag_player_had_vehicle_message_lm1 = 1
  2400.                 ENDIF
  2401.  
  2402.         ELSE
  2403.                
  2404.                 STORE_CAR_PLAYER_IS_IN player car_lm1
  2405.  
  2406.                 IF flag_player_had_vehicle_message_lm1 = 1
  2407.                         PRINT_NOW ( EBAL_6 ) 5000 1 //"Pick up Misty!"
  2408.  
  2409.                         IF flag_blip_on_girl1_lm1 = 0
  2410.                                 ADD_BLIP_FOR_CHAR girl1_lm1 radar_blip_ped1_lm1
  2411.                                 flag_blip_on_girl1_lm1 = 1
  2412.                         ENDIF
  2413.  
  2414.                         flag_player_had_vehicle_message_lm1 = 0
  2415.                 ENDIF
  2416.                
  2417.         ENDIF
  2418.          
  2419.                 IF IS_PLAYER_IN_ANY_CAR player
  2420.                         STORE_CAR_PLAYER_IS_IN player car_lm1
  2421.  
  2422.                         IF LOCATE_PLAYER_IN_CAR_CHAR_2D player girl1_lm1 8.0 8.0 FALSE
  2423.  
  2424.                                 IF IS_PLAYER_STOPPED player
  2425.                                                                                                        
  2426.                                         SET_CHAR_OBJ_ENTER_CAR_AS_PASSENGER girl1_lm1 car_lm1
  2427.                                        
  2428.                                                 WHILE NOT IS_CHAR_IN_CAR girl1_lm1 car_lm1
  2429.                                                 OR NOT IS_PLAYER_IN_CAR player car_lm1
  2430.  
  2431.                                                         WAIT 0
  2432.  
  2433.                                                         IF IS_CHAR_DEAD girl1_lm1
  2434.                                                                 PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2435.                                                                 GOTO mission_eightball_failed
  2436.                                                         ENDIF
  2437.  
  2438.                                                         IF IS_CAR_DEAD car_lm1
  2439.                                                                
  2440.                                                                 IF IS_CHAR_DEAD girl1_lm1
  2441.                                                                         PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2442.                                                                         GOTO mission_eightball_failed
  2443.                                                                 ELSE
  2444.                                                                         PRINT_NOW ( WRECKED ) 5000 1 //"The Vehicles wrecked"
  2445.                                                                         GOTO mission_eightball_failed
  2446.                                                                 ENDIF
  2447.  
  2448.                                                         ENDIF
  2449.                                                                
  2450.                                                         IF IS_CHAR_IN_CAR girl1_lm1 car_lm1
  2451.                                                                 SET_CHAR_CANT_BE_DRAGGED_OUT girl1_lm1 TRUE
  2452.                                                         ENDIF
  2453.                                                                                                                
  2454.                                                         IF NOT IS_PLAYER_IN_CAR player car_lm1
  2455.  
  2456.                                                                 IF flag_player_had_vehicle_message_lm1 = 0
  2457.                                                                         PRINT_NOW ( IN_VEH ) 5000 1 //"Get a vehicle and get on with the mission!"
  2458.                                                                                
  2459.                                                                                 IF flag_blip_on_girl1_lm1 = 1
  2460.                                                                                         REMOVE_BLIP radar_blip_ped1_lm1
  2461.                                                                                         ADD_BLIP_FOR_CAR car_lm1 radar_blip_car1_lm1
  2462.                                                                                         flag_blip_on_girl1_lm1 = 0
  2463.                                                                                 ENDIF
  2464.  
  2465.                                                                         flag_player_had_vehicle_message_lm1 = 1
  2466.                                                                 ENDIF
  2467.  
  2468.                                                         ELSE
  2469.  
  2470.                                                                 IF flag_player_had_vehicle_message_lm1 = 1
  2471.  
  2472.                                                                         PRINT_NOW ( EBAL_6 ) 5000 1 //"Pick up Misty!"
  2473.  
  2474.                                                                         IF flag_blip_on_girl1_lm1 = 0
  2475.                                                                                 ADD_BLIP_FOR_CHAR girl1_lm1 radar_blip_ped1_lm1
  2476.                                                                                 REMOVE_BLIP radar_blip_car1_lm1
  2477.                                                                                 flag_blip_on_girl1_lm1 = 1
  2478.                                                                         ENDIF
  2479.                                                                                                                                                
  2480.                                                                         flag_player_had_vehicle_message_lm1 = 0
  2481.                                                                 ENDIF
  2482.                
  2483.                                                         ENDIF
  2484.                                                        
  2485.                                                 ENDWHILE
  2486.                                                 REMOVE_BLIP radar_blip_ped1_lm1
  2487.                                                 REMOVE_BLIP radar_blip_car1_lm1
  2488.                                                 flag_blip_on_girl1_lm1 = 0
  2489.                                                 flag_girl_in_group_lm1 = 1
  2490.                                 ENDIF
  2491.  
  2492.                         ENDIF
  2493.  
  2494.                 ENDIF
  2495.  
  2496. ENDIF
  2497.  
  2498.         IF flag_girl_in_group_lm1 = 1
  2499.  
  2500.                 IF IS_CHAR_DEAD girl1_lm1
  2501.                         PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2502.                         GOTO mission_eightball_failed
  2503.                 ENDIF
  2504.  
  2505.                 IF IS_CAR_DEAD car_lm1
  2506.                                                                
  2507.                         IF IS_CHAR_DEAD girl1_lm1
  2508.                                 PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2509.                                 GOTO mission_eightball_failed
  2510.                         ELSE
  2511.                                 PRINT_NOW ( WRECKED ) 5000 1 //"The Vehicles wrecked"
  2512.                                 GOTO mission_eightball_failed
  2513.                         ENDIF
  2514.  
  2515.                 ENDIF
  2516.  
  2517.                 IF NOT IS_PLAYER_IN_CAR player car_lm1
  2518.  
  2519.                         IF flag_player_had_car_message_lm1 = 0
  2520.                                 PRINT_NOW ( IN_VEH ) 5000 1 //Get into the car and get on with the mission"
  2521.                                 ADD_BLIP_FOR_CAR car_lm1 radar_blip_car1_lm1
  2522.                                 flag_player_had_car_message_lm1 = 1
  2523.                         ENDIF
  2524.  
  2525.                 ENDIF
  2526.  
  2527.                 IF IS_PLAYER_IN_CAR player car_lm1
  2528.  
  2529.                         IF IS_CHAR_IN_CAR girl1_lm1 car_lm1
  2530.                                 PRINT_NOW ( LM1_9 ) 10000 1 //"Hey I'm Misty!"
  2531.                                 PLAY_MISSION_AUDIO
  2532.                                 SET_CHAR_CANT_BE_DRAGGED_OUT girl1_lm1 FALSE
  2533.                                 flag_girl1_in_car_lm1 = 1
  2534.                         ENDIF
  2535.                
  2536.                         IF flag_player_had_car_message_lm1 = 1
  2537.                                 REMOVE_BLIP radar_blip_car1_lm1
  2538.                                 flag_player_had_car_message_lm1 = 0
  2539.                         ENDIF
  2540.                        
  2541.                 ENDIF
  2542.                
  2543.         ENDIF
  2544.              
  2545. ENDWHILE
  2546.  
  2547. REMOVE_BLIP radar_blip_ped1_lm1
  2548.  
  2549. SET_PLAYER_AS_LEADER girl1_lm1 player
  2550.  
  2551. WHILE NOT HAS_MISSION_AUDIO_FINISHED
  2552.  
  2553.         WAIT 0
  2554.  
  2555.         IF IS_CHAR_DEAD girl1_lm1
  2556.                 PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2557.                 GOTO mission_eightball_failed
  2558.         ELSE
  2559.                
  2560.                 IF NOT IS_CHAR_IN_PLAYERS_GROUP girl1_lm1 player
  2561.                 AND flag_blip_on_girl1_lm1 = 0
  2562.                         PRINT_NOW ( HEY4 ) 5000 1 //"You have left Misty behind go and get her!"
  2563.                         ADD_BLIP_FOR_CHAR girl1_lm1 radar_blip_ped1_lm1
  2564.                         flag_blip_on_girl1_lm1 = 1
  2565.                 ENDIF
  2566.                
  2567.                 IF LOCATE_PLAYER_ANY_MEANS_CHAR_2D player girl1_lm1 8.0 8.0 FALSE
  2568.                 AND flag_blip_on_girl1_lm1 = 1
  2569.                         SET_PLAYER_AS_LEADER girl1_lm1 player
  2570.                         //PRINT_NOW ( LM1_2 ) 7000 1 //"Hi take us to the Red Light District please, we'll be ever so 'grateful'!"
  2571.                         REMOVE_BLIP radar_blip_ped1_lm1
  2572.                         flag_blip_on_girl1_lm1 = 0
  2573.                 ENDIF
  2574.  
  2575.         ENDIF
  2576.  
  2577.         IF IS_CAR_DEAD car_lm1
  2578.                                                                
  2579.                 IF IS_CHAR_DEAD girl1_lm1
  2580.                         PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2581.                         GOTO mission_eightball_failed
  2582.                 ELSE
  2583.                         PRINT_NOW ( WRECKED ) 5000 1 //"The Vehicles wrecked"
  2584.                         GOTO mission_eightball_failed
  2585.                 ENDIF
  2586.  
  2587.         ENDIF
  2588.  
  2589. ENDWHILE
  2590.  
  2591. CLEAR_THIS_PRINT ( LM1_9 )
  2592.        
  2593. PRINT_NOW ( LM1_2 ) 7000 1 //"Hi take us to the Red Light District please, we'll be ever so 'grateful'!"
  2594.  
  2595. ADD_BLIP_FOR_COORD 906.2 -426.0 -100.0 radar_blip_coord1_lm1
  2596.  
  2597. blob_flag = 1
  2598.  
  2599. PRINT_HELP ( LOOK_A ) //"Press and hold the ~h~L2 button to look left~w~ while in a vehicle."
  2600.  
  2601. timera = 0
  2602.  
  2603. // waiting for the player to get to luigi's
  2604.  
  2605. WHILE NOT IS_CHAR_STOPPED_IN_AREA_3D girl1_lm1 903.8 -420.2 14.0 908.3 -431.1 18.0 blob_flag
  2606. OR NOT IS_PLAYER_STOPPED_IN_AREA_3D player 903.8 -420.2 14.0 908.3 -431.1 18.0 FALSE  
  2607.            
  2608.         WAIT 0
  2609.  
  2610.         IF flag_player_had_camera_message_8ball = 0
  2611.                
  2612.                 GET_CONTROLLER_MODE controlmode
  2613.  
  2614.                 IF timera > 10000
  2615.  
  2616.                         IF controlmode = 0
  2617.                                 PRINT_HELP ( CAM_A ) //"Press the ~h~SELECT button~w~ to change ~h~camera ~w~modes when on foot or in a vehicle."
  2618.                                 flag_player_had_camera_message_8ball = 1
  2619.                         ENDIF  
  2620.  
  2621.                         IF controlmode = 0
  2622.                                 PRINT_HELP ( CAM_B ) //"Press the ~h~directional button up~w~ and ~h~down~w~ to change ~h~camera ~w~modes when on foot or in a vehicle."
  2623.                                 flag_player_had_camera_message_8ball = 1
  2624.                         ENDIF
  2625.  
  2626.                         IF controlmode = 0
  2627.                                 PRINT_HELP ( CAM_A ) //"Press the ~h~SELECT button~w~ to change ~h~camera ~w~modes when on foot or in a vehicle."
  2628.                                 flag_player_had_camera_message_8ball = 1
  2629.                         ENDIF
  2630.  
  2631.                         IF controlmode = 0
  2632.                                 PRINT_HELP ( CAM_A ) //"Press the ~h~SELECT button~w~ to change ~h~camera ~w~modes when on foot or in a vehicle."
  2633.                                 flag_player_had_camera_message_8ball = 1
  2634.                         ENDIF
  2635.  
  2636.                 ENDIF
  2637.  
  2638.         ENDIF
  2639.        
  2640.         IF IS_CHAR_DEAD girl1_lm1
  2641.                 PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2642.                 GOTO mission_eightball_failed
  2643.         ELSE
  2644.                
  2645.                 IF NOT IS_CHAR_IN_PLAYERS_GROUP girl1_lm1 player
  2646.                 AND flag_blip_on_girl1_lm1 = 0
  2647.                         PRINT_NOW ( HEY4 ) 5000 1 //"You have left Misty behind go and get her!"
  2648.                         ADD_BLIP_FOR_CHAR girl1_lm1 radar_blip_ped1_lm1
  2649.                         REMOVE_BLIP radar_blip_coord1_lm1
  2650.                         blob_flag = 0
  2651.                         flag_blip_on_girl1_lm1 = 1
  2652.                 ENDIF
  2653.                
  2654.                 IF LOCATE_PLAYER_ANY_MEANS_CHAR_2D player girl1_lm1 8.0 8.0 FALSE
  2655.                 AND flag_blip_on_girl1_lm1 = 1
  2656.                         SET_PLAYER_AS_LEADER girl1_lm1 player
  2657.                         PRINT_NOW ( LM1_2 ) 7000 1 //"Hi take us to the Red Light District please, we'll be ever so 'grateful'!"
  2658.                         ADD_BLIP_FOR_COORD 906.2 -426.0 -100.0 radar_blip_coord1_lm1
  2659.                         REMOVE_BLIP radar_blip_ped1_lm1
  2660.                         blob_flag = 1
  2661.                         flag_blip_on_girl1_lm1 = 0
  2662.                 ENDIF
  2663.  
  2664.         ENDIF
  2665.    
  2666. ENDWHILE
  2667.  
  2668. REMOVE_BLIP radar_blip_coord1_lm1
  2669.  
  2670. LEAVE_GROUP girl1_lm1
  2671.  
  2672. // *********************************MISTY CUT AT END****************************************
  2673.  
  2674. SWITCH_WIDESCREEN ON
  2675.  
  2676. SET_PLAYER_CONTROL player OFF
  2677.  
  2678. CLEAR_WANTED_LEVEL player
  2679.  
  2680. SET_POLICE_IGNORE_PLAYER player ON
  2681.  
  2682. SET_EVERYONE_IGNORE_PLAYER player ON
  2683.  
  2684. CLEAR_AREA 887.4 -417.3 13.9 10.0 TRUE // This should get rid of any stuff for the cut-scene
  2685.  
  2686. REQUEST_MODEL indhibuild3
  2687. REQUEST_MODEL luigiclubout
  2688. REQUEST_MODEL luigiineerclub
  2689.  
  2690. IF IS_CHAR_IN_ANY_CAR girl1_lm1
  2691.        
  2692.         SET_CHAR_CANT_BE_DRAGGED_OUT girl1_lm1 FALSE
  2693.  
  2694.         STORE_CAR_CHAR_IS_IN girl1_lm1 car_lm1
  2695.  
  2696.         SET_CHAR_OBJ_LEAVE_CAR girl1_lm1 car_lm1
  2697.  
  2698.         WHILE IS_CHAR_IN_ANY_CAR girl1_lm1
  2699.                        
  2700.                 WAIT 0
  2701.  
  2702.                 IF IS_CHAR_DEAD girl1_lm1
  2703.                         PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2704.                         GOTO mission_eightball_failed
  2705.                 ENDIF
  2706.          
  2707.         ENDWHILE
  2708.  
  2709. ENDIF
  2710.  
  2711. WHILE NOT HAS_MODEL_LOADED indhibuild3
  2712. OR NOT HAS_MODEL_LOADED luigiclubout
  2713. OR NOT HAS_MODEL_LOADED luigiineerclub
  2714.  
  2715.         WAIT 0
  2716.  
  2717.         IF IS_CHAR_DEAD girl1_lm1
  2718.                 PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2719.                 GOTO mission_eightball_failed
  2720.         ENDIF
  2721.  
  2722. ENDWHILE
  2723.  
  2724. // Misty walks to the top of the alleyway
  2725.  
  2726. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT girl1_lm1 900.17 -425.4
  2727.  
  2728. timerb = 0
  2729.  
  2730. WHILE timerb < 1000
  2731.  
  2732.         WAIT 0
  2733.        
  2734.         IF IS_CHAR_DEAD girl1_lm1
  2735.                 PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2736.                 GOTO mission_eightball_failed
  2737.         ENDIF
  2738.  
  2739. ENDWHILE
  2740.  
  2741. IF IS_CHAR_DEAD girl1_lm1
  2742.         PRINT_NOW ( MISTY1 ) 5000 1 //"Misty's dead!
  2743.         GOTO mission_eightball_failed
  2744. ENDIF
  2745.  
  2746. SET_CHAR_COORDINATES girl1_lm1 898.9 -425.8 13.9
  2747. SET_CHAR_HEADING girl1_lm1 90.0
  2748.  
  2749. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT girl1_lm1 887.1 -425.22
  2750.  
  2751. SWITCH_WIDESCREEN ON
  2752. SET_FIXED_CAMERA_POSITION 882.6 -425.6 14.4 0.0 0.0 0.0
  2753.  
  2754. POINT_CAMERA_AT_POINT 890.2 -421.1 15.0 jump_cut
  2755.  
  2756. PRINT_WITH_NUMBER_BIG ( M_PASS ) 1500 5000 1 //"Mission Passed!"
  2757. ADD_SCORE player 1500
  2758. PLAY_MISSION_PASSED_TUNE 1 //plays the mission complete tune
  2759.  
  2760. timerb = 0
  2761.  
  2762. WHILE timerb < 5000
  2763.  
  2764.         WAIT 0
  2765.                    
  2766. ENDWHILE
  2767.  
  2768. SET_FADING_COLOUR 0 0 0
  2769.  
  2770. DO_FADE 1000 FADE_OUT
  2771.  
  2772. WHILE GET_FADING_STATUS
  2773.  
  2774.         WAIT 0
  2775.  
  2776. ENDWHILE
  2777.  
  2778. WAIT 0
  2779.  
  2780. SET_CAMERA_BEHIND_PLAYER
  2781.  
  2782. WAIT 0
  2783.  
  2784. SWITCH_WIDESCREEN OFF
  2785.  
  2786. WAIT 0
  2787.  
  2788. RESTORE_CAMERA_JUMPCUT
  2789.  
  2790. WAIT 750
  2791.  
  2792. DO_FADE 250 FADE_IN
  2793.  
  2794. SET_PLAYER_CONTROL player ON
  2795.  
  2796. SET_POLICE_IGNORE_PLAYER player OFF
  2797.  
  2798. SET_EVERYONE_IGNORE_PLAYER player OFF
  2799.  
  2800. GOTO mission_eightball_passed
  2801.  
  2802.  
  2803.  
  2804. // Mission 8ball failed
  2805.  
  2806. mission_eightball_failed:
  2807.  
  2808. PRINT_BIG ( M_FAIL ) 5000 1 //"Mission Failed!"
  2809.  
  2810. flag_eightball_mission_launched = 0
  2811.  
  2812. IF flag_reached_hideout = 0
  2813.         RESTART_CRITICAL_MISSION 811.90 -939.95 35.8 180.0 // New bridge restart       
  2814. ELSE
  2815.         RESTART_CRITICAL_MISSION 883.5 -308.2 7.6 90.0  // Player hideout
  2816. ENDIF
  2817.  
  2818. MISSION_HAS_FINISHED    //      marks models as no longer needed so that they can be deleted before the player is teleported
  2819.  
  2820. WHILE NOT IS_PLAYER_PLAYING player
  2821.  
  2822.         WAIT 0
  2823.                
  2824. ENDWHILE
  2825.  
  2826. RETURN
  2827.  
  2828.  
  2829. // mission eightball passed
  2830.  
  2831. mission_eightball_passed:
  2832.  
  2833. CANCEL_OVERRIDE_RESTART
  2834. flag_eightball_mission_passed = 1
  2835. REGISTER_MISSION_PASSED ( LM1 )
  2836. PLAYER_MADE_PROGRESS 1
  2837. flag_luigi_mission1_passed = 1
  2838. CLEAR_WANTED_LEVEL player
  2839. ADD_SPRITE_BLIP_FOR_CONTACT_POINT 892.8 -425.8 13.9 RADAR_SPRITE_LUIGI luigi_contact_blip  // New blip down alleyway
  2840. START_NEW_SCRIPT luigi_mission2_loop
  2841. START_NEW_SCRIPT blob_help_loop
  2842. START_NEW_SCRIPT luigi_message
  2843. RETURN
  2844. }
  2845.  
  2846. // mission cleanup
  2847.  
  2848. mission_cleanup_eightball:
  2849.  
  2850. flag_player_on_mission = 0
  2851. flag_player_on_eightball_mission = 0
  2852. REMOVE_PARTICLE_EFFECTS_IN_AREA 804.02 -948.03 30.0 765.15 -924.32 50.0
  2853. REMOVE_SOUND fire_sound_8ball
  2854. SET_FADING_COLOUR 0 0 0
  2855. MARK_MODEL_AS_NO_LONGER_NEEDED indhibuild3
  2856. MARK_MODEL_AS_NO_LONGER_NEEDED luigiclubout
  2857. MARK_MODEL_AS_NO_LONGER_NEEDED luigiineerclub
  2858. MARK_MODEL_AS_NO_LONGER_NEEDED CAR_KURUMA
  2859. REMOVE_BLIP radar_blip_coord1_eightball
  2860. REMOVE_BLIP radar_blip_coord2_eightball
  2861. REMOVE_BLIP radar_blip_car1_eightball
  2862. DELETE_CHAR eightball
  2863. DELETE_CHAR girl1_lm1
  2864. REMOVE_BLIP radar_blip_coord1_lm1
  2865. REMOVE_BLIP radar_blip_ped1_lm1
  2866. REMOVE_BLIP radar_blip_car1_lm1
  2867. FLASH_HUD_OBJECT -1
  2868.  
  2869. IF NOT IS_CAR_DEAD cop_car1_8ball
  2870.         MARK_CAR_AS_NO_LONGER_NEEDED cop_car1_8ball
  2871. ENDIF
  2872.  
  2873. IF NOT IS_CAR_DEAD cop_car2_8ball
  2874.         MARK_CAR_AS_NO_LONGER_NEEDED cop_car2_8ball
  2875. ENDIF
  2876.  
  2877. IF NOT IS_CHAR_DEAD girl1_lm1
  2878.         SET_CHAR_CANT_BE_DRAGGED_OUT girl1_lm1 FALSE
  2879. ENDIF
  2880.  
  2881. MISSION_HAS_FINISHED
  2882. RETURN
  2883.                
  2884.  
  2885. car_gen_start_8ball:
  2886.  
  2887. // Switches on the car generators from Greasy Joes and Fish Factory
  2888.  
  2889. SWITCH_CAR_GENERATOR gen_car44 101
  2890.  
  2891. SWITCH_CAR_GENERATOR gen_car45 101
  2892.  
  2893. SWITCH_CAR_GENERATOR gen_car46 101
  2894.  
  2895. SWITCH_CAR_GENERATOR gen_car47 101
  2896.  
  2897. SWITCH_CAR_GENERATOR gen_car48 101
  2898.  
  2899. SWITCH_CAR_GENERATOR gen_car49 101
  2900.  
  2901. // switches on the car generators from the fuzz ball
  2902.  
  2903. SWITCH_CAR_GENERATOR gen_car28 101
  2904.  
  2905. SWITCH_CAR_GENERATOR gen_car29 101
  2906.  
  2907. SWITCH_CAR_GENERATOR gen_car1 101
  2908.  
  2909. SWITCH_CAR_GENERATOR gen_car2 101
  2910.  
  2911. SWITCH_CAR_GENERATOR gen_car3 101
  2912.          
  2913. SWITCH_CAR_GENERATOR gen_car4 101
  2914.  
  2915. SWITCH_CAR_GENERATOR gen_car5 101
  2916.  
  2917. SWITCH_CAR_GENERATOR gen_car6 101
  2918.  
  2919. SWITCH_CAR_GENERATOR gen_car6 101
  2920.  
  2921. SWITCH_CAR_GENERATOR gen_car9 101
  2922.  
  2923. SWITCH_CAR_GENERATOR gen_car10 101
  2924.  
  2925. SWITCH_CAR_GENERATOR gen_car11 101
  2926.  
  2927. SWITCH_CAR_GENERATOR gen_car12 101
  2928.  
  2929. SWITCH_CAR_GENERATOR gen_car13 101
  2930.  
  2931. SWITCH_CAR_GENERATOR gen_car15 101
  2932.  
  2933. SWITCH_CAR_GENERATOR gen_car16 101
  2934.  
  2935. SWITCH_CAR_GENERATOR gen_car17 101
  2936.  
  2937. SWITCH_CAR_GENERATOR gen_car18 101
  2938.  
  2939. SWITCH_CAR_GENERATOR gen_car57 101
  2940.  
  2941. SWITCH_CAR_GENERATOR gen_car58 101
  2942.  
  2943. SWITCH_CAR_GENERATOR gen_car19 101
  2944.  
  2945. SWITCH_CAR_GENERATOR gen_car20 101
  2946.  
  2947. SWITCH_CAR_GENERATOR gen_car21 101
  2948.  
  2949. SWITCH_CAR_GENERATOR gen_car22 101
  2950.  
  2951. SWITCH_CAR_GENERATOR gen_car24 101
  2952.  
  2953. SWITCH_CAR_GENERATOR gen_car25 101
  2954.  
  2955. SWITCH_CAR_GENERATOR gen_car59 101
  2956.  
  2957. SWITCH_CAR_GENERATOR gen_car23 101
  2958.  
  2959. SWITCH_CAR_GENERATOR gen_car30 101
  2960.  
  2961. SWITCH_CAR_GENERATOR gen_car31 101
  2962.  
  2963. SWITCH_CAR_GENERATOR gen_car53 101
  2964.  
  2965. SWITCH_CAR_GENERATOR gen_car8 101
  2966.  
  2967. SWITCH_CAR_GENERATOR gen_car32 101
  2968.  
  2969. SWITCH_CAR_GENERATOR gen_car34 101
  2970.  
  2971. SWITCH_CAR_GENERATOR gen_car36 101
  2972.  
  2973. SWITCH_CAR_GENERATOR gen_car37 101
  2974.  
  2975. SWITCH_CAR_GENERATOR gen_car38 101
  2976.  
  2977. SWITCH_CAR_GENERATOR gen_car40 101     
  2978.  
  2979. SWITCH_CAR_GENERATOR gen_car41 101
  2980.  
  2981. SWITCH_CAR_GENERATOR gen_car42 101
  2982.  
  2983. SWITCH_CAR_GENERATOR gen_car43 101
  2984.  
  2985. SWITCH_CAR_GENERATOR gen_car54 101
  2986.  
  2987. SWITCH_CAR_GENERATOR gen_car55 101
  2988.  
  2989. SWITCH_CAR_GENERATOR gen_car56 101
  2990.  
  2991. SWITCH_CAR_GENERATOR gen_car33 101
  2992.          
  2993. SWITCH_CAR_GENERATOR gen_car51 101                                                                 
  2994.  
  2995. SWITCH_CAR_GENERATOR gen_car52 101
  2996.  
  2997. SWITCH_CAR_GENERATOR gen_car64 101
  2998.  
  2999. SWITCH_CAR_GENERATOR com_car1 101
  3000.  
  3001. SWITCH_CAR_GENERATOR com_car2 101
  3002.  
  3003. SWITCH_CAR_GENERATOR com_car25 101
  3004.  
  3005. SWITCH_CAR_GENERATOR com_car26 101
  3006.  
  3007. SWITCH_CAR_GENERATOR com_car3 101
  3008.  
  3009. SWITCH_CAR_GENERATOR com_car4 101
  3010.  
  3011. SWITCH_CAR_GENERATOR com_car5 101
  3012.  
  3013. SWITCH_CAR_GENERATOR com_car6 101
  3014.  
  3015. SWITCH_CAR_GENERATOR com_car7 101
  3016.  
  3017. SWITCH_CAR_GENERATOR com_car8 101
  3018.  
  3019. SWITCH_CAR_GENERATOR com_car9 101
  3020.  
  3021. SWITCH_CAR_GENERATOR com_car10 101
  3022.  
  3023. SWITCH_CAR_GENERATOR com_car11 101
  3024.  
  3025. SWITCH_CAR_GENERATOR com_car12 101
  3026.  
  3027. SWITCH_CAR_GENERATOR com_car20 101
  3028.  
  3029. SWITCH_CAR_GENERATOR com_car21 101
  3030.  
  3031. SWITCH_CAR_GENERATOR com_car27 101
  3032.  
  3033. SWITCH_CAR_GENERATOR com_car28 101
  3034.  
  3035. SWITCH_CAR_GENERATOR com_car29 101
  3036.  
  3037. SWITCH_CAR_GENERATOR com_car30 101
  3038.  
  3039. SWITCH_CAR_GENERATOR com_car31 101
  3040.  
  3041. SWITCH_CAR_GENERATOR com_car32 101
  3042.  
  3043. SWITCH_CAR_GENERATOR com_car33 101
  3044.  
  3045. SWITCH_CAR_GENERATOR com_car34 101
  3046.  
  3047. SWITCH_CAR_GENERATOR com_car35 101
  3048.  
  3049. SWITCH_CAR_GENERATOR com_car36 101
  3050.  
  3051. SWITCH_CAR_GENERATOR com_car37 101
  3052.  
  3053. SWITCH_CAR_GENERATOR com_car38 101
  3054.  
  3055. SWITCH_CAR_GENERATOR com_car39 101
  3056.  
  3057. SWITCH_CAR_GENERATOR com_car40 101
  3058.  
  3059. SWITCH_CAR_GENERATOR gen_car60 0
  3060.  
  3061. SWITCH_CAR_GENERATOR gen_car61 0
  3062.  
  3063. SWITCH_CAR_GENERATOR gen_car62 0
  3064.  
  3065. SWITCH_CAR_GENERATOR com_car41 101
  3066.  
  3067. SWITCH_CAR_GENERATOR com_car42 101
  3068.  
  3069. SWITCH_CAR_GENERATOR com_car43 101
  3070.  
  3071. SWITCH_CAR_GENERATOR com_car44 101
  3072.  
  3073. SWITCH_CAR_GENERATOR com_car45 101
  3074.  
  3075. SWITCH_CAR_GENERATOR gen_car35 101
  3076.  
  3077. SWITCH_CAR_GENERATOR com_car15 101
  3078.  
  3079. SWITCH_CAR_GENERATOR com_car16 101
  3080.  
  3081. SWITCH_CAR_GENERATOR com_car17 101
  3082.  
  3083. SWITCH_CAR_GENERATOR com_car19 101
  3084.  
  3085. SWITCH_CAR_GENERATOR com_car24 101
  3086.  
  3087. SWITCH_CAR_GENERATOR com_car13 101
  3088.  
  3089. SWITCH_CAR_GENERATOR com_car23 0
  3090.  
  3091. SWITCH_CAR_GENERATOR com_car14 101
  3092.  
  3093. SWITCH_CAR_GENERATOR com_car22 101
  3094.  
  3095. SWITCH_CAR_GENERATOR phil_car 101
  3096.  
  3097. SWITCH_CAR_GENERATOR com_car46 101
  3098.  
  3099. SWITCH_CAR_GENERATOR com_car47 101
  3100.  
  3101. SWITCH_CAR_GENERATOR com_car48 101
  3102.  
  3103. SWITCH_CAR_GENERATOR com_car49 101
  3104.  
  3105. SWITCH_CAR_GENERATOR special_tank 0
  3106.  
  3107. SWITCH_CAR_GENERATOR sub_car1 101
  3108.  
  3109. SWITCH_CAR_GENERATOR sub_car2 101
  3110.  
  3111. SWITCH_CAR_GENERATOR sub_car3 101
  3112.  
  3113. SWITCH_CAR_GENERATOR sub_car4 101
  3114.  
  3115. SWITCH_CAR_GENERATOR sub_car5 101
  3116.  
  3117. SWITCH_CAR_GENERATOR sub_car6 101
  3118.  
  3119. SWITCH_CAR_GENERATOR sub_car7 101
  3120.  
  3121. SWITCH_CAR_GENERATOR sub_car25 101       
  3122.  
  3123. SWITCH_CAR_GENERATOR gen_car63 0
  3124.  
  3125. SWITCH_CAR_GENERATOR sub_car40 101
  3126.  
  3127. SWITCH_CAR_GENERATOR sub_car41 101
  3128.  
  3129. SWITCH_CAR_GENERATOR sub_car42 101
  3130.  
  3131. SWITCH_CAR_GENERATOR sub_car43 101
  3132.  
  3133. SWITCH_CAR_GENERATOR sub_car44 101
  3134.  
  3135. SWITCH_CAR_GENERATOR sub_car45 101
  3136.  
  3137. SWITCH_CAR_GENERATOR sub_car46 101
  3138.  
  3139. SWITCH_CAR_GENERATOR sub_car8 101        
  3140.  
  3141. SWITCH_CAR_GENERATOR sub_car9 101        
  3142.  
  3143. SWITCH_CAR_GENERATOR sub_car10 101       
  3144.  
  3145. SWITCH_CAR_GENERATOR sub_car11 101       
  3146.  
  3147. SWITCH_CAR_GENERATOR sub_car12 101       
  3148.  
  3149. SWITCH_CAR_GENERATOR sub_car13 101       
  3150.  
  3151. SWITCH_CAR_GENERATOR sub_car14 101       
  3152.  
  3153. SWITCH_CAR_GENERATOR sub_car15 101       
  3154.  
  3155. SWITCH_CAR_GENERATOR sub_car16 101       
  3156.  
  3157. SWITCH_CAR_GENERATOR sub_car19 101       
  3158.  
  3159. SWITCH_CAR_GENERATOR sub_car20 101       
  3160.  
  3161. SWITCH_CAR_GENERATOR sub_car17 101       
  3162.  
  3163. SWITCH_CAR_GENERATOR sub_car18 101       
  3164.  
  3165. SWITCH_CAR_GENERATOR sub_car21 101       
  3166.  
  3167. SWITCH_CAR_GENERATOR sub_car22 101       
  3168.  
  3169. SWITCH_CAR_GENERATOR sub_car23 101       
  3170.  
  3171. SWITCH_CAR_GENERATOR sub_car24 101       
  3172.  
  3173. SWITCH_CAR_GENERATOR sub_car30 101
  3174.  
  3175. SWITCH_CAR_GENERATOR sub_car31 101
  3176.  
  3177. SWITCH_CAR_GENERATOR rc_van1 101
  3178.  
  3179. SWITCH_CAR_GENERATOR rc_van2 101
  3180.  
  3181. SWITCH_CAR_GENERATOR rc_van3 101
  3182.  
  3183. SWITCH_CAR_GENERATOR rc_van4 101
  3184.  
  3185. RETURN