Advertisement
KoalRobertson

22 Short Missions About Springfield - Full Otto - Beta v2.0

Nov 9th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.70 KB | None | 0 0
  1. //THE SIMPSONS HIT AND RUN - 22 SHORT MISSIONS ABOUT SPRINGFIELD
  2. //MISSION 9 - FULL OTTO
  3. //BETA v2.0
  4. //BY KOAL ROBERTSON
  5. //9-10-18
  6.  
  7.  
  8.  
  9. SelectMission("m2");
  10.  
  11. InitLevelPlayerVehicle("otto_v", "m2_bus_start", "OTHER");
  12. SetMissionResetPlayerInCar("m2_bus_start");
  13. SetDynaLoadData("l2z3.p3d;l2r2.p3d;l2r3.p3d;");
  14.  
  15.  
  16.  
  17. SetForcedCar();
  18.  
  19. UsePedGroup(4);
  20. AddStage(0); //PICK UP BARNEY
  21. SetMaxTraffic(3); //i keep hitting stuff so...
  22. SetStageTime(19);
  23. SetHUDIcon("22_barney");
  24. SetStageMessageIndex(132);
  25. SetStageCharacterModel("nrivie", "bart"); //using nrivie makes the player invisible so it looks like you are actually playing as otto
  26. //don't get out of the vehicle though it will ruin the illusion
  27.  
  28. AddObjective("goto", "neither");
  29. TurnGotoDialogOff();
  30. AddNPC("barney", "m2_barney_start");
  31. SetDestination("m2_barney_trigger", "carsphere");
  32. CloseObjective();
  33. SetMusicState("Mission2", "Stage1"); //plays the music otto chase
  34. AddCondition("timeout");
  35.  
  36. SetCompletionDialog("barney-p");
  37.  
  38.  
  39.  
  40. CloseCondition();
  41.  
  42. AddCondition( "damage" );
  43. SetCondMinHealth( 0.0 );
  44. SetCondTargetVehicle( "current");
  45. CloseCondition();
  46.  
  47. AddCondition("outofvehicle");
  48. SetCondTime( 1 );
  49. CloseCondition();
  50. CloseStage();
  51.  
  52. AddStage(5); //DRIVE BARNEY TO MOES
  53.  
  54. SetCompletionDialog("barney-dest");
  55.  
  56. AddStageTime(39);
  57. SetHUDIcon("moes");
  58. SetStageMessageIndex(133);
  59. SetStageCharacterModel("barney", "bart"); //then it changes the player from the invisible nrivie to barney so it looks like otto picked him up
  60.  
  61. AddObjective("goto", "neither");
  62. TurnGotoDialogOff();
  63. AddNPC("barney", "m2_hide");
  64. SetDestination("m2_barney_dest", "carsphere");
  65. CloseObjective();
  66. ShowStageComplete();
  67.  
  68. AddCondition("timeout");
  69. CloseCondition();
  70.  
  71. AddCondition( "damage" );
  72. SetCondMinHealth( 0.0 );
  73. SetCondTargetVehicle( "current");
  74. CloseCondition();
  75.  
  76. AddCondition("outofvehicle");
  77. SetCondTime( 1 );
  78. CloseCondition();
  79. CloseStage();
  80.  
  81.  
  82. AddStage(10); //PICK UP ABE
  83. AddStageTime(29);
  84. SetHUDIcon("22_abe");
  85. SetStageMessageIndex(134);
  86. SetStageCharacterModel("nrivie", "bart"); //after dropping off the passenger the player turns back invisble using nrivie
  87.  
  88. AddObjective("goto", "neither");
  89. TurnGotoDialogOff();
  90. AddNPC("barney", "m2_barney_end");
  91. AddNPC("grandpa", "m2_abe_start");
  92. SetDestination("m2_abe_trigger", "carsphere");
  93. CloseObjective();
  94.  
  95. AddCondition("timeout");
  96. CloseCondition();
  97.  
  98. AddCondition( "damage" );
  99. SetCondMinHealth( 0.0 );
  100. SetCondTargetVehicle( "current");
  101. CloseCondition();
  102.  
  103. AddCondition("outofvehicle");
  104. SetCondTime( 1 );
  105. CloseCondition();
  106.  
  107. SetCompletionDialog("abe-pickup");
  108. CloseStage();
  109.  
  110.  
  111. AddStage(15); //DRIVE ABLE TO MONORAIL
  112.  
  113. AddStageTime(39);
  114. SetHUDIcon("monorail");
  115. SetStageMessageIndex(135);
  116. SetStageCharacterModel("grandpa", "bart");
  117.  
  118. AddObjective("goto", "neither");
  119. TurnGotoDialogOff();
  120.  
  121. AddNPC("grandpa", "m2_hide");
  122. SetDestination("m2_abe_dest", "carsphere");
  123. CloseObjective();
  124. ShowStageComplete();
  125.  
  126. AddCondition("timeout");
  127. CloseCondition();
  128.  
  129. AddCondition( "damage" );
  130. SetCondMinHealth( 0.0 );
  131. SetCondTargetVehicle( "current");
  132. CloseCondition();
  133.  
  134. AddCondition("outofvehicle");
  135. SetCondTime( 1 );
  136. CloseCondition();
  137.  
  138. SetCompletionDialog("abe-dest", "otto");
  139. CloseStage();
  140.  
  141.  
  142.  
  143. AddStage(20); //PICK UP SMITHERS
  144. SetCompletionDialog("smithers-p", "otto");
  145. AddStageTime(9);
  146. SetStageMessageIndex(134);
  147. SetHUDIcon("smithers");
  148. SetStageCharacterModel("nrivie", "bart");
  149. AddObjective("goto", "neither");
  150. TurnGotoDialogOff();
  151. AddNPC("grandpa", "m2_abe_end");
  152. AddNPC("smithers", "m2_smithers_start");
  153. SetDestination("m2_smithers_trigger", "carsphere");
  154. CloseObjective();
  155.  
  156. AddCondition("timeout");
  157. CloseCondition();
  158.  
  159. AddCondition( "damage" );
  160. SetCondMinHealth( 0.0 );
  161. SetCondTargetVehicle( "current");
  162. CloseCondition();
  163.  
  164. AddCondition("outofvehicle");
  165. SetCondTime( 1 );
  166. CloseCondition();
  167.  
  168.  
  169. CloseStage();
  170.  
  171. AddStage(25); //DRIVE SMITHERS TO COURTHOUSE
  172. SetCompletionDialog("smithers-d", "smithers");
  173. AddStageTime(-1);
  174. SetHUDIcon("22_court"); //it kind of looks like the courthouse so it'll do as a placeholder for now or I could just change the destination to the museum yeah that would make sense
  175. SetStageMessageIndex(136);
  176. SetStageCharacterModel("smithers", "bart");
  177.  
  178. AddObjective("goto", "neither");
  179. TurnGotoDialogOff();
  180. AddNPC("smithers", "m2_hide");
  181. SetDestination("m2_smithers_dest", "carsphere");
  182. CloseObjective();
  183. ShowStageComplete();
  184.  
  185. AddCondition("timeout");
  186. CloseCondition();
  187.  
  188. AddCondition( "damage" );
  189. SetCondMinHealth( 0.0 );
  190. SetCondTargetVehicle( "current");
  191. CloseCondition();
  192.  
  193. AddCondition("outofvehicle");
  194. SetCondTime( 1 );
  195. CloseCondition();
  196. CloseStage();
  197.  
  198.  
  199. AddStage(30); //PICK UP SNAKE
  200.  
  201. AddStageTime(9);
  202. SetHUDIcon("snake");
  203. SetStageMessageIndex(134);
  204. SetStageCharacterModel("nrivie", "bart");
  205. AddObjective("goto", "neither");
  206. TurnGotoDialogOff();
  207. AddNPC("smithers", "m2_smithers_end");
  208. AddNPC("snake", "m2_snake_start");
  209. SetDestination("m2_snake_trigger", "carsphere");
  210. AddStageVehicle("wiggu_v","m2_wiggum_start","NULL","Missions\level02\m2_wiggum.con", "wiggum");
  211. CloseObjective();
  212.  
  213.  
  214. AddCondition( "damage" );
  215. SetCondMinHealth( 0.0 );
  216. SetCondTargetVehicle( "current");
  217. CloseCondition();
  218.  
  219. AddCondition("outofvehicle");
  220. SetCondTime( 1 );
  221. CloseCondition();
  222.  
  223. AddCondition("timeout");
  224. CloseCondition();
  225.  
  226. SetCompletionDialog("snakepickup", "otto");
  227. CloseStage();
  228.  
  229. AddStage(35); //ESCAPE WIGGUM
  230. SetCompletionDialog("escaped");
  231. AddStageTime(38);
  232. SetMusicState("Mission2", "Stage2"); //plays halls balls
  233. SetHUDIcon("wiggum");
  234. SetStageMessageIndex(137);
  235. SetStageCharacterModel("snake", "bart");
  236. AddObjective("losetail");
  237. AddNPC("snake", "m2_hide");
  238. ActivateVehicle("wiggu_v", "NULL","chase");
  239. SetObjDistance(150);
  240. SetObjTargetVehicle("wiggu_v");
  241. TurnGotoDialogOff();
  242. CloseObjective();
  243. ShowStageComplete();
  244. AddCondition( "damage" );
  245. SetCondMinHealth( 0.0 );
  246. SetCondTargetVehicle( "current");
  247. CloseCondition();
  248.  
  249. AddCondition("outofvehicle");
  250. SetCondTime( 1 );
  251. CloseCondition();
  252. AddCondition("timeout");
  253. CloseCondition();
  254. AddStageVehicle("cMilk","m2_milk_start","NULL","Missions\level02\m2_milk.con", "none");
  255. CloseStage();
  256.  
  257. AddStage(37); //TIMER TO LET DIALOGUE PLAY BEFORE YOU RECIEVE THE OBJECTIVE
  258. SetStageCharacterModel("snake", "bart");
  259. AddObjective("timer");
  260. SetDurationTime(9);
  261. CloseObjective();
  262. AddStageVehicle("cMilk","m2_milk_start","NULL","Missions\level02\m2_milk.con", "none");
  263. AddCondition("outofvehicle");
  264. SetCondTime( 1 );
  265. CloseCondition();
  266. AddCondition("timeout");
  267. AddStageTime(9);
  268. CloseCondition();
  269.  
  270. CloseStage();
  271.  
  272.  
  273.  
  274. AddStage(40); //GO TO THE MILK TRUCK
  275. AddStageTime(9);
  276. SetHUDIcon("milk_v");
  277. SetStageMessageIndex(138);
  278. SetStageCharacterModel("snake", "bart");
  279. AddObjective("goto");
  280. TurnGotoDialogOff();
  281. SetDestination("m2_milk_trigger", "carsphere");
  282. AddStageVehicle("cMilk","m2_milk_start","NULL","Missions\level02\m2_milk.con", "none");
  283. CloseObjective();
  284. AddCondition( "damage" );
  285. SetCondMinHealth( 0.0 );
  286. SetCondTargetVehicle( "current");
  287. CloseCondition();
  288.  
  289. AddCondition("outofvehicle");
  290. SetCondTime( 1 );
  291. CloseCondition();
  292. AddCondition("timeout");
  293. CloseCondition();
  294. CloseStage();
  295.  
  296. AddStage(45); //DESTROY MILK TRUCK
  297. AddStageTime(50);
  298. SetHUDIcon("milk_v");
  299. SetStageMessageIndex(139);
  300. AddStageWaypoint("m2_milk_path1");
  301. AddStageWaypoint("m2_milk_path2");
  302. AddStageWaypoint("m2_milk_path3");
  303. AddStageWaypoint("m2_milk_path4");
  304. AddStageWaypoint("m2_milk_path4.5");
  305. AddStageWaypoint("m2_milk_path5");
  306. AddStageWaypoint("m2_milk_path6");
  307. AddStageWaypoint("m2_milk_path7");
  308. AddStageWaypoint("m2_milk_path8");
  309. AddStageWaypoint("m2_milk_path9");
  310. AddStageWaypoint("m2_milk_path10");
  311. AddStageWaypoint("m2_milk_path11");
  312.  
  313.  
  314.  
  315. SetStageCharacterModel("snake", "bart");
  316. AddObjective("destroy");
  317. TurnGoToDialogOff();
  318. ActivateVehicle("cMilk", "NULL","race");
  319. SetObjTargetVehicle("cMilk");
  320. CloseObjective();
  321. ShowStageComplete();
  322. AddCondition( "damage" );
  323. SetCondMinHealth( 0.0 );
  324. SetCondTargetVehicle( "current");
  325. CloseCondition();
  326.  
  327. AddCondition("outofvehicle");
  328. SetCondTime( 1 );
  329. CloseCondition();
  330. AddCondition("timeout");
  331. SetCompletionDialog("dest-truck", "otto");
  332. CloseCondition();
  333.  
  334. CloseStage();
  335.  
  336. AddStage("final"); //DRIVE SNAKE HIS HIDEOUT
  337. AddStageTime(9);
  338. SetHUDIcon("lexicon");
  339. SetStageMessageIndex(140);
  340. SetStageCharacterModel("snake", "bart");
  341. AddObjective("goto");
  342. SetDestination("m2_snake_dest", "carsphere");
  343. CloseObjective();
  344. AddCondition( "damage" );
  345. SetCondMinHealth( 0.0 );
  346. SetCondTargetVehicle( "current");
  347. CloseCondition();
  348.  
  349. AddCondition("outofvehicle");
  350. SetCondTime( 1 );
  351. CloseCondition();
  352. AddCondition("timeout");
  353. CloseCondition();
  354. CloseStage();
  355.  
  356.  
  357.  
  358.  
  359. CloseMission();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement