R4gn0r0k

diablo2.sc

Feb 3rd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.66 KB | None | 0 0
  1. MISSION_START
  2. // *******************************************************************************************
  3. // *******************************************************************************************
  4. // *************************************Deablo mission 2**************************************
  5. // ***********************************Destroy Icream Vans*************************************
  6. // *******************************************************************************************
  7. // *******************************************************************************************
  8. // *******************************************************************************************
  9.  
  10. // Mission start stuff
  11.  
  12. GOSUB mission_start_diablo2
  13.  
  14. IF HAS_DEATHARREST_BEEN_EXECUTED
  15. GOSUB mission_diablo2_failed
  16. ENDIF
  17.  
  18. GOSUB mission_cleanup_diablo2
  19.  
  20. MISSION_END
  21.  
  22. // Variables for mission
  23.  
  24. VAR_INT icecream_van1 flag_car_blip_displayed_dm2 // Vehicle for mission
  25.  
  26. VAR_INT blip1_icecream1 blip1_diablo2 blip2_diablo2 creamers_spotted_you
  27.  
  28. VAR_INT briefcase_diablo2 removed_ice_cream_blip// Counts up number of mission vans destroyed
  29.  
  30. VAR_INT ojective_creamed_guys_passed //ice_creamvan_stored_before
  31.  
  32. VAR_INT icecream_man1 icecreamvan_any creamed_guy1 creamed_guy2 creamed_guy3 creamed_guy4
  33.  
  34. VAR_INT ojective_creamed_guy1_done_before ojective_creamed_guy2_done_before ojective_creamed_guy3_done_before ojective_creamed_guy4_done_before
  35.  
  36. VAR_FLOAT icecreamx icecreamy icecreamz
  37.  
  38. VAR_INT creamed_guy1_health creamed_guy2_health creamed_guy3_health creamed_guy4_health
  39.  
  40. // ***************************************Mission Start*************************************
  41.  
  42. mission_start_diablo2:
  43.  
  44. REGISTER_MISSION_GIVEN
  45. flag_player_on_mission = 1
  46. flag_player_on_diablo_mission = 1
  47. SCRIPT_NAME diablo2
  48. WAIT 0
  49.  
  50. {
  51.  
  52. SET_PED_DENSITY_MULTIPLIER 0.0
  53. CLEAR_AREA_OF_CHARS 890.3 -309.1 0.0 1038.1 -132.9 10.0
  54.  
  55. LOAD_CUTSCENE EL_PH2
  56. SET_CUTSCENE_OFFSET 938.27 -229.561 4.023
  57.  
  58. CREATE_CUTSCENE_OBJECT PED_PLAYER cs_player
  59. SET_CUTSCENE_ANIM cs_player player
  60.  
  61.  
  62. DO_FADE 1500 FADE_IN
  63.  
  64. SWITCH_STREAMING ON
  65. START_CUTSCENE
  66.  
  67. // Displays cutscene text
  68.  
  69.  
  70. GET_CUTSCENE_TIME cs_time
  71.  
  72. WHILE cs_time < 2000
  73. WAIT 0
  74. GET_CUTSCENE_TIME cs_time
  75. ENDWHILE
  76. PRINT_NOW ( DIAB2_A ) 10000 1
  77.  
  78. WHILE cs_time < 9115
  79. WAIT 0
  80. GET_CUTSCENE_TIME cs_time
  81. ENDWHILE
  82.  
  83. PRINT_NOW ( DIAB2_B ) 10000 1
  84.  
  85. WHILE cs_time < 15149
  86. WAIT 0
  87. GET_CUTSCENE_TIME cs_time
  88. ENDWHILE
  89.  
  90. PRINT_NOW ( DIAB2_C ) 10000 1
  91.  
  92. WHILE cs_time < 18028
  93. WAIT 0
  94. GET_CUTSCENE_TIME cs_time
  95. ENDWHILE
  96.  
  97. PRINT_NOW ( DIAB2_D ) 10000 1
  98.  
  99. WHILE cs_time < 20605
  100. WAIT 0
  101. GET_CUTSCENE_TIME cs_time
  102. ENDWHILE
  103.  
  104. PRINT_NOW ( DIAB2_E ) 10000 1
  105.  
  106. WHILE cs_time < 22985
  107. WAIT 0
  108. GET_CUTSCENE_TIME cs_time
  109. ENDWHILE
  110.  
  111. PRINT_NOW ( DIAB2_F ) 10000 1
  112.  
  113. WHILE cs_time < 26130
  114. WAIT 0
  115. GET_CUTSCENE_TIME cs_time
  116. ENDWHILE
  117.  
  118. PRINT_NOW ( DIAB2_G ) 10000 1
  119.  
  120. WHILE cs_time < 30784
  121. WAIT 0
  122. GET_CUTSCENE_TIME cs_time
  123. ENDWHILE
  124.  
  125. PRINT_NOW ( DIAB2_H ) 10000 1
  126.  
  127. WHILE cs_time < 33726
  128. WAIT 0
  129. GET_CUTSCENE_TIME cs_time
  130. ENDWHILE
  131.  
  132. CLEAR_PRINTS
  133.  
  134. WHILE cs_time < 34000
  135. WAIT 0
  136. GET_CUTSCENE_TIME cs_time
  137. ENDWHILE
  138.  
  139.  
  140. DO_FADE 1500 FADE_OUT
  141.  
  142. WHILE NOT HAS_CUTSCENE_FINISHED
  143. WAIT 0
  144.  
  145. ENDWHILE
  146.  
  147. CLEAR_PRINTS
  148.  
  149. WHILE GET_FADING_STATUS
  150. WAIT 0
  151. ENDWHILE
  152.  
  153. CLEAR_CUTSCENE
  154.  
  155. WAIT 500
  156.  
  157. DO_FADE 1500 FADE_IN
  158.  
  159.  
  160. SET_PED_DENSITY_MULTIPLIER 1.0
  161.  
  162. ojective_creamed_guy1_done_before = 0
  163. ojective_creamed_guy2_done_before = 0
  164. ojective_creamed_guy3_done_before = 0
  165. ojective_creamed_guy4_done_before = 0
  166. ojective_creamed_guys_passed = 0
  167. creamers_spotted_you = 0
  168. removed_ice_cream_blip = 0
  169.  
  170. REQUEST_MODEL CAR_MRWHOOPEE
  171. REQUEST_MODEL PED_GANG_MAFIA_A
  172. REQUEST_MODEL PED_LI_MAN1
  173.  
  174.  
  175. WHILE NOT HAS_MODEL_LOADED CAR_MRWHOOPEE
  176. OR NOT HAS_MODEL_LOADED PED_GANG_MAFIA_A
  177. OR NOT HAS_MODEL_LOADED PED_LI_MAN1
  178. WAIT 0
  179. ENDWHILE
  180.  
  181. WAIT 2000
  182.  
  183. CREATE_PICKUP briefcase PICKUP_ONCE 934.9 -69.8 8.1 briefcase_diablo2
  184. ADD_BLIP_FOR_PICKUP briefcase_diablo2 blip1_diablo2
  185.  
  186. PRINT ( DIAB2_1 ) 5000 1 // Pick up briefcase
  187.  
  188. WHILE NOT HAS_PICKUP_BEEN_COLLECTED briefcase_diablo2
  189. WAIT 0
  190.  
  191. ENDWHILE
  192.  
  193. REMOVE_BLIP blip1_diablo2
  194.  
  195.  
  196. CREATE_CAR CAR_MRWHOOPEE 1381.0 -382.0 -100.0 icecream_van1
  197. CREATE_CHAR_INSIDE_CAR icecream_van1 PEDTYPE_CIVMALE PED_LI_MAN1 icecream_man1
  198. SET_CAR_DRIVING_STYLE icecream_van1 DRIVINGMODE_STOPFORCARS
  199. ADD_BLIP_FOR_CAR icecream_van1 blip1_icecream1
  200.  
  201. PRINT_NOW ( DIAB2_2 ) 5000 1 // Find an icecream van
  202.  
  203.  
  204. WHILE NOT IS_PLAYER_IN_MODEL Player CAR_MRWHOOPEE
  205. WAIT 0
  206.  
  207. IF IS_CAR_DEAD icecream_van1
  208. GOTO mission_diablo2_failed
  209. ENDIF
  210.  
  211. ENDWHILE
  212.  
  213. REMOVE_BLIP blip1_icecream1
  214. STORE_CAR_PLAYER_IS_IN player icecreamvan_any
  215.  
  216. IF NOT IS_CAR_DEAD icecreamvan_any
  217. ARM_CAR_WITH_BOMB icecreamvan_any CARBOMB_REMOTE
  218. GIVE_PLAYER_DETONATOR
  219. SET_CURRENT_PLAYER_WEAPON Player WEAPONTYPE_DETONATOR
  220. ENDIF
  221.  
  222. PRINT_NOW ( DIAB2_3 ) 5000 1 // Park the icecream van down at atlantic quays
  223.  
  224. flag_car_blip_displayed_dm2 = TRUE
  225. blob_flag = 1
  226.  
  227. WHILE NOT IS_CAR_STOPPED_IN_AREA_3D icecreamvan_any 1215.9 -1128.7 11.2 1210.4 -1123.3 14.2 blob_flag
  228. OR NOT IS_PLAYER_IN_CAR player icecreamvan_any
  229. OR NOT IS_ICECREAM_JINGLE_ON icecreamvan_any
  230.  
  231. WAIT 0
  232.  
  233. IF IS_CAR_DEAD icecreamvan_any
  234. GOTO mission_diablo2_failed
  235. ENDIF
  236.  
  237. IF IS_CAR_STOPPED_IN_AREA_3D icecreamvan_any 1215.9 -1128.7 11.2 1210.4 -1123.3 14.2 FALSE
  238. AND IS_PLAYER_IN_CAR player icecreamvan_any
  239. GET_CONTROLLER_MODE controlmode
  240. IF controlmode = 0
  241. PRINT_NOW ( DIAB2_6 ) 1000 1 // Tap L3 quickly to set the Icecream jingle
  242. ENDIF
  243. IF controlmode = 1
  244. PRINT_NOW ( DIAB2_4 ) 1000 1 // Tap L1 quickly to set the Icecream jingle
  245. ENDIF
  246. IF controlmode = 2
  247. PRINT_NOW ( DIAB2_7 ) 1000 1 // Tap R1 quickly to set the Icecream jingle
  248. ENDIF
  249. IF controlmode = 3
  250. PRINT_NOW ( DIAB2_6 ) 1000 1 // Tap L3 quickly to set the Icecream jingle
  251. ENDIF
  252. ENDIF
  253.  
  254. IF IS_PLAYER_IN_CAR player icecreamvan_any
  255. IF flag_car_blip_displayed_dm2 = TRUE
  256. ADD_BLIP_FOR_COORD 1219.7 -1137.2 -100.0 blip2_diablo2
  257. blob_flag = 1
  258. REMOVE_BLIP blip1_icecream1
  259. flag_car_blip_displayed_dm2 = FALSE
  260. ENDIF
  261. ENDIF
  262.  
  263. IF NOT IS_PLAYER_IN_CAR player icecreamvan_any
  264. IF flag_car_blip_displayed_dm2 = FALSE
  265. ADD_BLIP_FOR_CAR icecreamvan_any blip1_icecream1
  266. blob_flag = 0
  267. REMOVE_BLIP blip2_diablo2
  268. PRINT_NOW ( IN_VEH ) 5000 1 //"Get back in the car!"
  269. flag_car_blip_displayed_dm2 = TRUE
  270. ENDIF
  271. ENDIF
  272.  
  273. ENDWHILE
  274.  
  275. CLEAR_AREA 1190.5 -1141.2 11.6 2.0 TRUE
  276. CREATE_CHAR PEDTYPE_GANG_MAFIA PED_GANG_MAFIA_A 1190.5 -1141.2 11.6 creamed_guy1
  277.  
  278. CLEAR_AREA 1192.5 -1141.2 11.6 2.0 TRUE
  279. CREATE_CHAR PEDTYPE_GANG_MAFIA PED_GANG_MAFIA_A 1192.5 -1141.2 11.6 creamed_guy2
  280.  
  281. CLEAR_AREA 1194.5 -1141.2 11.6 2.0 TRUE
  282. CREATE_CHAR PEDTYPE_GANG_MAFIA PED_GANG_MAFIA_A 1194.5 -1141.2 11.6 creamed_guy3
  283.  
  284. CLEAR_AREA 1196.5 -1141.2 11.6 2.0 TRUE
  285. CREATE_CHAR PEDTYPE_GANG_MAFIA PED_GANG_MAFIA_A 1196.5 -1141.2 11.6 creamed_guy4
  286.  
  287. GIVE_WEAPON_TO_CHAR creamed_guy1 WEAPONTYPE_UZI 160
  288. GIVE_WEAPON_TO_CHAR creamed_guy2 WEAPONTYPE_UZI 160
  289. GIVE_WEAPON_TO_CHAR creamed_guy3 WEAPONTYPE_UZI 160
  290. GIVE_WEAPON_TO_CHAR creamed_guy4 WEAPONTYPE_UZI 160
  291. SET_CHAR_PERSONALITY creamed_guy1 PEDSTAT_TOUGH_GUY
  292. SET_CHAR_PERSONALITY creamed_guy2 PEDSTAT_TOUGH_GUY
  293. SET_CHAR_PERSONALITY creamed_guy3 PEDSTAT_TOUGH_GUY
  294. SET_CHAR_PERSONALITY creamed_guy4 PEDSTAT_TOUGH_GUY
  295.  
  296. PRINT_NOW ( DIAB2_5 ) 5000 1 // Use the remote to detonate the icecream van
  297.  
  298. WAIT 2000
  299.  
  300. CLEAR_AREA 1205.6 -1141.1 11.6 10.0 TRUE
  301.  
  302. IF NOT IS_CHAR_DEAD creamed_guy1
  303. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT creamed_guy1 1205.6 -1141.1
  304. ENDIF
  305.  
  306. IF NOT IS_CHAR_DEAD creamed_guy2
  307. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT creamed_guy2 1205.6 -1141.1
  308. ENDIF
  309.  
  310. IF NOT IS_CHAR_DEAD creamed_guy3
  311. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT creamed_guy3 1205.6 -1141.1
  312. ENDIF
  313.  
  314. IF NOT IS_CHAR_DEAD creamed_guy4
  315. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT creamed_guy4 1205.6 -1141.1
  316. ENDIF
  317.  
  318.  
  319. WHILE NOT ojective_creamed_guys_passed = 4
  320. WAIT 0
  321.  
  322. IF IS_CAR_DEAD icecreamvan_any
  323. AND removed_ice_cream_blip = 0
  324. REMOVE_BLIP blip1_icecream1
  325. removed_ice_cream_blip = 1
  326. ENDIF
  327.  
  328. IF IS_CHAR_DEAD creamed_guy1
  329. AND IS_CHAR_DEAD creamed_guy2
  330. AND IS_CHAR_DEAD creamed_guy3
  331. AND IS_CHAR_DEAD creamed_guy4
  332. GOTO mission_diablo2_passed
  333. ENDIF
  334.  
  335. IF IS_CHAR_DEAD creamed_guy1
  336. AND ojective_creamed_guy1_done_before = 0
  337. ojective_creamed_guys_passed ++
  338. ojective_creamed_guy1_done_before = 1
  339. ENDIF
  340.  
  341. IF IS_CHAR_DEAD creamed_guy2
  342. AND ojective_creamed_guy2_done_before = 0
  343. ojective_creamed_guys_passed ++
  344. ojective_creamed_guy2_done_before = 1
  345. ENDIF
  346.  
  347. IF IS_CHAR_DEAD creamed_guy3
  348. AND ojective_creamed_guy3_done_before = 0
  349. ojective_creamed_guys_passed ++
  350. ojective_creamed_guy3_done_before = 1
  351. ENDIF
  352.  
  353. IF IS_CHAR_DEAD creamed_guy4
  354. AND ojective_creamed_guy4_done_before = 0
  355. ojective_creamed_guys_passed ++
  356. ojective_creamed_guy4_done_before = 1
  357. ENDIF
  358.  
  359. GET_CAR_COORDINATES icecreamvan_any icecreamx icecreamy icecreamz
  360.  
  361. IF IS_CHAR_OBJECTIVE_PASSED creamed_guy1
  362. AND ojective_creamed_guy1_done_before = 0
  363. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT creamed_guy1 icecreamx icecreamy
  364. ojective_creamed_guys_passed ++
  365. ojective_creamed_guy1_done_before = 1
  366. ENDIF
  367.  
  368. IF IS_CHAR_OBJECTIVE_PASSED creamed_guy2
  369. AND ojective_creamed_guy2_done_before = 0
  370. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT creamed_guy2 icecreamx icecreamy
  371. ojective_creamed_guys_passed ++
  372. ojective_creamed_guy2_done_before = 1
  373. ENDIF
  374.  
  375. IF IS_CHAR_OBJECTIVE_PASSED creamed_guy3
  376. AND ojective_creamed_guy3_done_before = 0
  377. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT creamed_guy3 icecreamx icecreamy
  378. ojective_creamed_guys_passed ++
  379. ojective_creamed_guy3_done_before = 1
  380. ENDIF
  381.  
  382. IF IS_CHAR_OBJECTIVE_PASSED creamed_guy4
  383. AND ojective_creamed_guy4_done_before = 0
  384. SET_CHAR_OBJ_GOTO_COORD_ON_FOOT creamed_guy4 icecreamx icecreamy
  385. ojective_creamed_guys_passed ++
  386. ojective_creamed_guy4_done_before = 1
  387. ENDIF
  388.  
  389. IF NOT IS_CHAR_DEAD creamed_guy1
  390. IF LOCATE_PLAYER_ANY_MEANS_CHAR_3D Player creamed_guy1 8.0 8.0 2.0 FALSE
  391. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy1 Player
  392. SET_CHAR_THREAT_SEARCH creamed_guy1 THREAT_PLAYER1
  393. ENDIF
  394. ENDIF
  395.  
  396. IF NOT IS_CHAR_DEAD creamed_guy2
  397. IF LOCATE_PLAYER_ANY_MEANS_CHAR_3D Player creamed_guy2 8.0 8.0 2.0 FALSE
  398. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy2 Player
  399. SET_CHAR_THREAT_SEARCH creamed_guy2 THREAT_PLAYER1
  400. ENDIF
  401. ENDIF
  402.  
  403. IF NOT IS_CHAR_DEAD creamed_guy3
  404. IF LOCATE_PLAYER_ANY_MEANS_CHAR_3D Player creamed_guy3 8.0 8.0 2.0 FALSE
  405. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy3 Player
  406. SET_CHAR_THREAT_SEARCH creamed_guy3 THREAT_PLAYER1
  407. ENDIF
  408. ENDIF
  409.  
  410. IF NOT IS_CHAR_DEAD creamed_guy4
  411. IF LOCATE_PLAYER_ANY_MEANS_CHAR_3D Player creamed_guy4 8.0 8.0 2.0 FALSE
  412. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy4 Player
  413. SET_CHAR_THREAT_SEARCH creamed_guy4 THREAT_PLAYER1
  414. ENDIF
  415. ENDIF
  416.  
  417. IF NOT IS_CHAR_DEAD creamed_guy1
  418. GET_CHAR_HEALTH creamed_guy1 creamed_guy1_health
  419. ENDIF
  420. IF NOT IS_CHAR_DEAD creamed_guy2
  421. GET_CHAR_HEALTH creamed_guy2 creamed_guy2_health
  422. ENDIF
  423. IF NOT IS_CHAR_DEAD creamed_guy3
  424. GET_CHAR_HEALTH creamed_guy3 creamed_guy3_health
  425. ENDIF
  426. IF NOT IS_CHAR_DEAD creamed_guy4
  427. GET_CHAR_HEALTH creamed_guy4 creamed_guy4_health
  428. ENDIF
  429.  
  430. IF creamed_guy1_health < 100
  431. OR creamed_guy2_health < 100
  432. OR creamed_guy3_health < 100
  433. OR creamed_guy4_health < 100
  434.  
  435. IF creamers_spotted_you = 0
  436.  
  437. IF NOT IS_CHAR_DEAD creamed_guy1
  438. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy1 Player
  439. SET_CHAR_THREAT_SEARCH creamed_guy1 THREAT_PLAYER1
  440. ENDIF
  441.  
  442. IF NOT IS_CHAR_DEAD creamed_guy2
  443. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy2 Player
  444. SET_CHAR_THREAT_SEARCH creamed_guy2 THREAT_PLAYER1
  445. ENDIF
  446.  
  447. IF NOT IS_CHAR_DEAD creamed_guy3
  448. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy3 Player
  449. SET_CHAR_THREAT_SEARCH creamed_guy3 THREAT_PLAYER1
  450. ENDIF
  451.  
  452. IF NOT IS_CHAR_DEAD creamed_guy4
  453. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy4 Player
  454. SET_CHAR_THREAT_SEARCH creamed_guy4 THREAT_PLAYER1
  455. ENDIF
  456.  
  457. creamers_spotted_you = 1
  458. ENDIF
  459.  
  460. ENDIF
  461.  
  462. ENDWHILE
  463.  
  464.  
  465. WHILE NOT IS_CHAR_DEAD creamed_guy1
  466. OR NOT IS_CHAR_DEAD creamed_guy2
  467. OR NOT IS_CHAR_DEAD creamed_guy3
  468. OR NOT IS_CHAR_DEAD creamed_guy4
  469. WAIT 0
  470.  
  471. IF IS_CAR_DEAD icecreamvan_any
  472. AND removed_ice_cream_blip = 0
  473. REMOVE_BLIP blip1_icecream1
  474. removed_ice_cream_blip = 1
  475. ENDIF
  476.  
  477. IF NOT IS_CHAR_DEAD creamed_guy1
  478. GET_CHAR_HEALTH creamed_guy1 creamed_guy1_health
  479. ENDIF
  480. IF NOT IS_CHAR_DEAD creamed_guy2
  481. GET_CHAR_HEALTH creamed_guy2 creamed_guy2_health
  482. ENDIF
  483. IF NOT IS_CHAR_DEAD creamed_guy3
  484. GET_CHAR_HEALTH creamed_guy3 creamed_guy3_health
  485. ENDIF
  486. IF NOT IS_CHAR_DEAD creamed_guy4
  487. GET_CHAR_HEALTH creamed_guy4 creamed_guy4_health
  488. ENDIF
  489.  
  490. IF creamed_guy1_health < 100
  491. OR creamed_guy2_health < 100
  492. OR creamed_guy3_health < 100
  493. OR creamed_guy4_health < 100
  494.  
  495. IF creamers_spotted_you = 0
  496.  
  497. IF NOT IS_CHAR_DEAD creamed_guy1
  498. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy1 Player
  499. SET_CHAR_THREAT_SEARCH creamed_guy1 THREAT_PLAYER1
  500. ENDIF
  501.  
  502. IF NOT IS_CHAR_DEAD creamed_guy2
  503. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy2 Player
  504. SET_CHAR_THREAT_SEARCH creamed_guy2 THREAT_PLAYER1
  505. ENDIF
  506.  
  507. IF NOT IS_CHAR_DEAD creamed_guy3
  508. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy3 Player
  509. SET_CHAR_THREAT_SEARCH creamed_guy3 THREAT_PLAYER1
  510. ENDIF
  511.  
  512. IF NOT IS_CHAR_DEAD creamed_guy4
  513. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy4 Player
  514. SET_CHAR_THREAT_SEARCH creamed_guy4 THREAT_PLAYER1
  515. ENDIF
  516.  
  517. creamers_spotted_you = 1
  518. ENDIF
  519.  
  520. ENDIF
  521.  
  522. IF NOT IS_CHAR_DEAD creamed_guy1
  523. IF LOCATE_PLAYER_ANY_MEANS_CHAR_3D Player creamed_guy1 8.0 8.0 2.0 FALSE
  524. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy1 Player
  525. SET_CHAR_THREAT_SEARCH creamed_guy1 THREAT_PLAYER1
  526. ENDIF
  527. ENDIF
  528.  
  529. IF NOT IS_CHAR_DEAD creamed_guy2
  530. IF LOCATE_PLAYER_ANY_MEANS_CHAR_3D Player creamed_guy2 8.0 8.0 2.0 FALSE
  531. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy2 Player
  532. SET_CHAR_THREAT_SEARCH creamed_guy2 THREAT_PLAYER1
  533. ENDIF
  534. ENDIF
  535.  
  536. IF NOT IS_CHAR_DEAD creamed_guy3
  537. IF LOCATE_PLAYER_ANY_MEANS_CHAR_3D Player creamed_guy3 8.0 8.0 2.0 FALSE
  538. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy3 Player
  539. SET_CHAR_THREAT_SEARCH creamed_guy3 THREAT_PLAYER1
  540. ENDIF
  541. ENDIF
  542.  
  543. IF NOT IS_CHAR_DEAD creamed_guy4
  544. IF LOCATE_PLAYER_ANY_MEANS_CHAR_3D Player creamed_guy4 8.0 8.0 2.0 FALSE
  545. SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT creamed_guy4 Player
  546. SET_CHAR_THREAT_SEARCH creamed_guy4 THREAT_PLAYER1
  547. ENDIF
  548. ENDIF
  549.  
  550. ENDWHILE
  551.  
  552. GOTO mission_diablo2_passed
  553. }
  554.  
  555. // Mission Diablo2 failed
  556.  
  557. mission_diablo2_failed:
  558. PRINT_BIG ( M_FAIL ) 5000 1 //"Mission Failed"
  559. RETURN
  560.  
  561.  
  562.  
  563. // mission Diablo2 passed
  564.  
  565. mission_diablo2_passed:
  566.  
  567. flag_diablo_mission2_passed = 1
  568. PLAY_MISSION_PASSED_TUNE 1
  569. PRINT_WITH_NUMBER_BIG ( M_PASS ) 6000 5000 1 //"Mission Passed!"
  570. CLEAR_WANTED_LEVEL player
  571. ADD_SCORE player 8000
  572. REGISTER_MISSION_PASSED DIAB2
  573. PLAYER_MADE_PROGRESS 1
  574. START_NEW_SCRIPT diablo_mission3_loop
  575. RETURN
  576.  
  577.  
  578.  
  579. // mission cleanup
  580.  
  581. mission_cleanup_diablo2:
  582.  
  583. flag_player_on_mission = 0
  584. flag_player_on_diablo_mission = 0
  585. REMOVE_BLIP blip1_icecream1
  586. REMOVE_BLIP blip1_diablo2
  587. REMOVE_BLIP blip2_diablo2
  588. REMOVE_PICKUP briefcase_diablo2
  589. MARK_MODEL_AS_NO_LONGER_NEEDED CAR_MRWHOOPEE
  590. MARK_MODEL_AS_NO_LONGER_NEEDED PED_GANG_MAFIA_A
  591. MARK_MODEL_AS_NO_LONGER_NEEDED PED_LI_MAN1
  592. SET_PLAYER_AMMO Player WEAPONTYPE_DETONATOR 0
  593. MISSION_HAS_FINISHED
  594. RETURN
Add Comment
Please, Sign In to add comment