SHARE
TWEET

Untitled

a guest Oct 17th, 2019 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. #define MAX_SCRIPT_VARS 16
  4. #define MAX_SCRIPT_SIZE 255
  5.  
  6. struct GAME_SCRIPT_THREAD
  7. {
  8.     uint8_t Pad1[20];           // +00
  9.     uintptr_t dwScriptIP;       // +20
  10.     uint8_t Pad2[36];           // +24
  11.     uint32_t dwLocalVar[32];    // +60
  12.     uint32_t dwTimers[2];       // +188
  13.     uint8_t Pad3[33];           // +196
  14.     uint8_t condResult;         // +229
  15.     uint8_t Pad4[10];           // +230
  16.     uint16_t logicalOp;         // +240
  17.     uint8_t notFlag;            // +242
  18.     uint8_t Pad5[13];           // +243
  19.     // STRUCT SIZE = 256
  20. };
  21.  
  22. struct SCRIPT_COMMAND
  23. {
  24.     uint16_t OpCode;
  25.     char Params[MAX_SCRIPT_VARS];
  26. };
  27.  
  28. int ScriptCommand(const SCRIPT_COMMAND* pScriptCommand, ...);
  29.  
  30. const SCRIPT_COMMAND lock_camera_position = { 0x0930, "i" };
  31. const SCRIPT_COMMAND is_player_targetting_char = { 0x0457, "ii" };
  32. const SCRIPT_COMMAND rotate_attached_object_to_ped = { 0x05A1, "ifff" };
  33. const SCRIPT_COMMAND attach_object_to_ped = { 0x070A, "iifffiissi" };
  34. const SCRIPT_COMMAND attach_object_to_ped2 = { 0x09A0, "iifffiissi" };
  35. const SCRIPT_COMMAND create_marker_icon = { 0x02A8, "fffiv" };
  36. //const SCRIPT_COMMAND create_car_generator             = { 0x014B, "iifffiissi" };
  37. const SCRIPT_COMMAND turn_on_car_engine = { 0x0abe, "i" };
  38. const SCRIPT_COMMAND turn_car_engine = { 0x0918, "ii" };
  39. const SCRIPT_COMMAND set_camera_pos_time_smooth = { 0x0936, "ffffffii" };
  40. const SCRIPT_COMMAND point_camera_transverse = { 0x0920, "ffffffii" };
  41. const SCRIPT_COMMAND restore_camera_to_user = { 0x0925, "" };
  42. const SCRIPT_COMMAND set_player_bleeding = { 0x0332, "ii" };
  43. const SCRIPT_COMMAND set_player_fire_button = { 0x0881, "ii" };
  44. const SCRIPT_COMMAND set_player_visible = { 0x0337, "ii" };
  45. const SCRIPT_COMMAND set_object_visible = { 0x0750, "ii" };
  46. const SCRIPT_COMMAND set_car_visible = { 0x0338, "ii" };
  47. const SCRIPT_COMMAND set_car_engine_on = { 0x0918, "ii" };
  48. const SCRIPT_COMMAND set_car_lights_on = { 0x0919, "ii" };
  49. const SCRIPT_COMMAND open_car_door = { 0x0657, "ii" };
  50. const SCRIPT_COMMAND get_camera_fov = { 0x0801, "f" };
  51. const SCRIPT_COMMAND open_car_door_a_bit = { 0x08A6, "iif" };
  52. const SCRIPT_COMMAND create_arrow_above_actor = { 0x0187, "iv" };
  53. const SCRIPT_COMMAND set_player_skin = { 0x09C7, "ii" };
  54. const SCRIPT_COMMAND request_model = { 0x0247, "i" };       // (CAR_*|BIKE_*|BOAT_*|WEAPON_*|OBJECT_*)
  55. const SCRIPT_COMMAND load_requested_models = { 0x038B, "" };        // -/-
  56. const SCRIPT_COMMAND create_car = { 0x00A5, "ifffv" };  // (CAR_*|BIKE_*|BOAT_*), x, y, z, var_car
  57. const SCRIPT_COMMAND load_special_actor = { 0x023C, "is" };     // SPECIAL_*, MODEL_*
  58. const SCRIPT_COMMAND create_actor = { 0x009A, "iifffv" };   // PEDTYPE_*, #MODEL, x, y, z, var_actor
  59. const SCRIPT_COMMAND destroy_actor_fading = { 0x034F, "i" };        // var_actor
  60. const SCRIPT_COMMAND destroy_actor = { 0x009b, "i" };       // var_actor
  61. const SCRIPT_COMMAND set_weather = { 0x01B6, "i" };     // WEATHER_*
  62. const SCRIPT_COMMAND set_fade_color = { 0x0169, "iii" };    // Red(0-255), Green(0-255), Blue(0-255)
  63. const SCRIPT_COMMAND fade = { 0x016A, "ii" };       // (time in ms), FADE_*
  64. const SCRIPT_COMMAND is_fading = { 0x016B, "" };        // -/-
  65. const SCRIPT_COMMAND freeze_player = { 0x01B4, "ii" };      // PLAYER_CHAR, Freeze(1/0)
  66. const SCRIPT_COMMAND set_char_coordinates = { 0x00A1, "ifff" };     // PLAYER_CHAR, X, Y, Z
  67. const SCRIPT_COMMAND set_char_proofs = { 0x02AB, "iiiiii" };    // PLAYER_CHAR, BP, FP, EP, CP, MP
  68. const SCRIPT_COMMAND car_goto_coordinates_accurate      = { 0x02C2, "iiii"}; // int: vehicle handle, float: x, y, z
  69. const SCRIPT_COMMAND is_car_upsidedown                  = { 0x01F4, "i" }; // vehicle handle
  70. const SCRIPT_COMMAND set_car_coordinates                = { 0x00AB, "ifff" };
  71. const SCRIPT_COMMAND set_char_collision                 = { 0x0619, "ii" };
  72. const SCRIPT_COMMAND name_thread = { 0x03A4, "s" };     // "MAIN"
  73. const SCRIPT_COMMAND set_max_wanted_level = { 0x01F0, "i" };        // MaxLevel
  74. const SCRIPT_COMMAND set_wasted_busted_check = { 0x0111, "i" };     // Check(1/0)
  75. const SCRIPT_COMMAND set_current_time = { 0x00C0, "ii" };       // Hours, Minutes
  76. const SCRIPT_COMMAND get_current_time = { 0x00C0, "vv" };       // Hours, Minutes
  77. const SCRIPT_COMMAND refresh_screen = { 0x04E4, "ff" };     // x, y
  78. const SCRIPT_COMMAND set_camera = { 0x03CB, "fff" };    // x, y, z
  79. const SCRIPT_COMMAND create_player = { 0x0053, "vfffv" };   // 0, x, y, z, PLAYER_CHAR
  80. const SCRIPT_COMMAND create_actor_from_player = { 0x01F5, "vv" };       // PLAYER_CHAR, PLAYER_ACTOR
  81. const SCRIPT_COMMAND set_actor_skin = { 0x0352, "vs" };     // var_actor, MODEL_*
  82. const SCRIPT_COMMAND refresh_actor_skin = { 0x0353, "v" };      // var_actor
  83. const SCRIPT_COMMAND select_interior = { 0x04BB, "i" };     // INTERIOR_*
  84. const SCRIPT_COMMAND make_actor_leave_vehicle = { 0x03E2, "v" };        // var_actor
  85. const SCRIPT_COMMAND clear_actor_objective = { 0x011C, "v" };       // var_actor
  86. const SCRIPT_COMMAND set_car_color = { 0x0229, "iii" }; // var_car col1 col2
  87. const SCRIPT_COMMAND wait = { 0x0001, "i" };        // time_in_ms
  88. const SCRIPT_COMMAND create_thread = { 0x00D7, "iz" };      // StartIP (4F)
  89. const SCRIPT_COMMAND end_thread = { 0x004E, "" };       // -/-
  90. const SCRIPT_COMMAND destroy_car = { 0x00A6, "i" };     // var_car
  91. const SCRIPT_COMMAND set_car_z_angle = { 0x0175, "if" };        // var_car, angle
  92. const SCRIPT_COMMAND car_relative_coordinates = { 0x0407, "vfffvvv" };// var_car, x, y, z, var_x, var_y, var_z
  93. const SCRIPT_COMMAND set_car_max_speed = { 0x00AD, "if" };      // var_car, speed
  94. const SCRIPT_COMMAND is_model_available = { 0x0248, "i" };      // #MODEL
  95. const SCRIPT_COMMAND has_valid_model = { 0x0488, "i" };     // #MODEL
  96. const SCRIPT_COMMAND create_actor_in_driverseat = { 0x0129, "viiv" };   // var_car, pedtype, #MODEL, var_actor
  97. const SCRIPT_COMMAND create_actor_in_passenger = { 0x01c8, "viiiv" };   // var_car, pedtype, #MODEL, seat, var_actor
  98. const SCRIPT_COMMAND drive_car_to_point1 = { 0x02c2, "ifff" };  // var_car, x, y, z
  99. const SCRIPT_COMMAND car_ignore_traffic = { 0x00AE, "vi" };     // var_car, flag
  100. const SCRIPT_COMMAND set_car_immune_to_nonplayer = { 0x02aa, "vi" };        // var_car, immune(1/0)
  101. const SCRIPT_COMMAND give_actor_weapon = { 0x01B2, "iii" }; // var_actor, weapon, ammo
  102. const SCRIPT_COMMAND reset_actor_flags = { 0x01ED, "v" };       // var_actor
  103. const SCRIPT_COMMAND set_actor_ped_stats = { 0x0243, "vi" };        // var_actor, pedstats
  104. const SCRIPT_COMMAND toggle_actor_wander = { 0x0319, "vi" };        // var_actor, wander(1/0)
  105. const SCRIPT_COMMAND play_music = { 0x0394, "i" };      // music
  106. const SCRIPT_COMMAND report_mission_audio_event_at_char = { 0x09F1, "ii" };     // music
  107. const SCRIPT_COMMAND clear_player_wanted_level = { 0x0110, "v" };       // PLAYER_CHAR
  108. const SCRIPT_COMMAND set_car_door_status = { 0x020A, "ii" };        // var_car, status
  109. const SCRIPT_COMMAND remove_references_to_actor = { 0x01C2, "v" };      // var_actor
  110. const SCRIPT_COMMAND remove_references_to_car = { 0x01C3, "v" };        // var_car
  111. const SCRIPT_COMMAND set_player_wanted_level = { 0x010D, "vi" };        // PLAYER_CHAR, level
  112. const SCRIPT_COMMAND set_player_health = { 0x0222, "vi" };      // PLAYER_CHAR, health
  113. const SCRIPT_COMMAND get_car_health = { 0x0227, "vv" };     // var_car, var_health
  114. const SCRIPT_COMMAND text_styled = { 0x00BA, "sii" };   // TEXT, time, style
  115. const SCRIPT_COMMAND text_now = { 0x00BC, "sii" };  // TEXT, time, style
  116. const SCRIPT_COMMAND text_1number_styled = { 0x01E3, "siii" };  // TEXT, number, time, style
  117. const SCRIPT_COMMAND toggle_car_siren = { 0x0397, "ii" };       // var_car, siren(1/0)
  118. const SCRIPT_COMMAND set_no_resprays = { 0x0A14, "i" };     // var_car, siren(1/0)
  119. const SCRIPT_COMMAND flash_hud_object = { 0x03E7, "i" };        // var_car, siren(1/0)
  120. const SCRIPT_COMMAND toggle_widescreen = { 0x02A3, "i" };       // widescreen(1/0)
  121. const SCRIPT_COMMAND set_camera_behind_player = { 0x0373, "" };     // -/-
  122. const SCRIPT_COMMAND camera_on_player = { 0x0157, "vii" };  // var_player, ukn, ukn
  123. const SCRIPT_COMMAND camera_on_vehicle = { 0x0158, "iii" }; // var_car, ukn, ukn
  124. const SCRIPT_COMMAND camera_on_actor = { 0x0159, "iii" };   // var_actor, ukn, ukn
  125. const SCRIPT_COMMAND restore_camera = { 0x015A, "" };       // -/-
  126. const SCRIPT_COMMAND point_camera = { 0x0160, "fffi" }; // x, y, z, type
  127. const SCRIPT_COMMAND restore_camera_jumpcut = { 0x02EB, "" };       // -/-
  128. const SCRIPT_COMMAND set_camera_position = { 0x015F, "ffffff" }; // x, y, z, vx, vy, vz
  129. const SCRIPT_COMMAND tie_actor_to_player = { 0x01DF, "vv" };        // var_actor, PLAYER_CHAR
  130. const SCRIPT_COMMAND tie_marker_to_car = { 0x0161, "iiiv" };    // var_car, ukn, ukn, var_marker
  131. const SCRIPT_COMMAND tie_marker_to_actor = { 0x0162, "iiiv" };  // var_actor, ukn, ukn, var_marker
  132. const SCRIPT_COMMAND disable_marker = { 0x0164, "i" };      // var_marker
  133. const SCRIPT_COMMAND set_marker_color = { 0x0165, "ii" };       // var_marker, color
  134. const SCRIPT_COMMAND set_marker_brightness = { 0x0166, "ii" };      // var_marker, brightness
  135. const SCRIPT_COMMAND create_marker = { 0x0167, "fffiiv" };  // x, y, z, ukn, ukn, var_marker
  136. const SCRIPT_COMMAND create_radar_marker_without_sphere = { 0x04CE, "fffiv" };  // x, y, z, marker_type, var_marker
  137. const SCRIPT_COMMAND show_on_radar = { 0x0168, "ii" };      // var_marker, size
  138. const SCRIPT_COMMAND set_car_driver_behaviour = { 0x00AF, "vi" };       // var_car, behaviour
  139. const SCRIPT_COMMAND set_actor_to_kill_actor = { 0x01C9, "vv" };        // var_actor, var_actor
  140. const SCRIPT_COMMAND set_actor_to_kill_player = { 0x01CA, "vv" };       // var_actor, PLAYER_CHAR
  141. const SCRIPT_COMMAND is_actor_dead = { 0x0118, "v" };       // var_actor
  142. const SCRIPT_COMMAND player_near_point_on_foot = { 0x00F6, "vffffffi" };//  PLAYER_CHAR, x, y, z, rx, ry, rz, b
  143. const SCRIPT_COMMAND create_icon_marker_sphere = { 0x02A7, "fffiv" };
  144. const SCRIPT_COMMAND is_player_near_point_3d = { 0x00F5, "iffffffi" };//    PLAYER_CHAR, x, y, z, rx, ry, rz, b
  145. const SCRIPT_COMMAND is_actor_near_point_3d = { 0x00FE, "iffffffi" };// var_actor, x, y, z, rx, ry, rz, b
  146. const SCRIPT_COMMAND is_car_near_point_3d = { 0x01AF, "iffffffi" };//   var_car, x, y, z, rx, ry, rz, b
  147. const SCRIPT_COMMAND set_player_z_angle = { 0x0171, "vf" };
  148. const SCRIPT_COMMAND give_player_weapon = { 0x01B1, "iii" };    // PLAYER_CHAR, weapon, ammo
  149. const SCRIPT_COMMAND get_line_of_sight = { 0x06BD, "ffffffiiiii" }; // x1, y1, z1, x2, y2, z2, solid, vehicle, actor, obj, fx
  150.  
  151. const SCRIPT_COMMAND add_to_player_money = { 0x0109, "ii" };        // PLAYER_CHAR, money
  152. const SCRIPT_COMMAND get_player_money = { 0x010b, "iv" };    // PlayerNum, VarInt
  153.  
  154. const SCRIPT_COMMAND restart_if_busted_at = { 0x016D, "ffff" }; // x, y, z, a
  155. const SCRIPT_COMMAND is_marker_enabled = { 0x075c, "i" };       // markerID
  156. const SCRIPT_COMMAND has_car_sunk = { 0x02bf, "i" };    // CarID
  157. const SCRIPT_COMMAND is_car_wrecked = { 0x0119, "i" }; // CarID
  158. const SCRIPT_COMMAND get_ground_z = { 0x02ce, "fffv" }; // x, y, z, var_ground_z
  159. const SCRIPT_COMMAND force_car_lights                   = { 0x067F, "ii" };
  160.  
  161. const SCRIPT_COMMAND create_checkpoint1 = { 0x0189, "fffv" };   // x, y, z, var_checkpoint
  162. const SCRIPT_COMMAND create_checkpoint2 = { 0x018a, "fffv" };   // x, y, z, var_checkpoint
  163. //const SCRIPT_COMMAND is_actor_near_point_3d       = {0x00FE,  "iffffffi"};
  164. const SCRIPT_COMMAND create_racing_checkpoint = { 0x06d5,   "ifffffffv" };  // type, x, y, z, nx, ny. nz, size, $id (n=next checkpoint)
  165. /* 0       = Street Checkpoint with arrow to the next checkpoint
  166.    1 and 2 = Street Checkpoint
  167.    3 and 4 = Flight Checkpoint (circle) */
  168. const SCRIPT_COMMAND destroy_racing_checkpoint = { 0x06d6"i" };
  169.  
  170. // added by kyeman. (I don't use correct conventions so don't copy elsewhere
  171. // without double checking they're how you want them, yalls.
  172.  
  173. const SCRIPT_COMMAND restart_if_wasted_at = { 0x016C, "ffffi" };
  174. const SCRIPT_COMMAND toggle_player_infinite_run = { 0x0330, "ii" };
  175. const SCRIPT_COMMAND toggle_player_controllable = { 0x01B4, "ii" };
  176. const SCRIPT_COMMAND toggle_player_fast_reload = { 0x0331, "ii" };
  177. const SCRIPT_COMMAND set_actor_armed_weapon = { 0x01b9, "ii" };
  178. const SCRIPT_COMMAND get_actor_armed_weapon = { 0x0470, "iv" };
  179. const SCRIPT_COMMAND remove_player_weapons = { 0x03b8, "i" };
  180. const SCRIPT_COMMAND put_actor_in_car = { 0x036A, "ii" };
  181. const SCRIPT_COMMAND put_player_at_and_remove_from_car = { 0x012a, "ifff" };
  182. const SCRIPT_COMMAND set_actor_immunities = { 0x02ab, "iiiiii" };
  183. const SCRIPT_COMMAND set_car_immunities = { 0x02ac, "iiiiii" };
  184. const SCRIPT_COMMAND set_actor_can_be_decapitated = { 0x0446, "ii" };
  185. const SCRIPT_COMMAND create_object = { 0x0107, "ifffv" };
  186. const SCRIPT_COMMAND set_object_z_angle = { 0x0177, "if" };
  187. const SCRIPT_COMMAND set_object_rotation = { 0x0453, "ifff" };
  188. const SCRIPT_COMMAND set_object_collision = { 0x0382, "ii" };
  189. const SCRIPT_COMMAND put_object_at = { 0x01Bc, "ifff" };
  190. const SCRIPT_COMMAND move_object = { 0x034e, "iffffffi" };
  191. const SCRIPT_COMMAND make_object_moveable = { 0x0392, "ii" };
  192. const SCRIPT_COMMAND toggle_object_collision = { 0x0382, "ii" };
  193. const SCRIPT_COMMAND play_sound = { 0x018c, "fffi" };
  194. const SCRIPT_COMMAND remove_sound = { 0x018E, "i" };
  195. const SCRIPT_COMMAND preload_beat_track = { 0x0952, "i" };
  196. const SCRIPT_COMMAND start_playing_loaded_soundtrack = { 0x0954, "" }; //empty params
  197. const SCRIPT_COMMAND end_playing_loaded_soundtrack = { 0x0955, "" }; //empty params
  198. const SCRIPT_COMMAND create_sound = { 0x018d,   "fffiv" };
  199. const SCRIPT_COMMAND remove_actor_from_car_and_put_at = { 0x0362, "ifff" };
  200. const SCRIPT_COMMAND send_actor_to_car_driverseat = { 0x05CB, "iii" };
  201. const SCRIPT_COMMAND send_actor_to_car_passenger = { 0x05CA, "iiii" };
  202. const SCRIPT_COMMAND make_actor_leave_car = { 0x05CD, "ii" };
  203. const SCRIPT_COMMAND get_car_z_angle = { 0x0174, "iv" };
  204. const SCRIPT_COMMAND get_player_z_angle = { 0x0170, "iv" };
  205. const SCRIPT_COMMAND create_train = { 0x06D8, "ifffiv" };
  206. const SCRIPT_COMMAND destroy_train = { 0x07bd, "i" };
  207. const SCRIPT_COMMAND set_train_acceleration = { 0x06DC, "if" };
  208. const SCRIPT_COMMAND set_train_speed = { 0x06DD, "if" };
  209. const SCRIPT_COMMAND is_train_wrecked = { 0x0981, "i" };
  210. const SCRIPT_COMMAND actor_driving_train = { 0x09AE, "i" };
  211. const SCRIPT_COMMAND enable_train_traffic = { 0x06d7, "i" };
  212. const SCRIPT_COMMAND unknown_train_attr = { 0x0A07, "i" }; // vehicle discardable?
  213. const SCRIPT_COMMAND car_gas_tank_explosion = { 0x09C4, "ii" };
  214. const SCRIPT_COMMAND lock_car = { 0x0519, "ii" };
  215. const SCRIPT_COMMAND put_train_at = { 0x07c7, "ifff" };
  216. const SCRIPT_COMMAND turn_off_car_engine = { 0x02d4,    "i" };
  217. const SCRIPT_COMMAND release_model = { 0x0249"i" };
  218. const SCRIPT_COMMAND get_active_interior = { 0x077e, "v" };
  219. const SCRIPT_COMMAND get_actor_z_angle = { 0x0172, "iv" };
  220. const SCRIPT_COMMAND set_actor_z_angle = { 0x0173, "if" };
  221. const SCRIPT_COMMAND actor_set_collision = { 0x0619, "ii" };
  222. const SCRIPT_COMMAND actor_unknown1 = { 0x094f, "i" };
  223. const SCRIPT_COMMAND toggle_player_ignored_by_all = { 0x03bf, "ii" };
  224. const SCRIPT_COMMAND enter_passenger_driveby = { 0x0713, "iiiffffiii" };
  225. const SCRIPT_COMMAND lock_actor = { 0x04d7, "ii" };
  226. const SCRIPT_COMMAND task_set_ignore_weapon_range_flag = { 0x099f, "ii" };
  227. const SCRIPT_COMMAND task_stand_still = { 0x05Ba, "ii" };
  228. //05BA
  229. const SCRIPT_COMMAND refresh_streaming_at = { 0x04E4, "ff" };
  230. const SCRIPT_COMMAND put_actor_in_car2 = { 0x0430, "iii" };
  231. const SCRIPT_COMMAND get_radio_channel = { 0x051E, "i" };
  232.  
  233. const SCRIPT_COMMAND kill_actor = { 0x0321, "i" };
  234.  
  235. //const SCRIPT_COMMAND kill_actor                   = { 0x5BE, "i" };
  236. const SCRIPT_COMMAND set_actor_animation_set = { 0x0245, "is" };
  237. const SCRIPT_COMMAND request_animation = { 0x04ED, "s" };
  238. const SCRIPT_COMMAND is_animation_loaded = { 0x04EE, "s" };
  239. const SCRIPT_COMMAND release_animation = { 0x04EF, "s" };
  240. const SCRIPT_COMMAND apply_animation = { 0x0812, "issfiiiii" }; // actor,animation,library,floatunk,bool,bool,bool,bool,int
  241. const SCRIPT_COMMAND is_actor_performing_anim = { 0x0611, "is" };
  242. const SCRIPT_COMMAND set_actor_weapon_droppable = { 0x087e, "ii" };
  243. const SCRIPT_COMMAND set_actor_money = { 0x03fe, "ii" };
  244. const SCRIPT_COMMAND toggle_radar_blank = { 0x0581, "i" };
  245. const SCRIPT_COMMAND text_clear_all = { 0x00be, "" };
  246. const SCRIPT_COMMAND link_actor_to_interior = { 0x0860, "ii" };
  247. const SCRIPT_COMMAND repair_car = { 0x0A30, "i" };
  248. const SCRIPT_COMMAND toggle_player_trapped_incar = { 0x07cc, "ii" };
  249. const SCRIPT_COMMAND set_car_hydraulics = { 0x07FF, "ii" }; //iCar, i (0=off/1=on)
  250.  
  251. const SCRIPT_COMMAND toggle_player_weapons_changable = { 0x0992, "ii" }; // iPlayer,yes/no
  252. const SCRIPT_COMMAND apply_object_animation = { 0x075a, "issfii" }; // object,szAnim,szIFP,fUnk,iUnk,iUnk2
  253. const SCRIPT_COMMAND remove_weapon_from_actor = { 0x0555, "ii" }; // iActor,iWeapon
  254. const SCRIPT_COMMAND get_actor_move_velocity = { 0x083d, "ivvv" }; // iActor,fRetZ,fRetY,fRetZ
  255. const SCRIPT_COMMAND get_actor_distance_from_ground = { 0x0819, "iv" }; // iActor,fRet
  256. const SCRIPT_COMMAND is_actor_falling_think = { 0x0818, "i" }; // iActor
  257.  
  258. const SCRIPT_COMMAND attach_object_to_actor = { 0x069b, "iiffffff" };
  259. const SCRIPT_COMMAND destroy_object_with_fade = { 0x09A2, "i" };
  260. const SCRIPT_COMMAND disassociate_object = { 0x0682, "ifffi" };
  261. const SCRIPT_COMMAND set_object_scaling = { 0x08d2, "if" };
  262. const SCRIPT_COMMAND set_actor_rotation_angles = { 0x083e, "ifff" };
  263. const SCRIPT_COMMAND is_actor_in_the_water = { 0x04ad, "i" };
  264.  
  265. const SCRIPT_COMMAND create_pickup = { 0x0213, "iifffv" };
  266. const SCRIPT_COMMAND create_pickup_with_ammo = { 0x032b, "iiifffv" };
  267. const SCRIPT_COMMAND is_pickup_picked_up = { 0x0214, "i" };
  268. const SCRIPT_COMMAND is_pickup_created = { 0x09D1, "i" };
  269. const SCRIPT_COMMAND destroy_pickup = { 0x0215, "i" };
  270.  
  271. const SCRIPT_COMMAND set_event = { 0x09C6, "iiii" };
  272. const SCRIPT_COMMAND change_car_skin = { 0x06ED,    "ii" };
  273. const SCRIPT_COMMAND add_car_component = { 0x06E7, "iiv" }; // CAR, COMPONENT, COMPONENT VAR NAME
  274. const SCRIPT_COMMAND is_component_available = { 0x06EA, "i" };
  275. const SCRIPT_COMMAND request_car_component = { 0x06E9, "i" };
  276. const SCRIPT_COMMAND remove_component = { 0x06E8, "ii" };
  277.  
  278. const SCRIPT_COMMAND unknown_arrow = { 0x07e0, "ii" };
  279. const SCRIPT_COMMAND show_on_radar2 = { 0x018b, "ii" };
  280.  
  281. const SCRIPT_COMMAND open_garage = { 0x0360, "s" };
  282. const SCRIPT_COMMAND close_garage = { 0x0361, "s" };
  283.  
  284. const SCRIPT_COMMAND find_ground_z = { 0x02CE, "fffv" };
  285. const SCRIPT_COMMAND put_car_at = { 0x00AB, "vfff" };
  286. const SCRIPT_COMMAND is_actor_crouching = { 0x0597, "i" };
  287. const SCRIPT_COMMAND is_ped_bounding_sphere_visible = { 0x02CB, "i" };
  288. const SCRIPT_COMMAND is_player_in_a_car = { 0x0443, "i" };
  289. const SCRIPT_COMMAND set_camera_pos = { 0x03cb, "fff" };
  290. const SCRIPT_COMMAND set_actor_collision_detection = { 0x0619, "ii" };
  291. const SCRIPT_COMMAND attach_object_to_car = { 0x0681, "iiffffff" };
  292. const SCRIPT_COMMAND attach_car_to_car = { 0x0683, "iiffffff" };
  293. const SCRIPT_COMMAND set_car_collision = { 0x099A, "ii" };
  294. const SCRIPT_COMMAND set_car_collision2 = { 0x0574, "ii" };
  295. const SCRIPT_COMMAND set_car_collision3 = { 0x0587, "ii" };
  296. const SCRIPT_COMMAND get_car_mass = { 0x06A3, "if" };
  297. const SCRIPT_COMMAND set_car_strong = { 0x03AB, "ii" };
  298. const SCRIPT_COMMAND set_car_heavy = { 0x01EC, "ii" };
  299. const SCRIPT_COMMAND set_car_air_resistance_multiplier = { 0x088B, "if" };
  300. const SCRIPT_COMMAND task_shoot_at_coord = { 0x0668, "ifffi" };
  301. const SCRIPT_COMMAND task_aim_gun_at_coord = { 0x0667, "ifffi" };
  302. const SCRIPT_COMMAND task_stay_in_same_place = { 0x0638, "ii" };
  303. const SCRIPT_COMMAND toggle_actor_cellphone = { 0x0729, "ii" };
  304. const SCRIPT_COMMAND clear_char_tasks = { 0x0687, "i" };
  305. const SCRIPT_COMMAND actor_task_sit = { 0x06b0, "ii" };
  306. const SCRIPT_COMMAND actor_task_handsup = { 0x5c4, "ii" };
  307. const SCRIPT_COMMAND actor_task_use_atm = { 0x5c7, "ii" };
  308. const SCRIPT_COMMAND change_stat = { 0x0629, "ii" };
  309. const SCRIPT_COMMAND set_char_weapon_skill = { 0x081A, "ii" };
  310. const SCRIPT_COMMAND unk_gang_war1 = { 0x08A3, "i" };
  311. const SCRIPT_COMMAND unk_gang_war2 = { 0x0879, "i" };
  312. const SCRIPT_COMMAND set_zone_owned_by = { 0x076C, "sii" };
  313.  
  314. const SCRIPT_COMMAND toggle_car_tires_vulnerable = { 0x053f, "ii" };
  315. const SCRIPT_COMMAND set_fighting_style = { 0x07fe, "ii" };
  316.  
  317. const SCRIPT_COMMAND link_vehicle_to_interior = { 0x0840, "ii" };
  318. const SCRIPT_COMMAND delete_object_in_coords = { 0x0363, "ffffii" };
  319. const SCRIPT_COMMAND swap_nearest_building_model = { 0x03B6, "ffffii" };
  320. const SCRIPT_COMMAND destroy_object = { 0x0108, "i" };
  321. const SCRIPT_COMMAND create_radar_marker_icon = { 0x0570, "fffii" };
  322. const SCRIPT_COMMAND put_trailer_on_cab = { 0x893, "ii" };
  323. const SCRIPT_COMMAND detach_trailer_from_cab = { 0x7AC, "ii" };
  324. const SCRIPT_COMMAND is_trailer_on_cab = { 0x7AB, "ii" };
  325. const SCRIPT_COMMAND enable_heli_magnet = { 0x0788, "ii" };
  326. //const SCRIPT_COMMAND create_icon_marker_without_sphere    = { 0x04CE, "fffii" };
  327.  
  328. const SCRIPT_COMMAND get_player_weapon_ammo = { 0x0419, "iiv" };
  329. const SCRIPT_COMMAND set_player_weapon_ammo = { 0x017A, "iii" };
  330.  
  331. const SCRIPT_COMMAND set_train_flag = { 0x09CF, "ii" };
  332. const SCRIPT_COMMAND put_camera_on_vehicle = { 0x0679, "ifffffffi" };
  333. const SCRIPT_COMMAND put_camera_on_actor = { 0x067C, "ifffffffi" };
  334. const SCRIPT_COMMAND create_explosion_with_radius = { 0x0948, "fffii" };
  335. const SCRIPT_COMMAND set_car_numberplate = { 0x0674, "is" };
  336. const SCRIPT_COMMAND enable_zone_names = { 0x09BA, "i" };
  337.  
  338. const SCRIPT_COMMAND remove_panel = { 0x08DA, "i" };
  339. const SCRIPT_COMMAND create_panel = { 0x08D4, "sfffiiiiv" };
  340. const SCRIPT_COMMAND set_panel_column_data = { 0x08DB, "iisssssssssssss" };
  341. const SCRIPT_COMMAND set_panel_column_width = { 0x09DB, "iii" };
  342. const SCRIPT_COMMAND set_panel_row_enable = { 0x08D9, "iii" };
  343. const SCRIPT_COMMAND get_panel_selected_row = { 0x08D8, "iv" };
  344. const SCRIPT_COMMAND get_panel_active_row = { 0x08D7, "iv" };
  345.  
  346. const SCRIPT_COMMAND destroy_particle = { 0x650, "i" };
  347. //opcode_066a('PETROLCAN', lhActor47, 0.0, 0.116, 0.048, lf05f, lf060, lf061, 1, l0089);
  348. const SCRIPT_COMMAND attach_particle_to_actor2 = { 0x066a, "siffffffiv" };
  349. const SCRIPT_COMMAND make_particle_visible = { 0x64c, "i" };
  350.  
  351. const SCRIPT_COMMAND create_property_pickup = { 0x518, "i" };
  352.  
  353. const SCRIPT_COMMAND set_player_drunk_visuals = { 0x052c, "ii" }; // player, severity (0-255)
  354. const SCRIPT_COMMAND handling_responsiveness = { 0x03fd, "ii" }; // player, severity (0-255)
  355. const SCRIPT_COMMAND load_shop_menu = { 0x075E, "s" };
  356. const SCRIPT_COMMAND set_char_never_targetted = { 0x0568, "i1" };
  357.  
  358. const SCRIPT_COMMAND set_car_status                     = { 0x03A2, "ii" }; // vehicle handle, state (0 - normal / maybe using it for toggle engine?)
  359. const SCRIPT_COMMAND freeze_car_position                = { 0x0519, "ii" }; // vehicle handle, state
  360.  
  361. const SCRIPT_COMMAND is_char_playing_anim               = { 0x0611, "is" };
  362.  
  363. const SCRIPT_COMMAND disembark_instantly_actor          = { 0x0792, "i"};
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top