R4gn0r0k

hood1.sc

Feb 4th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 KB | None | 0 0
  1. MISSION_START
  2. // *******************************************************************************************
  3. // *******************************************************************************************
  4. // *******************************************************************************************
  5. // *************************************Hood Mission 1****************************************
  6. // ****************************************Drive By*******************************************
  7. // *******************************************************************************************
  8. // *******************************************************************************************
  9. // *******************************************************************************************
  10.  
  11. SCRIPT_NAME hood1
  12.  
  13. // Mission start stuff
  14.  
  15. GOSUB mission_start_hood1
  16.  
  17. GOSUB mission_cleanup_hood1
  18.  
  19. MISSION_END
  20.  
  21.  
  22. // Variables for mission
  23.  
  24. VAR_INT frenzy_state
  25.  
  26. VAR_INT radar_blip_coord_hm1
  27.  
  28. VAR_INT flag_blip_on_hm1
  29.  
  30. // ***************************************Mission Start*************************************
  31.  
  32.  
  33. mission_start_hood1:
  34.  
  35. flag_player_on_mission = 1
  36.  
  37. flag_player_on_hood_mission = 1
  38.  
  39. flag_blip_on_hm1 = 0
  40.  
  41. REGISTER_MISSION_GIVEN
  42.  
  43. WAIT 0
  44.  
  45. {
  46.  
  47. SET_DEATHARREST_STATE OFF
  48.  
  49. SETUP_ZONE_PED_INFO PROJECT DAY (30) (0 0 0 0) 0 0 800 0 //WICHITA GARDENS
  50. SETUP_ZONE_PED_INFO PROJECT NIGHT (30) (0 0 0 0) 0 0 800 0
  51.  
  52. // ****************************************START OF CUTSCENE********************************
  53.  
  54. /*
  55. IF CAN_PLAYER_START_MISSION Player
  56. MAKE_PLAYER_SAFE_FOR_CUTSCENE Player
  57. ELSE
  58. GOTO mission_hood1_failed
  59. ENDIF
  60.  
  61. SET_FADING_COLOUR 0 0 0
  62.  
  63. DO_FADE 1500 FADE_OUT
  64.  
  65. PRINT_BIG ( HM_1 ) 15000 2 //"Uzi Driver"
  66.  
  67. SWITCH_STREAMING OFF
  68.  
  69. //LOAD_SPECIAL_MODEL cut_obj1 PLAYERH
  70.  
  71. WHILE GET_FADING_STATUS
  72.  
  73. WAIT 0
  74.  
  75. ENDWHILE
  76. */
  77.  
  78. SET_PED_DENSITY_MULTIPLIER 0.0
  79.  
  80. CLEAR_AREA_OF_CHARS -414.57 97.73 1.0 -589.29 -101.77 20.0
  81.  
  82. //LOAD_ALL_MODELS_NOW
  83.  
  84. //WHILE NOT HAS_MODEL_LOADED cut_obj1
  85.  
  86. // WAIT 0
  87.  
  88. //ENDWHILE
  89.  
  90. LOAD_CUTSCENE hd_ph1
  91. SET_CUTSCENE_OFFSET -444.714 -6.321 2.9
  92.  
  93. CREATE_CUTSCENE_OBJECT PED_PLAYER cs_player
  94. SET_CUTSCENE_ANIM cs_player player
  95.  
  96. //CREATE_CUTSCENE_HEAD cs_player CUT_OBJ1 cs_playerhead
  97. //SET_CUTSCENE_HEAD_ANIM cs_playerhead player
  98.  
  99.  
  100. DO_FADE 1500 FADE_IN
  101.  
  102. SWITCH_STREAMING ON
  103.  
  104. START_CUTSCENE
  105.  
  106. // Displays cutscene text
  107.  
  108.  
  109. GET_CUTSCENE_TIME cs_time
  110.  
  111. WHILE cs_time < 2096
  112. WAIT 0
  113. GET_CUTSCENE_TIME cs_time
  114. ENDWHILE
  115. PRINT_NOW ( HM1_A ) 10000 1 //"Yo this is D-ice of the Red Jacks!"
  116.  
  117. WHILE cs_time < 4887
  118. WAIT 0
  119. GET_CUTSCENE_TIME cs_time
  120. ENDWHILE
  121.  
  122. PRINT_NOW ( HM1_B ) 10000 1 //"I got a problem that's messin' my rep."
  123.  
  124. WHILE cs_time < 7511
  125. WAIT 0
  126. GET_CUTSCENE_TIME cs_time
  127. ENDWHILE
  128.  
  129. PRINT_NOW ( HM1_C ) 10000 1 //"These yound punks..."
  130.  
  131. WHILE cs_time < 12668
  132. WAIT 0
  133. GET_CUTSCENE_TIME cs_time
  134. ENDWHILE
  135.  
  136. PRINT_NOW ( HM1_D ) 10000 1 //"Nine is their tag...."
  137.  
  138. WHILE cs_time < 16765
  139. WAIT 0
  140. GET_CUTSCENE_TIME cs_time
  141. ENDWHILE
  142.  
  143. PRINT_NOW ( HM1_G ) 10000 1 //"is another day the Jacks..."
  144.  
  145. WHILE cs_time < 19026
  146. WAIT 0
  147. GET_CUTSCENE_TIME cs_time
  148. ENDWHILE
  149.  
  150. PRINT_NOW ( HM1_E ) 10000 1 //I want you to show..."
  151.  
  152. WHILE cs_time < 23017
  153. WAIT 0
  154. GET_CUTSCENE_TIME cs_time
  155. ENDWHILE
  156.  
  157. PRINT_NOW ( HM1_H ) 10000 1 //"Mow those nines down."
  158.  
  159. WHILE cs_time < 25018
  160. WAIT 0
  161. GET_CUTSCENE_TIME cs_time
  162. ENDWHILE
  163.  
  164. PRINT_NOW ( HM1_F ) 10000 1 ///"Watch your back..."
  165.  
  166. WHILE cs_time < 28865
  167. WAIT 0
  168. GET_CUTSCENE_TIME cs_time
  169. ENDWHILE
  170.  
  171. CLEAR_THIS_PRINT ( HM1_F )
  172.  
  173. WHILE cs_time < 30000
  174. WAIT 0
  175. GET_CUTSCENE_TIME cs_time
  176. ENDWHILE
  177.  
  178. DO_FADE 1500 FADE_OUT
  179.  
  180. WHILE NOT HAS_CUTSCENE_FINISHED
  181. WAIT 0
  182.  
  183. ENDWHILE
  184.  
  185. CLEAR_PRINTS
  186.  
  187. WHILE GET_FADING_STATUS
  188. WAIT 0
  189. ENDWHILE
  190.  
  191. CLEAR_CUTSCENE
  192.  
  193. //SWITCH_STREAMING ON
  194.  
  195. WAIT 500
  196.  
  197. DO_FADE 1500 FADE_IN
  198.  
  199. //MARK_MODEL_AS_NO_LONGER_NEEDED CUT_OBJ1
  200.  
  201. SET_PED_DENSITY_MULTIPLIER 1.0
  202.  
  203.  
  204. // ****************************************END OF CUTSCENE**********************************
  205.  
  206. IF NOT IS_PLAYER_PLAYING player
  207. PRINT_BIG ( M_FAIL ) 5000 1 //"Mission Failed!"
  208. GOTO mission_hood1_failed
  209. ENDIF
  210.  
  211. WHILE GET_FADING_STATUS
  212.  
  213. WAIT 0
  214.  
  215. IF NOT IS_PLAYER_PLAYING player
  216. PRINT_BIG ( M_FAIL ) 5000 1 //"Mission Failed!"
  217. GOTO mission_hood1_failed
  218. ENDIF
  219.  
  220. ENDWHILE
  221.  
  222. // waiting for the player to get to the zone
  223.  
  224. PRINT_NOW ( HM1_2 ) 5000 1 //"Get a vehicle!"
  225.  
  226. IF flag_done_drive_by_help = 0
  227.  
  228. GET_CONTROLLER_MODE controlmode
  229.  
  230. IF controlmode = 0
  231. PRINT_HELP ( DRIVE_A ) //"Have an Uzi selected when entering a vehicle then look left or right and press the ~h~| button~w~ to fire."
  232. flag_done_drive_by_help = 1
  233. ENDIF
  234.  
  235. IF controlmode = 1
  236. PRINT_HELP ( DRIVE_A ) //"Have an Uzi selected when entering a vehicle then look left or right and press the ~h~| button~w~ to fire."
  237. flag_done_drive_by_help = 1
  238. ENDIF
  239.  
  240. IF controlmode = 2
  241. PRINT_HELP ( DRIVE_A ) //"Have an Uzi selected when entering a vehicle then look left or right and press the ~h~| button~w~ to fire."
  242. flag_done_drive_by_help = 1
  243. ENDIF
  244.  
  245. IF controlmode = 3
  246. PRINT_HELP ( DRIVE_B ) //"Have an Uzi selected when entering a vehicle then look left or right and press the ~h~R1 button~w~ to fire."
  247. flag_done_drive_by_help = 1
  248. ENDIF
  249.  
  250. ENDIF
  251.  
  252.  
  253. WHILE NOT IS_PLAYER_IN_ANY_CAR player
  254.  
  255. WAIT 0
  256.  
  257. IF NOT IS_PLAYER_PLAYING player
  258. PRINT_BIG ( M_FAIL ) 5000 1 //"Mission Failed!"
  259. GOTO mission_hood1_failed
  260. ENDIF
  261.  
  262. ENDWHILE
  263.  
  264. PRINT_NOW ( HM1_3 ) 5000 1 //"Get to the correct zone!"
  265. ADD_BLIP_FOR_COORD -442.3 -6.8 -100.0 radar_blip_coord_hm1
  266. flag_blip_on_hm1 = 1
  267.  
  268. WHILE NOT IS_PLAYER_IN_ZONE player PROJECT
  269. AND NOT IS_PLAYER_IN_ANY_CAR player
  270.  
  271. WAIT 0
  272.  
  273. IF NOT IS_PLAYER_PLAYING player
  274. PRINT_BIG ( M_FAIL ) 5000 1 //"Mission Failed!"
  275. GOTO mission_hood1_failed
  276. ENDIF
  277.  
  278. ENDWHILE
  279.  
  280. REMOVE_BLIP radar_blip_coord_hm1
  281. flag_blip_on_hm1 = 0
  282.  
  283. START_KILL_FRENZY ( HM1_1 ) WEAPONTYPE_UZI_DRIVEBY 150000 20 PED_GANG_HOOD_B -1 -1 -1 FALSE
  284.  
  285. READ_KILL_FRENZY_STATUS frenzy_state
  286.  
  287. WHILE frenzy_state = 1
  288.  
  289. WAIT 0
  290.  
  291. READ_KILL_FRENZY_STATUS frenzy_state
  292.  
  293. IF NOT IS_PLAYER_PLAYING player
  294. PRINT_BIG ( M_FAIL ) 5000 1 //"Mission Failed!"
  295. GOTO mission_hood1_failed
  296. ELSE
  297.  
  298. IF NOT IS_PLAYER_IN_ZONE player PROJECT
  299.  
  300. IF flag_blip_on_hm1 = 0
  301. ADD_BLIP_FOR_COORD -442.3 -6.8 -100.0 radar_blip_coord_hm1
  302. PRINT_NOW ( HM1_3 ) 5000 1 //"Get to the correct zone!"
  303. flag_blip_on_hm1 = 1
  304. ENDIF
  305.  
  306. ELSE
  307.  
  308. IF flag_blip_on_hm1 = 1
  309. REMOVE_BLIP radar_blip_coord_hm1
  310. flag_blip_on_hm1 = 0
  311. ENDIF
  312.  
  313. ENDIF
  314.  
  315. ENDIF
  316.  
  317. ENDWHILE
  318.  
  319. READ_KILL_FRENZY_STATUS frenzy_state
  320.  
  321.  
  322.  
  323. IF frenzy_state = 2
  324. GOTO mission_hood1_passed
  325. ENDIF
  326.  
  327. IF frenzy_state = 3
  328. PRINT_BIG ( M_FAIL ) 5000 1 //"Mission Failed!"
  329. GOTO mission_hood1_failed
  330. ENDIF
  331.  
  332. }
  333.  
  334. // Mission hood1 failed
  335.  
  336. mission_hood1_failed:
  337.  
  338. IF HAS_PLAYER_BEEN_ARRESTED player
  339. OVERRIDE_POLICE_STATION_LEVEL LEVEL_SUBURBAN
  340. ENDIF
  341.  
  342. IF IS_PLAYER_DEAD player
  343. OVERRIDE_HOSPITAL_LEVEL LEVEL_SUBURBAN
  344. ENDIF
  345.  
  346. RETURN
  347.  
  348.  
  349.  
  350.  
  351. // mission hood1 passed
  352.  
  353. mission_hood1_passed:
  354.  
  355. flag_hood_mission1_passed = 1
  356. REGISTER_MISSION_PASSED ( HM_1 )
  357. PLAYER_MADE_PROGRESS 1
  358. PRINT_WITH_NUMBER_BIG ( M_PASS ) 10000 5000 1 //Mission Passed!"
  359. PLAY_MISSION_PASSED_TUNE 1
  360. ADD_SCORE player 10000
  361. CLEAR_WANTED_LEVEL player
  362. START_NEW_SCRIPT hood_mission2_loop
  363. RETURN
  364.  
  365.  
  366.  
  367. // mission cleanup
  368.  
  369. mission_cleanup_hood1:
  370.  
  371. flag_player_on_mission = 0
  372. flag_player_on_hood_mission = 0
  373. REMOVE_BLIP radar_blip_coord_hm1
  374. SETUP_ZONE_PED_INFO PROJECT DAY (13) (0 0 0 0) 0 0 300 20 //WICHITA GARDENS
  375. SETUP_ZONE_PED_INFO PROJECT NIGHT ( 9) (0 0 0 0) 0 0 400 10
  376. MISSION_HAS_FINISHED
  377. RETURN
Add Comment
Please, Sign In to add comment