Advertisement
KoalRobertson

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

Nov 10th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.01 KB | None | 0 0
  1. //THE SIMPSONS HIT AND RUN - 22 SHORT MISSIONS ABOUT SPRINGFIELD
  2. //MISSION 9 - FULL OTTO
  3. //BETA v2.1
  4. //BY KOAL ROBERTSON
  5. //10-11-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.  
  173. AddStageVehicle("snyder_v","m2_sni_start","NULL","Missions\level02\m2_snyder.con", "male1");
  174.  
  175. AddStageTime(-1);
  176. 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
  177. SetStageMessageIndex(136);
  178. SetStageCharacterModel("smithers", "bart");
  179.  
  180. AddObjective("goto", "neither");
  181. TurnGotoDialogOff();
  182. AddNPC("smithers", "m2_hide");
  183. SetDestination("m2_sni_court", "carsphere");
  184. CloseObjective();
  185. ShowStageComplete();
  186.  
  187. AddCondition("timeout");
  188. CloseCondition();
  189.  
  190. AddCondition( "damage" );
  191. SetCondMinHealth( 0.0 );
  192. SetCondTargetVehicle( "current");
  193. CloseCondition();
  194.  
  195. AddCondition("outofvehicle");
  196. SetCondTime( 1 );
  197. CloseCondition();
  198. CloseStage();
  199.  
  200.  
  201.  
  202. AddStage(25); //RACE JUDGE SNYDER
  203.  
  204. ActivateVehicle("snyder_v", "NULL", "race");
  205. AddStageWaypoint("m2_court_race");
  206. AddStageTime(-1);
  207. SetHUDIcon("22_snyder");
  208. SetStageMessageIndex(200);
  209. SetStageCharacterModel("smithers", "bart");
  210.  
  211. AddObjective("race");
  212. AddCollectible("m2_court_race", "carsphere");
  213. CloseObjective();
  214.  
  215. AddCondition("timeout");
  216. CloseCondition();
  217.  
  218. AddCondition( "damage" );
  219. SetCondMinHealth( 0.0 );
  220. SetCondTargetVehicle( "current");
  221. CloseCondition();
  222.  
  223. AddCondition("outofvehicle");
  224. SetCondTime( 1 );
  225. CloseCondition();
  226.  
  227. AddCondition("race");
  228. SetCondTargetVehicle("snyder_v");
  229. CloseCondition();
  230. CloseStage();
  231.  
  232. AddStage(25); //DROP OF SMITHERS
  233. SetCompletionDialog("smithers-d", "smithers");
  234. AddStageTime(-1);
  235. SetHUDIcon("smithers");
  236. SetStageMessageIndex(201);
  237. SetStageCharacterModel("smithers", "bart");
  238.  
  239. AddObjective("goto", "neither");
  240. TurnGotoDialogOff();
  241. AddNPC("smithers", "m2_hide");
  242. SetDestination("m2_smithers_dest", "carsphere");
  243. CloseObjective();
  244. ShowStageComplete();
  245.  
  246. AddCondition("timeout");
  247. CloseCondition();
  248.  
  249. AddCondition( "damage" );
  250. SetCondMinHealth( 0.0 );
  251. SetCondTargetVehicle( "current");
  252. CloseCondition();
  253.  
  254. AddCondition("outofvehicle");
  255. SetCondTime( 1 );
  256. CloseCondition();
  257. CloseStage();
  258.  
  259.  
  260. AddStage(30); //PICK UP SNAKE
  261.  
  262. AddStageTime(9);
  263. SetHUDIcon("snake");
  264. SetStageMessageIndex(134);
  265. SetStageCharacterModel("nrivie", "bart");
  266. AddObjective("goto", "neither");
  267. TurnGotoDialogOff();
  268. AddNPC("smithers", "m2_smithers_end");
  269. AddNPC("snake", "m2_snake_start");
  270. SetDestination("m2_snake_trigger", "carsphere");
  271. AddStageVehicle("wiggu_v","m2_wiggum_start","NULL","Missions\level02\m2_wiggum.con", "wiggum");
  272. CloseObjective();
  273.  
  274.  
  275. AddCondition( "damage" );
  276. SetCondMinHealth( 0.0 );
  277. SetCondTargetVehicle( "current");
  278. CloseCondition();
  279.  
  280. AddCondition("outofvehicle");
  281. SetCondTime( 1 );
  282. CloseCondition();
  283.  
  284. AddCondition("timeout");
  285. CloseCondition();
  286.  
  287. SetCompletionDialog("snakepickup", "otto");
  288. CloseStage();
  289.  
  290. AddStage(35); //ESCAPE WIGGUM
  291. SetCompletionDialog("escaped");
  292. AddStageTime(38);
  293. SetMusicState("Mission2", "Stage2"); //plays halls balls
  294. SetHUDIcon("wiggum");
  295. SetStageMessageIndex(137);
  296. SetStageCharacterModel("snake", "bart");
  297. AddObjective("losetail");
  298. AddNPC("snake", "m2_hide");
  299. ActivateVehicle("wiggu_v", "NULL","chase");
  300. SetObjDistance(150);
  301. SetObjTargetVehicle("wiggu_v");
  302. TurnGotoDialogOff();
  303. CloseObjective();
  304. ShowStageComplete();
  305. AddCondition( "damage" );
  306. SetCondMinHealth( 0.0 );
  307. SetCondTargetVehicle( "current");
  308. CloseCondition();
  309.  
  310. AddCondition("outofvehicle");
  311. SetCondTime( 1 );
  312. CloseCondition();
  313. AddCondition("timeout");
  314. CloseCondition();
  315. AddStageVehicle("cMilk","m2_milk_start","NULL","Missions\level02\m2_milk.con", "none");
  316. CloseStage();
  317.  
  318. AddStage(37); //TIMER TO LET DIALOGUE PLAY BEFORE YOU RECIEVE THE OBJECTIVE
  319. SetStageCharacterModel("snake", "bart");
  320. AddObjective("timer");
  321. SetDurationTime(9);
  322. CloseObjective();
  323. AddStageVehicle("cMilk","m2_milk_start","NULL","Missions\level02\m2_milk.con", "none");
  324. AddCondition("outofvehicle");
  325. SetCondTime( 1 );
  326. CloseCondition();
  327. AddCondition("timeout");
  328. AddStageTime(9);
  329. CloseCondition();
  330.  
  331. CloseStage();
  332.  
  333.  
  334.  
  335. AddStage(40); //GO TO THE MILK TRUCK
  336. AddStageTime(9);
  337. SetHUDIcon("milk_v");
  338. SetStageMessageIndex(138);
  339. SetStageCharacterModel("snake", "bart");
  340. AddObjective("goto");
  341. TurnGotoDialogOff();
  342. SetDestination("m2_milk_trigger", "carsphere");
  343. AddStageVehicle("cMilk","m2_milk_start","NULL","Missions\level02\m2_milk.con", "none");
  344. CloseObjective();
  345. AddCondition( "damage" );
  346. SetCondMinHealth( 0.0 );
  347. SetCondTargetVehicle( "current");
  348. CloseCondition();
  349.  
  350. AddCondition("outofvehicle");
  351. SetCondTime( 1 );
  352. CloseCondition();
  353. AddCondition("timeout");
  354. CloseCondition();
  355. CloseStage();
  356.  
  357. AddStage(45); //DESTROY MILK TRUCK
  358. AddStageTime(50);
  359. SetHUDIcon("milk_v");
  360. SetStageMessageIndex(139);
  361. AddStageWaypoint("m2_milk_path1");
  362. AddStageWaypoint("m2_milk_path2");
  363. AddStageWaypoint("m2_milk_path3");
  364. AddStageWaypoint("m2_milk_path4");
  365. AddStageWaypoint("m2_milk_path4.5");
  366. AddStageWaypoint("m2_milk_path5");
  367. AddStageWaypoint("m2_milk_path6");
  368. AddStageWaypoint("m2_milk_path7");
  369. AddStageWaypoint("m2_milk_path8");
  370. AddStageWaypoint("m2_milk_path9");
  371. AddStageWaypoint("m2_milk_path10");
  372. AddStageWaypoint("m2_milk_path11");
  373.  
  374.  
  375.  
  376. SetStageCharacterModel("snake", "bart");
  377. AddObjective("destroy");
  378. TurnGoToDialogOff();
  379. ActivateVehicle("cMilk", "NULL","race");
  380. SetObjTargetVehicle("cMilk");
  381. CloseObjective();
  382. ShowStageComplete();
  383. AddCondition( "damage" );
  384. SetCondMinHealth( 0.0 );
  385. SetCondTargetVehicle( "current");
  386. CloseCondition();
  387.  
  388. AddCondition("outofvehicle");
  389. SetCondTime( 1 );
  390. CloseCondition();
  391. AddCondition("timeout");
  392. SetCompletionDialog("dest-truck", "otto");
  393. CloseCondition();
  394.  
  395. CloseStage();
  396.  
  397. AddStage("final"); //DRIVE SNAKE HIS HIDEOUT
  398. AddStageTime(9);
  399. SetHUDIcon("lexicon");
  400. SetStageMessageIndex(140);
  401. SetStageCharacterModel("snake", "bart");
  402. AddObjective("goto");
  403. SetDestination("m2_snake_dest", "carsphere");
  404. CloseObjective();
  405. AddCondition( "damage" );
  406. SetCondMinHealth( 0.0 );
  407. SetCondTargetVehicle( "current");
  408. CloseCondition();
  409.  
  410. AddCondition("outofvehicle");
  411. SetCondTime( 1 );
  412. CloseCondition();
  413. AddCondition("timeout");
  414. CloseCondition();
  415. CloseStage();
  416.  
  417.  
  418.  
  419.  
  420. CloseMission();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement