Advertisement
KoalRobertson

Hooligan Highway

Sep 10th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. //THE SIMPSONS HIT AND RUN - 22 SHORT MISSIONS ABOUT SPRINGFIELD
  2. //MISSION 15 - HOOLIGAN HIGHWAY
  3. //BY KOAL ROBERTSON
  4. //10/9/18
  5.  
  6.  
  7. SelectMission("m1");
  8.  
  9. SetMissionResetPlayerInCar("m1_nelson_start");
  10. SetDynaLoadData("l3z1.p3d;l3r1.p3d;l3r5.p3d;l3r5_dam.p3d;");
  11. InitLevelPlayerVehicle("bart_v","m1_nelson_start","OTHER");
  12.  
  13. UsePedGroup(0);
  14.  
  15. SetForcedCar();
  16.  
  17. AddStage(5); //RACE DOLPH
  18.  
  19. SetStageMusicAlwaysOn();
  20. SetStageCharacterModel("nelson", "lisa");
  21. SetMaxTraffic(5); //THIS RACE TAKES PLACE ON THE HIGHWAY SO WE SHOULD HAVE THE MAXIMUM AMOUNT OF TRAFFIC THE GAME WILL ALLOW
  22. SetStageMessageIndex(149);
  23. SetHUDIcon( "22_dolph" );
  24.  
  25. AddStageVehicle("fGreen","m1_dolph_start","race","Missions\level03\m1_race1.con", "dolph"); //SPAWN DOLPH IN THE GREEN FERINNI
  26. SetVehicleAIParams( "fGreen", 100, 101 );
  27.  
  28. //SetStageAIRaceCatchupParams("fGreen", 20, 0.7, 1.0, 1.2);
  29. StartCountdown(count);
  30. AddToCountdownSequence( "3", 1000 ); // duration time in milliseconds
  31. AddToCountdownSequence( "2", 1000 ); // duration time in milliseconds
  32. AddToCountdownSequence( "1", 1000 ); // duration time in milliseconds
  33. AddToCountdownSequence( "GO", 400 ); // duration time in milliseconds
  34.  
  35. AddStageWaypoint( "m1_r1_p1" );
  36. AddStageWaypoint( "m1_r1_p2" );
  37. AddStageWaypoint( "m1_r1_p3" );
  38. AddStageWaypoint( "m1_r1_p4" );
  39. AddObjective( "race", "both" );
  40.  
  41. AddCollectible("m1_r1_p1", "carsphere");
  42. AddCollectible("m1_r1_p2", "carsphere");
  43. AddCollectible("m1_r1_p3", "carsphere");
  44. AddCollectible("m1_r1_p4", "carsphere");
  45. AddNPC("kearney", "m1_hide"); //HIDE KEARNEY
  46. CloseObjective();
  47.  
  48. AddCondition("position");
  49. SetConditionPosition(1);
  50. CloseCondition();
  51.  
  52. AddCondition( "damage" );
  53. SetCondMinHealth( 0.0 );
  54. SetCondTargetVehicle( "current");
  55. CloseCondition();
  56.  
  57. AddCondition("outofvehicle");
  58. SetCondTime( 10000 );
  59. CloseCondition();
  60. CloseStage();
  61.  
  62. CloseStage();
  63.  
  64.  
  65.  
  66. AddStage(10); //RACE JIMBO
  67.  
  68. SetStageMusicAlwaysOn();
  69. SetHUDIcon( "22_jimbo" );
  70. SetStageCharacterModel("nelson", "lisa");
  71. SetMaxTraffic(3); //LOWER THE TRAFFIC TO AN EASIER LEVEL BECAUSE WE WILL NOT BE ON THE HIGHWAY DURING THIS RACE
  72. SetStageMessageIndex(150);
  73. AddStageVehicle("fPurple","m1_jimbo_start", "race" ,"Missions\level03\m1_race2.con", "jimbo"); //SPAWN JIMBO IN THE PURPLE FERINNI
  74. SetVehicleAIParams( "fPurple", 100, 101 );
  75.  
  76. AddStageWaypoint( "m1_r2_p1" );
  77. AddStageWaypoint( "m1_r2_p2" );
  78. AddStageWaypoint( "m1_r2_p3" );
  79. AddStageWaypoint( "m1_r2_p4" );
  80.  
  81. AddObjective( "race", "both" );
  82. AddCollectible("m1_r2_p1", "carsphere");
  83. AddCollectible("m1_r2_p2", "carsphere");
  84. //AddCollectible("m1_r2_p3", "carsphere"); IF YOU TAKE THE SHIP JUMP SHORTCUT YOU MISS THIS CHECKPOINT SO IT IS DISABLED
  85. AddCollectible("m1_r2_p4", "carsphere");
  86. AddNPC("jimbo", "m1_hide"); //HIDE JIMBO SO HE DOESN'T APPEAR BY THE SHIP
  87. CloseObjective();
  88.  
  89.  
  90. AddCondition("position");
  91. SetConditionPosition(1);
  92. CloseCondition();
  93.  
  94. AddCondition( "damage" );
  95. SetCondMinHealth( 0.0 );
  96. SetCondTargetVehicle( "current");
  97. CloseCondition();
  98.  
  99. AddCondition("outofvehicle");
  100. SetCondTime( 10000 );
  101. CloseCondition();
  102. CloseStage();
  103.  
  104.  
  105.  
  106. CloseStage();
  107.  
  108. AddStage(15); //RACE KEARNEY
  109. SetStageMusicAlwaysOn();
  110. SetHUDIcon( "22_kearney" );
  111. SetStageCharacterModel("nelson", "lisa");
  112. SetStageMessageIndex(151);
  113. AddStageVehicle("fOrange","m1_kearney_start","race","Missions\level03\m1_race3.con", "kearney"); //SPAWN KEARNEY IN GLOBEX CAR
  114. SetVehicleAIParams( "fOrange", 100, 101 );
  115.  
  116. AddStageWaypoint( "m1_r3_p1" );
  117. AddStageWaypoint( "m1_r3_p2" );
  118. AddStageWaypoint( "m1_r3_p3" );
  119. AddStageWaypoint( "m1_r3_p4" );
  120. AddStageWaypoint( "m1_r3_p5" );
  121. AddStageWaypoint( "m1_r3_p6" );
  122. AddStageWaypoint( "m1_r3_p7" );
  123. AddStageWaypoint( "m1_r3_p8" );
  124. AddStageWaypoint( "m1_r3_p9" );
  125. AddStageWaypoint( "m1_r3_p10" );
  126.  
  127. AddObjective( "race", "both" );
  128. AddNPC("jimbo", "m1_hide"); //HIDE JIMBO SO HE DOESN'T APPEAR BY THE SHIP
  129. AddCollectible("m1_r3_p1", "carsphere");
  130. AddCollectible("m1_r3_p2", "carsphere");
  131. AddCollectible("m1_r3_p3", "carsphere");
  132. AddCollectible("m1_r3_p4", "carsphere");
  133. AddCollectible("m1_r3_p5", "carsphere");
  134. AddCollectible("m1_r3_p6", "carsphere");
  135. AddCollectible("m1_r3_p7", "carsphere");
  136. AddCollectible("m1_r3_p8", "carsphere");
  137. AddCollectible("m1_r3_p9", "carsphere");
  138. AddCollectible("m1_r3_p10", "carsphere");
  139. CloseObjective();
  140.  
  141. AddCondition("position");
  142. SetConditionPosition(1);
  143. CloseCondition();
  144.  
  145. AddCondition( "damage" );
  146. SetCondMinHealth( 0.0 );
  147. SetCondTargetVehicle( "current");
  148. CloseCondition();
  149.  
  150. AddCondition("outofvehicle");
  151. SetCondTime( 10000 );
  152. CloseCondition();
  153. CloseStage();
  154.  
  155. CloseStage();
  156.  
  157.  
  158. AddStage("final"); //RACE BART
  159. SetMaxTraffic(5);
  160. SetStageMusicAlwaysOn();
  161. SetHUDIcon( "22_bart_2" );
  162. SetStageCharacterModel("nelson", "lisa");
  163. SetStageMessageIndex(152);
  164. AddStageVehicle("bart_v","m1_bart_start","race","Missions\level03\M1_race4.con", "bart"); //SPAWN BART IN RED FERINNI
  165. SetVehicleAIParams( "bart_v", 100, 101 );
  166.  
  167. AddStageWaypoint( "m1_r4_p1" );
  168. AddStageWaypoint( "m1_r4_p5" );
  169. AddStageWaypoint( "m1_r4_p6" );
  170. AddStageWaypoint( "m1_r4_p7" );
  171. AddStageWaypoint( "m1_r4_p8" );
  172. AddStageWaypoint( "m1_r4_p9" );
  173.  
  174. AddObjective("race", "both");
  175. AddNPC("jimbo", "m1_hide"); //HIDE JIMBO SO HE DOESN'T APPEAR BY THE SHIP
  176. AddCollectible("m1_r4_p1", "carsphere");
  177. //AddCollectible("m1_r4_p2", "carsphere"); //THIS ONE LOOKS WEIRD WHEN TAKING THE KRUSTYLU SHORTCUT
  178. //AddCollectible("m1_r4_p3", "carsphere"); //CHECKPOINT 3 IS BACKWARDS DO NOT USE
  179. //AddCollectible("m1_r4_p4", "carsphere"); //I ACCIDENTALLY SKIPPED PATH 4
  180. AddCollectible("m1_r4_p5", "carsphere");
  181. AddCollectible("m1_r4_p6", "carsphere");
  182. AddCollectible("m1_r4_p7", "carsphere");
  183. AddCollectible("m1_r4_p8", "carsphere");
  184. AddCollectible("m1_r4_p9", "carsphere");
  185. CloseObjective();
  186.  
  187. AddCondition("position");
  188. SetConditionPosition(1);
  189. CloseCondition();
  190.  
  191.  
  192. AddCondition( "damage" );
  193. SetCondMinHealth( 0.0 );
  194. SetCondTargetVehicle( "current");
  195. CloseCondition();
  196.  
  197. AddCondition("outofvehicle");
  198. SetCondTime( 10000 );
  199. CloseCondition();
  200. CloseStage();
  201.  
  202.  
  203. CloseObjective();
  204.  
  205.  
  206.  
  207. CloseStage();
  208.  
  209.  
  210. CloseMission();
  211.  
  212.  
  213.  
  214.  
  215. //SetStageAIRaceCatchupParams("scorp_v", 150, 2.0, 1.0, 60.0);
  216. //SetStageAIRaceCatchupParams("bart_v", 200, 1.5, 1.0, 60.0);
  217. //SetStageAIRaceCatchupParams("oblit_v", 25, 0.75, 1.0, 60.0);
  218. //
  219.  
  220. //VEHICLENAME
  221. //HOW CLOSE I NEED TO BE *BEHIND* THEM BEFORE THEY APPLY MAX CATCH UP
  222. //HOW MUCH FASTER THEY WILL DRIVE WHEN YOU ARE LESS THAN THE SPECIFIED DISTANCE
  223. //???
  224. //HOW MUCH FASTER THEY WILL DRIVE WHEN YOU ARE IN MAX CATACH UP RANGE (MULTIPLICATION SO 0.5 IS HALF SPEED AND 2.0 IS TWICE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement