Guest User

SCM gta vc script

a guest
Dec 4th, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 21.07 KB | None | 0 0
  1. DEFINE MISSIONS 2
  2. DEFINE MISSION 0 AT @Setup
  3. DEFINE MISSION 1 AT @Intro
  4.  
  5. {$USE Restoration}
  6. {$USE CLEO}
  7. {$USE ini}
  8.  
  9. //-------------MAIN GAME THREAD---------------
  10. thread 'MAIN'
  11.     var
  12.         $PLAYER_CHAR: Player
  13.     end // var
  14.     016A: fade 0 0 ms
  15.     01F0: set_max_wanted_level_to 1
  16.     0111: set_wasted_busted_check_to 0
  17.     00C0: set_current_time 14 0
  18.     04E4: unknown_refresh_game_renderer_at -103.1826 76.4718
  19.     03CB: load_scene -103.1826 76.4718 23.2787
  20.     Player.Create($PLAYER_CHAR,#NULL, -103.1826, 76.4718, 23.2787)
  21.    01F5: $PLAYER_ACTOR = create_emulated_actor_from_player $PLAYER_CHAR
  22.     //Weather.Force(0)
  23.     01B5: force_weather 0
  24.     wait 0 ms
  25.     0180: set_on_mission_flag_to $ONMISSION // Note: your missions should use the variable defined here ($ONMISSION)
  26.     if
  27.         NOT Actor.Dead($PLAYER_ACTOR)
  28.     then
  29.       0352: set_actor $PLAYER_ACTOR skin_to 'PLAYER'
  30.       038B: load_requested_models
  31.       0353: refresh_actor $PLAYER_ACTOR
  32.     end
  33.     016A: fade 1 (out)  1000 ms
  34.     if
  35.     $PLAYER_CHAR.Defined()
  36.     then
  37.         select_interior 0  // select render area
  38.         $PLAYER_CHAR.CanMove = True
  39.         01B7: release_weather    
  40.     end
  41.     // put your start_new_script commands here
  42.  
  43. //0AF5: write_string "Beginning" to_ini_file "Debugging.ini" section "Debugging" key "Debugging"
  44. //wait 0 //Crash happends here for some reason...                                                                                              
  45. 0AF5: write_string "Passed wait 0" to_ini_file "Debugging.ini" section "Debugging" key "Debugging"
  46. start_mission 0
  47. 0AF5: write_string "Passed start_mission 0" to_ini_file "Debugging.ini" section "Debugging" key "Debugging"
  48. wait 0
  49. 0AF5: write_string "Passed wait 0 num 2" to_ini_file "Debugging.ini" section "Debugging" key "Debugging"
  50. start_mission 1  
  51.  
  52. 0AF5: write_string "Finished!" to_ini_file "Debugging.ini" section "Debugging" key "Debugging"
  53.  
  54. 04CE: $savegame1m = create_icon_marker_without_sphere 19 at 267.2239 -133.7665 11.8358
  55. Pickup.Create($savegame1,#PICKUPSAVE,15,267.7696, -134.4481, 11.8348)
  56.  
  57. while true
  58. wait 0
  59.     if and
  60.      Pickup.Picked_up($savegame1)
  61.      80DF:   not actor $PLAYER_ACTOR driving
  62.     then
  63.         if
  64.         $ONMISSION == 0
  65.         then
  66.             03D8: show_save_screen
  67.             Pickup.Destroy($savegame1)
  68.             wait 4000
  69.             Pickup.Create($savegame1,#PICKUPSAVE,15,267.7696 -134.4481 11.8348)
  70.        else
  71.             Pickup.Destroy($savegame1)
  72.             wait 4000
  73.             Pickup.Create($savegame1,#PICKUPSAVE,15,267.7696 -134.4481 11.8348)
  74.        end
  75.     end
  76. end  
  77.  
  78. // put your scripts here
  79.  
  80.  
  81. // include missions
  82.  
  83. {$INCLUDE Mission0_Setup.txt}
  84.  
  85. {$INCLUDE Mission1_Intro.txt}
  86.  
  87. /////// Mission0_Setup.txt
  88.  
  89. :Setup
  90. thread 'SETUP'
  91. 0169: set_fade_color 0 0 0
  92. fade 0 0 //All black.
  93. $DEFAULT_WAIT_TIME = 250    
  94. Player.Money($PLAYER_CHAR) += 50
  95. 029B: $ARENA_DOOR_1 = init_object -1 (DTN_STADDOORA) at -1109.615 1330.097 20.372
  96. 01C7: remove_object_from_mission_cleanup_list $ARENA_DOOR_1
  97. 029B: $ARENA_DOOR_2 = init_object -2 (DTN_STADDOORB) at -1109.615 1331.932 20.372
  98. 01C7: remove_object_from_mission_cleanup_list $ARENA_DOOR_2
  99. 029B: $6 = init_object -3 (DTHOTRING_A) at -1037.08 1340.258 36.552
  100. 01C7: remove_object_from_mission_cleanup_list $6
  101. 029B: $FILM_STUDIO_FRONT_GATE_OPEN = init_object -163 (CI_GATESOPEN) at 10.273 963.308 12.258
  102. 01C7: remove_object_from_mission_cleanup_list $FILM_STUDIO_FRONT_GATE_OPEN
  103. 029B: $FILM_STUDIO_BACK_GATE_OPEN = init_object -164 (CI_BACKGATEOPEN) at -14.381 884.12 13.542
  104. 01C7: remove_object_from_mission_cleanup_list $FILM_STUDIO_BACK_GATE_OPEN
  105.  
  106. 029B: $1810 = init_object -165 (CI_JETYGATESOPEN) at -115.825 1028.55 11.334
  107. 01C7: remove_object_from_mission_cleanup_list $1810
  108.  
  109.  
  110. 029B: $1779 = init_object -31 (COMGATE1OPEN) at -712.524 -489.428 12.549
  111. 01C7: remove_object_from_mission_cleanup_list $1779
  112.  
  113. 029B: $1780 = init_object -32 (COMGATE2OPEN) at -183.824 -473.223 12.615
  114. 01C7: remove_object_from_mission_cleanup_list $1780
  115.  
  116. 029B: $1010 = init_object -21 (COP_DR_CLOSED) at 396.545 -472.883 12.6
  117. 01C7: remove_object_from_mission_cleanup_list $1010
  118.  
  119. 029B: $1821 = init_object -123 (GOLF_GATESOPEN) at 107.81 228.072 20.989
  120. 01C7: remove_object_from_mission_cleanup_list $1821
  121.  
  122. 029B: $1787 = init_object -61 (MANSION_NEW_DOORS) at -391.19 -575.906 24.071
  123. 01C7: remove_object_from_mission_cleanup_list $1787
  124. 029B: $1788 = init_object -62 (MAN_DOORCLOSED) at -378.542 -554.006 20.067
  125. 01C7: remove_object_from_mission_cleanup_list $1788
  126. 029B: $1784 = init_object -63 (WSHPERDRCLSD) at -266.496 -1214.563 9.02
  127. 01C7: remove_object_from_mission_cleanup_list $1784
  128. 029B: $1785 = init_object -64 (HAITAXIDR) at -1010.466 199.125 11.95
  129. 01C7: remove_object_from_mission_cleanup_list $1785
  130. 029B: $1786 = init_object -65 (B_HSE_DOORS) at -640.012 -1485.941 15.457
  131. 01C7: remove_object_from_mission_cleanup_list $1786
  132. 029B: $1007 = init_object -23 (STRIPCLBDRCLSD) at 97.203 -1469.731 10.578
  133. 01C7: remove_object_from_mission_cleanup_list $1007
  134. 029B: $1790 = init_object -22 (STRPBCKDRCLSD) at 68.988 -1444.242 10.727
  135. 01C7: remove_object_from_mission_cleanup_list $1790
  136. 029B: $1793 = init_object -66 (DK_CAMJONESDOOR) at -837.134 -901.672 12.03
  137. 01C7: remove_object_from_mission_cleanup_list $1793
  138. 0177: set_object $1793 z_angle_to 0.0
  139. 029B: $1801 = init_object -67 (DTS_GS_LIFTDOORL) at -559.476 783.107 23.279
  140. 01C7: remove_object_from_mission_cleanup_list $1801
  141. 029B: $1802 = init_object -68 (DTS_GS_LIFTDOORR) at -559.476 781.34 23.279
  142. 01C7: remove_object_from_mission_cleanup_list $1802
  143. 029B: $1803 = init_object -67 (DTS_GS_LIFTDOORL) at -553.563 788.895 97.917
  144. 01C7: remove_object_from_mission_cleanup_list $1803
  145. 029B: $1804 = init_object -68 (DTS_GS_LIFTDOORR) at -553.563 787.127 97.917
  146. 01C7: remove_object_from_mission_cleanup_list $1804
  147. 029B: $1809 = init_object -72 (OD_CELLDOOR02) at 384.098 -505.893 9.68
  148. 0566: $1809 12
  149. 01C7: remove_object_from_mission_cleanup_list $1809
  150. 0177: set_object $1809 z_angle_to 0.0
  151. 029B: $1811 = init_object -73 (CI_JETYGATESCLOSED) at -116.738 1027.729 11.34
  152. 01C7: remove_object_from_mission_cleanup_list $1811
  153. 029B: $1812 = init_object -74 (NHAITPLATDR) at -981.114 265.419 8.939
  154. 01C7: remove_object_from_mission_cleanup_list $1812
  155. 029B: $1813 = init_object -75 (NHAITPLATDRR) at -981.114 267.607 8.937
  156. 01C7: remove_object_from_mission_cleanup_list $1813
  157. 029B: $1814 = init_object -76 (SPAD_DR_CLOSED1) at 465.375 30.336 33.181
  158. 01C7: remove_object_from_mission_cleanup_list $1814
  159. 029B: $1815 = init_object -77 (SPAD_DR_CLOSED2) at 465.375 30.336 33.181
  160. 01C7: remove_object_from_mission_cleanup_list $1815
  161. 029B: $1816 = init_object -78 (SPAD_DR_CLOSED3) at 464.663 30.336 23.881
  162. 01C7: remove_object_from_mission_cleanup_list $1816
  163. 029B: $1817 = init_object -79 (PH_BUILD_DR_CLOSED) at 569.925 52.0 14.616
  164. 01C7: remove_object_from_mission_cleanup_list $1817
  165. 034D: unknown_rotate_object $1817 unknown_angle 270.0 270.0 0
  166. 029B: $1822 = init_object -83 (PRINTDOOOR) at -1063.773 -278.932 13.024
  167. 01C7: remove_object_from_mission_cleanup_list $1822
  168. 029B: $1823 = init_object -84 (UNROCKETED_WIN1) at -899.851 -341.061 14.318
  169. 0566: $1823 3
  170. 01C7: remove_object_from_mission_cleanup_list $1823
  171. 029B: $1824 = init_object -85 (BNK_GRILL01) at -899.214 -333.656 21.233
  172. 0566: $1824 3
  173. 0382: unknown_set_object $1824 collision_detection 0
  174. 0392: object $1824 toggle_in_moving_list 0
  175. 01C7: remove_object_from_mission_cleanup_list $1824
  176. 029B: $1825 = init_object -85 (BNK_GRILL01) at -899.214 -348.466 21.233
  177. 0566: $1825 3
  178. 0382: unknown_set_object $1825 collision_detection 0
  179. 0392: object $1825 toggle_in_moving_list 0
  180. 01C7: remove_object_from_mission_cleanup_list $1825
  181. 029B: $1826 = init_object -85 (BNK_GRILL01) at -907.307 -336.618 23.987
  182. 0566: $1826 3
  183. 0382: unknown_set_object $1826 collision_detection 0
  184. 0392: object $1826 toggle_in_moving_list 0
  185. 01C7: remove_object_from_mission_cleanup_list $1826
  186. 029B: $1827 = init_object -85 (BNK_GRILL01) at -907.307 -345.504 23.987
  187. 0566: $1827 3
  188. 0382: unknown_set_object $1827 collision_detection 0
  189. 0392: object $1827 toggle_in_moving_list 0
  190. 01C7: remove_object_from_mission_cleanup_list $1827
  191. 029B: $1828 = init_object -85 (BNK_GRILL01) at -915.401 -336.6184 23.987
  192. 0566: $1828 3
  193. 0382: unknown_set_object $1828 collision_detection 0
  194. 0392: object $1828 toggle_in_moving_list 0
  195. 01C7: remove_object_from_mission_cleanup_list $1828
  196. 029B: $1829 = init_object -85 (BNK_GRILL01) at -915.401 -345.5 23.987
  197. 0566: $1829 3
  198. 0382: unknown_set_object $1829 collision_detection 0
  199. 0392: object $1829 toggle_in_moving_list 0
  200. 01C7: remove_object_from_mission_cleanup_list $1829
  201.  
  202. 029B: $1013 = init_object -25 (OD_CLBDR_CLOSE) at 490.34 -77.017 11.598
  203. 01C7: remove_object_from_mission_cleanup_list $1013
  204. //SETTING UP THNIGS  
  205. 014B: $veh1 = init_car_generator #ADMIRAL 0 0 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at 274.1262 -131.6131 11.4019 angle 238.1687
  206. 014C: set_parked_car_generator $veh1 cars_to_generate_to 101
  207. 014B: $veh1 = init_car_generator #PONY -1 -1 force_spawn 0 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at 339.7272 -260.3898 12.1667 angle 8.6103
  208. 014C: set_parked_car_generator $veh1 cars_to_generate_to 101
  209. 032B: $pick1 = create_weapon_pickup #COLT45 15 ammo 187 at 264.0234 -121.1636 12.0752
  210. 032B: $pick2 = create_weapon_pickup #SNIPER 15 ammo 20 at 266.5475 -249.879 36.1134
  211. Pickup.Create($pick3,#BODYARMOUR,15,329.7829,-265.0604,12.4681)
  212. 032B: $pick4 = create_weapon_pickup #TEC9 15 ammo 150 at 161.2798 -389.6965 36.3595
  213. Pickup.Create($pick5,#HAMMER,15,148.9205,-350.2551,8.8187)
  214. Pickup.Create($pick6,#KNIFECUR,15,-957.6929 -352.4937 13.382)
  215. 032B: $pick7 = create_weapon_pickup #M60 15 ammo 100 at -476.3279 -572.2332 12.8897
  216. Pickup.Create($pick8,#HEALTH,15,-885.3028, -458.5196, 13.1106)
  217. Pickup.Create($pick9,#HEALTH,15,-817.9742, 1143.4154, 12.4111)
  218. Pickup.Create($pick10,#HEALTH,15,-138.1335, -985.9462, 10.468)
  219. Pickup.Create($pick11,#HEALTH,15,470.2286, 695.663, 12.135)
  220. ///GANGS
  221. //Anti vercetti (now named Bears)
  222. 0235: set_gang 3 models_to #WMYCR #WMYST
  223. 0236: set_gang 3 car_to #SENTXS
  224. 0237: set_gang 3 primary_weapon_to 24 secondary_weapon_to 18
  225. //Vercetti
  226. 0235: set_gang 1 models_to #PGB #PGA
  227. 0236: set_gang 1 car_to #SABRETUR
  228. 0237: set_gang 1 primary_weapon_to 27 secondary_weapon_to 23
  229. //Cubans
  230. 0236: set_gang 0 car_to #CUBAN
  231. 0237: set_gang 0 primary_weapon_to 17 secondary_weapon_to 10
  232. //Bear gang zones
  233. 015C: set_zone_gang_info 'STREET1' 1 20 0 0 0 100 0 0 0 0 0 100
  234. 0152: set_zone_car_info 'STREET1' 1 20 0 0 0 100 0 0 0 0 0 100
  235. 015C: set_zone_gang_info 'STREET1' 0 6 0 0 0 200 0 0 0 0 0 100
  236. 0152: set_zone_car_info 'STREET1' 0 6 0 0 0 200 0 0 0 0 0 100
  237. 015C: set_zone_gang_info 'CONSTRU' 1 20 0 0 0 100 0 0 0 0 0 100
  238. 0152: set_zone_car_info 'CONSTRU' 1 20 0 0 0 100 0 0 0 0 0 100
  239. 015C: set_zone_gang_info 'CONSTRU' 0 6 0 0 0 200 0 0 0 0 0 100
  240. 0152: set_zone_car_info 'CONSTRU' 0 6 0 0 0 200 0 0 0 0 0 100
  241. 015C: set_zone_gang_info 'RICH1' 1 20 0 0 0 100 0 0 0 0 0 100
  242. 0152: set_zone_car_info 'RICH1' 1 20 0 0 0 100 0 0 0 0 0 100
  243. 015C: set_zone_gang_info 'RICH1' 0 6 0 0 0 200 0 0 0 0 0 100
  244. 0152: set_zone_car_info 'RICH1' 0 6 0 0 0 200 0 0 0 0 0 100
  245. 015C: set_zone_gang_info 'SHOP1' 1 20 0 0 0 100 0 0 0 0 0 100
  246. 0152: set_zone_car_info 'SHOP' 1 20 0 0 0 100 0 0 0 0 0 100
  247. 015C: set_zone_gang_info 'SHOP1' 0 6 0 0 0 200 0 0 0 0 0 100
  248. 0152: set_zone_car_info 'SHOP' 0 6 0 0 0 200 0 0 0 0 0 100
  249. //Vercetti gang zones
  250. 015C: set_zone_gang_info 'CLUB1' 1 20 0 100 0 0 0 0 0 0 0 100
  251. 0152: set_zone_car_info 'CLUB1' 1 20 0 100 0 0 0 0 0 0 0 100
  252. 015C: set_zone_gang_info 'CLUB1' 0 6 0 200 0 0 0 0 0 0 0 100
  253. 0152: set_zone_car_info 'CLUB1' 0 6 0 200 0 0 0 0 0 0 0 100
  254. 015C: set_zone_gang_info 'BEACH3' 1 20 0 100 0 0 0 0 0 0 0 100
  255. 0152: set_zone_car_info 'BEACH3' 1 20 0 100 0 0 0 0 0 0 0 100
  256. 015C: set_zone_gang_info 'BEACH3' 0 6 0 200 0 0 0 0 0 0 0 100
  257. 0152: set_zone_car_info 'BEACH3' 0 6 0 200 0 0 0 0 0 0 0 100
  258. 0152: set_zone_car_info 'GANG1' 1 0 0 1000 0 0 0 0 0 0 0 0 //Vercetti Estate
  259. 0152: set_zone_car_info 'GANG1' 0 0 0 2000 0 0 0 0 0 0 0 0
  260. 0152: set_zone_car_info 'ICCREAM' 1 0 0 1000 0 0 0 0 0 0 0 0 //Ice cream xddd
  261. 0152: set_zone_car_info 'ICCREAM' 0 0 0 1000 0 0 0 0 0 0 0 0
  262. 015C: set_zone_gang_info 'RICH3' 1 20 0 100 0 0 0 0 0 0 0 100
  263. 0152: set_zone_car_info 'RICH3' 1 20 0 100 0 0 0 0 0 0 0 100
  264. 015C: set_zone_gang_info 'RICH3' 0 6 0 200 0 0 0 0 0 0 0 100
  265. 0152: set_zone_car_info 'RICH3' 0 6 0 200 0 0 0 0 0 0 0 100
  266. 0152: set_zone_car_info 'CARYRD' 1 0 0 1000 0 0 0 0 0 0 0 0 //Sunchine
  267. 0152: set_zone_car_info 'CARYRD' 0 0 0 1000 0 0 0 0 0 0 0 0
  268. 0152: set_zone_car_info 'BOATYRD' 1 0 0 1000 0 0 0 0 0 0 0 0 //Boatyard
  269. 0152: set_zone_car_info 'BOATYRD' 0 0 0 1000 0 0 0 0 0 0 0 0
  270. 0152: set_zone_car_info 'KAUFCAB' 1 0 0 1000 0 0 0 0 0 0 0 0 //Boatyard
  271. 0152: set_zone_car_info 'KAUFCAB' 0 0 0 1000 0 0 0 0 0 0 0 0
  272. 0152: set_zone_car_info 'PRINTWK' 1 0 0 1000 0 0 0 0 0 0 0 0 //Boatyard
  273. 0152: set_zone_car_info 'PRINTWK' 0 0 0 1000 0 0 0 0 0 0 0 0
  274. 015C: set_zone_gang_info 'CLUB2' 1 20 0 100 0 0 0 0 0 0 0 100
  275. 0152: set_zone_car_info 'CLUB2' 1 20 0 100 0 0 0 0 0 0 0 100
  276. 015C: set_zone_gang_info 'CLUB2' 0 6 0 200 0 0 0 0 0 0 0 100
  277. 0152: set_zone_car_info 'CLUB2' 0 6 0 200 0 0 0 0 0 0 0 100
  278. 015C: set_zone_gang_info 'OCEAND1' 1 20 0 100 0 0 0 0 0 0 0 100
  279. 0152: set_zone_car_info 'OCEAND1' 1 20 0 100 0 0 0 0 0 0 0 100
  280. 015C: set_zone_gang_info 'OCEAND1' 0 6 0 200 0 0 0 0 0 0 0 100
  281. 0152: set_zone_car_info 'OCEAND1' 0 6 0 200 0 0 0 0 0 0 0 100
  282. //Cuban gang zones
  283. 015C: set_zone_gang_info 'GHETTO1' 1 20 100 0 0 0 0 0 0 0 0 100
  284. 0152: set_zone_car_info 'GHETTO1' 1 20 100 0 0 0 0 0 0 0 0 100
  285. 015C: set_zone_gang_info 'GHETTO1' 0 6 200 0 0 0 0 0 0 0 0 100
  286. 0152: set_zone_car_info 'GHETTO1' 0 6 200 0 0 0 0 0 0 0 0 100
  287. 015C: set_zone_gang_info 'GHETTO2' 1 20 100 0 0 0 0 0 0 0 0 100
  288. 0152: set_zone_car_info 'GHETTO2' 1 20 100 0 0 0 0 0 0 0 0 100
  289. 015C: set_zone_gang_info 'GHETTO2' 0 6 200 0 0 0 0 0 0 0 0 100
  290. 0152: set_zone_car_info 'GHETTO2' 0 6 200 0 0 0 0 0 0 0 0 100
  291. 015C: set_zone_gang_info 'GANG2' 1 20 100 0 0 0 0 0 0 0 0 100
  292. 0152: set_zone_car_info 'GANG2' 1 20 100 0 0 0 0 0 0 0 0 100
  293. 015C: set_zone_gang_info 'GANG2' 0 6 200 0 0 0 0 0 0 0 0 100
  294. 0152: set_zone_car_info 'GANG2' 0 6 200 0 0 0 0 0 0 0 0 100
  295.  
  296. 022B: create_forbidden_for_peds_cube 354.9 -483.1 21.0 406.0 -490.0 10.0
  297. 022B: create_forbidden_for_peds_cube -894.5508 -312.7657 11.0815 -986.1516 -362.1745 30.0
  298. //garages
  299.  
  300. 0219: $681 = create_garage_type 5 door -914.129 -1263.54 10.706 to -906.3 -1266.9 14.421 depth -907.137 -1246.626
  301. 0219: $682 = create_garage_type 5 door -1014.341 -857.732 6.325 to -1014.341 -841.532 10.885 depth -1001.315 -857.732
  302. 03BB: set_garage $682 door_type_to_swing_open
  303. 0219: $683 = create_garage_type 5 door -886.157 -115.158 9.992 to -876.7 -119.83 15.58 depth -882.699 -108.312
  304. 0219: $684 = create_garage_type 5 door 323.9 427.4 10.0 to 313.9 430.53 15.7 depth 326.3 434.5
  305. 0219: $685 = create_garage_type 5 door -7.55 -1253.77 9.322 to 2.64 -1253.7 14.4 depth -7.55 -1261.2
  306.  
  307. //respawn points  
  308. 016C: restart_if_wasted at 493.5 703.1 11.1 90.0
  309. 016D: restart_if_busted at 508.9 506.8 10.3 174.0
  310. 016C: restart_if_wasted at -108.3 -974.4 9.4 283.9
  311. 016D: restart_if_busted at 398.8 -469.7 10.7 323.0
  312. 016C: restart_if_wasted at -822.7 1157.9 10.1 4.0
  313. 016D: restart_if_busted at -659.5 760.4 10.5 133.0
  314. 016C: restart_if_wasted at -885.2 -470.4 12.1 276.0
  315. 016D: restart_if_busted at -871.9 -682.3 10.2 328.1
  316. fade 1 1000
  317. end_thread
  318.  
  319.  
  320.  
  321. ///////////////////////Mission1_Intro.txt
  322.  
  323. :Intro    
  324. thread 'INTRO'
  325. //initialize cutscene
  326. 0169: set_fade_color 0 0 0  
  327. 03DE: set_pedestrians_density_multiplier_to 0.0  
  328. 01EB: set_traffic_density_multiplier_to 0.0  
  329. 02A3: enable_widescreen 1  
  330.  
  331. fade 0 0    
  332. $ONMISSION = 1
  333.      
  334. //cars      
  335. Model.Load(#SECURICA)
  336. Model.Load(#SABRETUR)
  337. Model.Load(#POLICE)
  338. //guns
  339. Model.Load(#M4)
  340. Model.Load(#RUGER)
  341. Model.Load(#MP5LNG)
  342. Model.Load(#COLT45)
  343. Model.Load(#UZI)
  344. Model.Load(#MOLOTOV)
  345. //
  346. //actors
  347. //
  348.  
  349. //cops
  350. Model.Load(1)
  351. Model.Load(3)
  352. Model.Load(104)
  353. Model.Load(91) //bank guard
  354. //vercetti
  355. Model.Load(96)
  356. Model.Load(95)
  357. //bears
  358. Model.Load(48)
  359. Model.Load(51)
  360. 038B: load_requested_models
  361.  
  362. //create police car
  363. Car.Create(1@,#POLICE,-104.306, 79.9554, 22.6236)
  364. Car.Angle(1@) = 86.8666
  365. 020A: set_car 1@ door_status_to 1
  366. 0369: put_player $PLAYER_CHAR in_car 1@
  367. Player.CanMove($PLAYER_CHAR,False)
  368.  
  369. 02C2: car 1@ drive_to_point -930.6845 142.4318 8.8425
  370.  
  371. //create cops
  372. 01C8: $angelo = create_actor_pedtype 19 model 104 in_car 1@ passenger_seat 0
  373. 01C8: 2@ = create_actor_pedtype 19 model 3 in_car 1@ passenger_seat 1
  374. 01C8: 3@ = create_actor_pedtype 19 model 1 in_car 1@ passenger_seat 2
  375.  
  376. //Label naming convention : <First one or two letter of the missions + D <unsigned index>  
  377. // +D = DIALOGUE
  378. // +O = OBJECTIVE
  379. // +H = HELP
  380.  
  381. //create text (just a bunch of 0ADF calls that are removed here)
  382.  
  383. fade 1 1000
  384.  
  385. $cutscenetime = 0.0
  386. $cutscenestage = 0
  387.  
  388. while true
  389. wait 0
  390.     0078: $cutscenetime += frame_delta_time * 20.0 // float
  391.     //cutscene finished or skipped
  392.     if or
  393.     00E1:   player 0 pressed_button 15
  394.     //00E1:   player 0 pressed_button 16
  395.     00E1:   player 0 pressed_button 19
  396.     $cutscenetime >= 60000.0
  397.     then
  398.         break
  399.     end
  400.    
  401.     if
  402.     $cutscenetime <= 5000.0
  403.     then
  404.         00AA: store_car 1@ position_to $px $py $pz
  405.         00AA: store_car 1@ position_to $px2 $py2 $pz2
  406.         Camera.OnPed($angelo,15,2)
  407.         $py2 += 2.2
  408.         $pz2 += 0.75
  409.         015F: set_camera_position $px2 $py2 $pz2 rotation 0.0 0.0 0.0    
  410.         if
  411.         $cutscenestage == 0
  412.         then    
  413.             00BB: text_lowpriority 'I_D1' time 5000 0  
  414.            $cutscenestage = 1
  415.         end
  416.     end
  417.      
  418.     if and
  419.     $cutscenetime >= 5000.0
  420.     $cutscenetime <= 10000.0
  421.     then                                                      
  422.         00AA: store_car 1@ position_to $px2 $py2 $pz2
  423.         Camera.OnPed($PLAYER_ACTOR,15,2)
  424.         $py2 -= 2.2
  425.         $pz2 += 1.0
  426.         015F: set_camera_position $px2 $py2 $pz2 rotation 0.0 0.0 0.0  
  427.         if
  428.         $cutscenestage == 1
  429.         then
  430.             00BB: text_lowpriority 'I_D2' time 5000 1
  431.             $cutscenestage = 2
  432.         end    
  433.     end
  434.    
  435.     if and
  436.     $cutscenetime >= 10000.0
  437.     $cutscenetime <= 15000.0
  438.     then                                                      
  439.         00AA: store_car 1@ position_to $px2 $py2 $pz2
  440.         Camera.OnPed(3@,15,2)
  441.         $px2 += 1.5
  442.         $py2 += 2.0
  443.         $pz2 += 1.0
  444.         015F: set_camera_position $px2 $py2 $pz2 rotation 0.0 0.0 0.0    
  445.         if
  446.         $cutscenestage == 2
  447.         then
  448.             00BB: text_lowpriority 'I_D3' time 5000 1
  449.             $cutscenestage = 3
  450.         end        
  451.     end
  452.    
  453.     if and
  454.     $cutscenetime >= 15000.0
  455.     $cutscenetime <= 20000.0
  456.     then                                                      
  457.         00AA: store_car 1@ position_to $px2 $py2 $pz2
  458.         Camera.OnPed(2@,15,2)
  459.         $px2 += 1.7
  460.         $py2 -= 2.0
  461.         $pz2 += 1.0
  462.         015F: set_camera_position $px2 $py2 $pz2 rotation 0.0 0.0 0.0    
  463.         if
  464.         $cutscenestage == 3
  465.         then
  466.             00BB: text_lowpriority 'I_D4' time 5000 1
  467.             $cutscenestage = 4
  468.         end        
  469.     end
  470.  
  471.     if and
  472.     $cutscenetime >= 20000.0
  473.     $cutscenetime <= 25000.0
  474.     then                                                      
  475.         00AA: store_car 1@ position_to $px2 $py2 $pz2
  476.         Camera.OnPed($PLAYER_ACTOR,15,2)
  477.         $py2 -= 2.2
  478.         $pz2 += 1.0
  479.         015F: set_camera_position $px2 $py2 $pz2 rotation 0.0 0.0 0.0    
  480.         if
  481.         $cutscenestage == 4
  482.         then
  483.             00BB: text_lowpriority 'I_D5' time 5000 1
  484.             $cutscenestage = 5
  485.         end        
  486.     end
  487.    
  488.     if and
  489.     $cutscenetime >= 25000.0
  490.     $cutscenetime <= 30000.0
  491.     then                                                      
  492.         00AA: store_car 1@ position_to $px2 $py2 $pz2
  493.          Camera.OnPed(3@,15,2)
  494.         $px2 += 1.5
  495.         $py2 += 2.0
  496.         $pz2 += 1.0
  497.         015F: set_camera_position $px2 $py2 $pz2 rotation 0.0 0.0 0.0    
  498.         if
  499.         $cutscenestage == 5
  500.         then
  501.             00BB: text_lowpriority 'I_D6' time 5000 1
  502.             $cutscenestage = 6
  503.         end        
  504.     end
  505. end
  506.  
  507. 03DE: set_pedestrians_density_multiplier_to 1.0
  508. 01EB: set_traffic_density_multiplier_to 1.0
  509. Model.Destroy(#SECURICA)
  510. Model.Destroy(#SABRETUR)
  511. Model.Destroy(#POLICE)
  512. Model.Destroy(#M4)
  513. Model.Destroy(#RUGER)
  514. Model.Destroy(#MP5LNG)
  515. Model.Destroy(#COLT45)
  516. Model.Destroy(#UZI)
  517. Model.Destroy(#MOLOTOV)
  518. Model.Destroy(1)
  519. Model.Destroy(3)
  520. Model.Destroy(104)
  521. Model.Destroy(91)
  522. Model.Destroy(96)
  523. Model.Destroy(95)
  524. Model.Destroy(48)
  525. Model.Destroy(51)
  526. 02A3: enable_widescreen 0
  527. $mission_progress = 1
  528. Player.CanMove($PLAYER_CHAR,True)
  529. Actor.RemoveReferences($angelo)
  530. Actor.RemoveReferences(2@)
  531. Actor.RemoveReferences(3@)
  532. Car.RemoveReferences(1@)
  533. $ONMISSION = 0
  534. mission_cleanup
  535. end_thread
  536.  
  537.  
Add Comment
Please, Sign In to add comment