Natso Posted January 16, 2016 Share Posted January 16, 2016 This is a scenario of CLEO airplane, I want it painted red squares any vehicle or other means within 1000m and not shoot, I have to edit how // This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013{$CLEO .cs} //-------------MAIN---------------thread "test" :ATPS130_11wait 0 if and Actor.DrivingVehicleType($PLAYER_ACTOR, #ANDROM)0ADC: test_cheat "auto" else_jump @ATPS130_11 [email protected] = Actor.CurrentCar($PLAYER_ACTOR)[email protected] = 0 0ADF: add_dynamic_GXT_entry "AUTFIRE" text "Auto fire enabled" wait 500 :ATPS130_92wait 0 gosub @ATPS130_1417 gosub @ATPS130_183 if Actor.Driving($PLAYER_ACTOR)else_jump @ATPS130_145 if 0ADC: test_cheat "auto" else_jump @ATPS130_92 :ATPS130_145Car.RemoveReferences([email protected])Car.RemoveReferences([email protected])Object.Destroy([email protected])0AE0: remove_dynamic_GXT_entry "AUTFIRE" wait 500 jump @ATPS130_11 :ATPS130_1830A8D: [email protected] = read_memory 12010644 size 4 virtual_protect 0 [email protected] += 4 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] = 0 0A8D: [email protected] = read_memory 12010644 size 4 virtual_protect 0 [email protected] += 4 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] = 0 :ATPS130_2630A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 [email protected] += 1 if and [email protected] >= 0 128 > [email protected] else_jump @ATPS130_1385 005A: [email protected] += [email protected] // (int) if 803B: not [email protected] == [email protected] // (int) else_jump @ATPS130_1385 :ATPS130_335if not Car.Wrecked([email protected])else_jump @ATPS130_1385 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -20.0 150.0 150.0 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -170.0 -50.0 -150.0 if 00B1: car [email protected] sphere 0 in_cube_cornerA [email protected] [email protected] [email protected] cornerB [email protected] [email protected] [email protected] else_jump @ATPS130_1385 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 050A: [email protected] = distance_between_XYZ [email protected] [email protected] [email protected] and_XYZ [email protected] [email protected] [email protected] if 250.0 > [email protected] else_jump @ATPS130_1385 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 0AB1: call_scm_func @ATPS130_1463 3 [email protected] [email protected] [email protected] [email protected] [email protected] 03F0: enable_text_draw 1 0087: [email protected] = [email protected] // (float) [email protected] += 8.0 038E: draw_box_position [email protected] [email protected] size 1.0 16.0 RGBA 255 55 25 255 0087: [email protected] = [email protected] // (float) [email protected] -= 8.0 038E: draw_box_position [email protected] [email protected] size 1.0 16.0 RGBA 255 55 25 255 0087: [email protected] = [email protected] // (float) [email protected] += 8.0 038E: draw_box_position [email protected] [email protected] size 16.0 1.0 RGBA 255 55 25 255 0087: [email protected] = [email protected] // (float) [email protected] -= 8.0 038E: draw_box_position [email protected] [email protected] size 16.0 1.0 RGBA 255 55 25 255 if [email protected] == 0 else_jump @ATPS130_985 Object.Destroy([email protected])Model.Load(1582)038B: load_requested_models :ATPS130_819wait 0 if Model.Available(1582)else_jump @ATPS130_819 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -4.101 0.458 -2.01 [email protected] = Object.Init(1582, [email protected], [email protected], [email protected])Object.CollisionDetection([email protected]) = True04D9: object [email protected] set_scripted_collision_check 1 0750: set_object [email protected] visibility 0 Model.Destroy(1582)0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 0063: [email protected] -= [email protected] // (float) 0063: [email protected] -= [email protected] // (float) 0063: [email protected] -= [email protected] // (float) [email protected] = 0 [email protected] = 1 jump @ATPS130_1323 :ATPS130_9850400: store_coords_to [email protected] [email protected] [email protected] from_object [email protected] with_offset 0.0 0.0 0.0 095C: create_smoke_at [email protected] [email protected] [email protected] velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 0.5 size 0.5 last_factor 0.25 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 if 04E6: object [email protected] near_point [email protected] [email protected] [email protected] radius 30.0 30.0 30.0 flag 0 else_jump @ATPS130_1148 jump @ATPS130_1164 :ATPS130_1148if 84DA: not has_object [email protected] collided else_jump @ATPS130_1211 :ATPS130_1164if not [email protected] > 5000 else_jump @ATPS130_1211 Object.ToggleInMovingList([email protected]) = TrueObject.Throw([email protected], [email protected], [email protected], [email protected])jump @ATPS130_1272 :ATPS130_12110400: store_coords_to [email protected] [email protected] [email protected] from_object [email protected] with_offset 0.0 0.0 0.0 020C: create_explosion_with_radius 10 at [email protected] [email protected] [email protected] Object.Destroy([email protected])[email protected] = 0 jump @ATPS130_1323 :ATPS130_12720407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -2.4 9.361 -1.521 06BC: create_M4_shoot_from [email protected] [email protected] [email protected] target [email protected] [email protected] [email protected] energy 100 :ATPS130_1323gosub @ATPS130_1417 if 500 > [email protected] else_jump @ATPS130_1385 wait 0 if Actor.Driving($PLAYER_ACTOR)0AA1: return_if_false if 0ADC: test_cheat "auto" else_jump @ATPS130_335 return :[email protected] = 0 [email protected] += 256 [email protected] > 27904 else_jump @ATPS130_263 return :ATPS130_141703F0: enable_text_draw 1 060D: draw_text_shadow 0 rgba 0 0 0 0 0343: set_text_draw_linewidth 640.0 033E: set_draw_text_position 500.0 435.0 GXT "AUTFIRE" return :[email protected] = 1 0A9F: [email protected] = current_thread_pointer 0AB1: call_scm_func @ATPS130_1628 2 [email protected] 0 [email protected] 0AB1: call_scm_func @ATPS130_1628 2 [email protected] 3 [email protected] 0AB1: call_scm_func @ATPS130_1628 2 [email protected] 6 [email protected] 0AB1: call_scm_func @ATPS130_1628 2 [email protected] 9 [email protected] 0AB1: call_scm_func @ATPS130_1628 2 [email protected] 12 [email protected] 0AA5: call 7392816 num_params 6 pop 6 [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] 0AB1: call_scm_func @ATPS130_1736 2 [email protected] [email protected] [email protected] [email protected] 0AB2: ret 2 [email protected] [email protected] :ATPS130_1628if not [email protected] == 0 else_jump @ATPS130_1721 [email protected] *= 4 0A8E: [email protected] = [email protected] + 220 // int if [email protected] == 1 else_jump @ATPS130_1699 [email protected] += 10783072 jump @ATPS130_1714 :ATPS130_1699005A: [email protected] += [email protected] // (int) [email protected] += 60 :ATPS130_1714jump @ATPS130_1728 :[email protected] = 0 :ATPS130_17280AB2: ret 1 [email protected] :[email protected] = 640.0 0A8D: [email protected] = read_memory 12677188 size 4 virtual_protect 0 0093: [email protected] = integer [email protected] to_float 0073: [email protected] /= [email protected] // (float) 006B: [email protected] *= [email protected] // (float) [email protected] = 448.0 0A8D: [email protected] = read_memory 12677192 size 4 virtual_protect 0 0093: [email protected] = integer [email protected] to_float 0073: [email protected] /= [email protected] // (float) 006B: [email protected] *= [email protected] // (float) 0AB2: ret 2 [email protected] [email protected] Link to comment Share on other sites More sharing options...
Natso Posted January 18, 2016 Author Share Posted January 18, 2016 Help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now