tysman Posted March 8, 2013 Share Posted March 8, 2013 (edited) I have this fuel gauge mod and what I want is for the fuel gauge to run down more slowly 0000: NOP :NONAME_2wait 0 if and Player.Defined($PLAYER_CHAR) $ONMISSION == 0 jf @NONAME_2 if and Actor.Driving($PLAYER_ACTOR)84A7: not actor $PLAYER_ACTOR driving_boat 84A9: not actor $PLAYER_ACTOR driving_heli not Actor.DrivingPlane($PLAYER_ACTOR)84C8: not actor $PLAYER_ACTOR driving_flying_vehicle 89AE: not actor $PLAYER_ACTOR driving_train jf @NONAME_2 if and not Actor.DrivingVehicleType($PLAYER_ACTOR, #BMX) not Actor.DrivingVehicleType($PLAYER_ACTOR, #BIKE) not Actor.DrivingVehicleType($PLAYER_ACTOR, #MTBIKE) not Actor.DrivingVehicleType($PLAYER_ACTOR, #COMBINE) not Actor.DrivingVehicleType($PLAYER_ACTOR, #TRACTOR)jf @NONAME_2 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 1944.852 -1769.554 13.0125 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 2209.816 2481.934 10.8203 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 604.8804 1705.273 6.541 0570: [email protected] = create_asset_radar_marker_with_icon 55 at -2414.49 982.081 45.2969 0570: [email protected] = create_asset_radar_marker_with_icon 55 at -2244.623 -2561.828 31.9219 0570: [email protected] = create_asset_radar_marker_with_icon 55 at -1327.512 2678.107 50.0625 0570: [email protected] = create_asset_radar_marker_with_icon 55 at -95.1488 -1174.303 1.9281 0570: [email protected] = create_asset_radar_marker_with_icon 55 at -1679.982 408.9051 7.2365 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 652.03 -571.34 16.34 0570: [email protected] = create_asset_radar_marker_with_icon 55 at -1605.897 -2714.252 48.5335 0570: [email protected] = create_asset_radar_marker_with_icon 55 at -1471.48 1864.31 32.64 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 1596.5 2199.1 10.83 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 2145.9 2748.16 10.83 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 2642.11 1106.53 10.83 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 2117.42 920.42 10.83 0570: [email protected] = create_asset_radar_marker_with_icon 55 at 1381.68 456.26 19.91 03C0: [email protected] = actor $PLAYER_ACTOR car 046C: [email protected] = car [email protected] driver if 003B: [email protected] == $PLAYER_ACTOR // (int) jf @NONAME_2 0390: load_txd_dictionary "GASOLINE" 038F: load_texture "SCALEF" as 1 // Load dictionary with 0390 first 038F: load_texture "SCALEE" as 2 // Load dictionary with 0390 first 038F: load_texture "ARROW" as 3 // Load dictionary with 0390 first 038F: load_texture "LOCK" as 4 // Load dictionary with 0390 first wait 250 gosub @NONAME_2130 if 88B7: not test [email protected] bit 1 jf @NONAME_626 0099: [email protected] = random_int_in_ranges_0_to_32767 08BD: set [email protected] bit 1 0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0 jump @NONAME_656 :NONAME_6260A97: [email protected] = car [email protected] struct 0A8E: [email protected] = [email protected] + 5 // int 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 :NONAME_656wait 0 if $ONMISSION == 0 jf @NONAME_1928 if Actor.InCar($PLAYER_ACTOR, [email protected])jf @NONAME_1826 gosub @NONAME_2159 if [email protected] > 0 jf @NONAME_2035 02E3: [email protected] = car [email protected] speed if [email protected] == 0.0 jf @NONAME_758 jump @NONAME_1826 :NONAME_758if and 20.0 > [email protected] [email protected] > 1.0 jf @NONAME_796 [email protected] -= 1 :NONAME_796if and [email protected] > 20.0 35.0 > [email protected] jf @NONAME_834 [email protected] -= 2 :NONAME_834if and [email protected] > 35.0 50.0 > [email protected] jf @NONAME_872 [email protected] -= 3 :NONAME_872if [email protected] > 50.0 jf @NONAME_900 [email protected] -= 4 :NONAME_900if and8100: not actor $PLAYER_ACTOR in_sphere 1944.852 -1769.554 13.0125 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 2209.816 2481.934 10.8203 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 604.8804 1705.273 6.541 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -2414.49 982.081 45.2969 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -2244.623 -2561.828 31.9219 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -1327.512 2678.107 50.0625 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -95.1488 -1174.303 1.9281 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -1679.982 408.9051 7.2365 radius 1.5 1.5 1.0 sphere 0 in_car jf @NONAME_1521 if and8100: not actor $PLAYER_ACTOR in_sphere 652.03 -571.34 16.34 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -1605.897 -2714.252 48.5335 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -1471.48 1864.31 32.64 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 1596.5 2199.1 10.83 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 2145.9 2748.16 10.83 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 2642.11 1106.53 10.83 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 2117.42 920.42 10.83 radius 1.5 1.5 1.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 1381.68 456.26 19.91 radius 1.5 1.5 1.0 sphere 0 in_car jf @NONAME_1521 jump @NONAME_1826 :NONAME_1521if $ONMISSION == 0 jf @NONAME_1928 if 29000 > [email protected] jf @NONAME_1826 if Player.Money($PLAYER_CHAR) > 0jf @NONAME_2107 [email protected] = Player.Money($PLAYER_CHAR)wait 150 03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 07CC: set_player $PLAYER_CHAR button_15 0 [email protected] = 0 Car.LockInCurrentPosition([email protected]) = TruePlayer.CanMove($PLAYER_CHAR) = False:NONAME_1624wait 0 [email protected] = Player.Money($PLAYER_CHAR)0085: [email protected] = [email protected] // (int) 0062: [email protected] -= [email protected] // (int) if not 1 > [email protected] jf @NONAME_2084 if 29700 >= [email protected] jf @NONAME_1775 if $ONMISSION == 0 jf @NONAME_1928 if Actor.InCar($PLAYER_ACTOR, [email protected])jf @NONAME_1928 gosub @NONAME_2159 [email protected] += 300 097A: play_audio_at 0.0 0.0 0.0 event 1133 [email protected] += 1 jump @NONAME_1624 :[email protected] *= -1 Player.Money($PLAYER_CHAR) += [email protected]: put_actor $PLAYER_ACTOR in_car [email protected] Car.LockInCurrentPosition([email protected]) = FalsePlayer.CanMove($PLAYER_CHAR) = True07CC: set_player $PLAYER_CHAR button_15 1 03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 :NONAME_1826if or Actor.Dead($PLAYER_ACTOR) Car.Wrecked([email protected])jf @NONAME_1861 08C3: clear [email protected] bit 1 jump @NONAME_1936 :NONAME_18610A97: [email protected] = car [email protected] struct 0A8E: [email protected] = [email protected] + 5 // int 0A8C: write_memory [email protected] size 4 value [email protected] virtual_protect 0 if $ONMISSION == 0 jf @NONAME_1928 if not Actor.InCar($PLAYER_ACTOR, [email protected])jf @NONAME_656 :NONAME_1928wait 0 03F0: enable_text_draw 0 :NONAME_1936Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])08C3: clear [email protected] bit 1 wait 1250 jump @NONAME_2 :[email protected] = 0 if 047A: actor $PLAYER_ACTOR driving_bike jf @NONAME_2070 02D4: car [email protected] turn_off_engine jump @NONAME_900 :NONAME_20700918: enable_car [email protected] engine 0 jump @NONAME_900 :NONAME_208400BC: show_text_highpriority GXT 'GA_3' time 3000 flag 1 // No more freebies~n~$100 to respray!jump @NONAME_1775 :NONAME_210700BC: show_text_highpriority GXT 'NOMONEY' time 3000 flag 1 // ~s~You need more cash!jump @NONAME_1826 :NONAME_21300A97: [email protected] = car [email protected] struct [email protected] += 4 0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 return :NONAME_2159if [email protected] > 5000 jf @NONAME_2225 03F0: enable_text_draw 1 038D: draw_texture 1 position 220.0 425.3 size 128.0 64.0 RGBA 255 255 255 255 jump @NONAME_2284 :NONAME_2225if 5000 > [email protected] jf @NONAME_2284 03F0: enable_text_draw 1 038D: draw_texture 2 position 220.0 425.3 size 128.0 64.0 RGBA 255 255 255 255 :[email protected] = 66.0 [email protected] = 166.0 [email protected] = 33000 0062: [email protected] -= [email protected] // (int) 0093: [email protected] = integer [email protected] to_float [email protected] /= 500.0 0063: [email protected] -= [email protected] // (float) 005B: [email protected] += [email protected] // (float) 03F0: enable_text_draw 1 038D: draw_texture 3 position [email protected] 434.3 size 24.0 24.0 RGBA 255 255 255 255 09B3: get_car [email protected] door_status [email protected] if not [email protected] == 1 jf @NONAME_2460 03F0: enable_text_draw 1 038D: draw_texture 4 position 200.0 418.3 size 24.0 24.0 RGBA 255 255 255 255 :NONAME_2460return Edited March 8, 2013 by tysman Link to comment Share on other sites More sharing options...
ZAZ Posted March 9, 2013 Share Posted March 9, 2013 I have this fuel gauge mod and what I want is for the fuel gauge to run down more slowly this is the algorithm to reduce the fuel :NONAME_758if and20.0 > [email protected]@ > 1.0jf @[email protected] -= 1:NONAME_796if [email protected] > 20.035.0 > [email protected] @[email protected] -= 2:NONAME_834if [email protected] > 35.050.0 > [email protected] @[email protected] -= 3:[email protected] > 50.0jf @[email protected] -= 4:NONAME_900 modify the substractions in an easy way like that: :NONAME_758if and20.0 > [email protected]@ > 1.0jf @[email protected] -= 0:NONAME_796if [email protected] > 20.035.0 > [email protected] @[email protected] -= 0:NONAME_834if [email protected] > 35.050.0 > [email protected] @[email protected] -= 1:[email protected] > 50.0jf @[email protected] -= 1:NONAME_900 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
tysman Posted March 10, 2013 Author Share Posted March 10, 2013 (edited) What is changing the 10 -= 110 -= 210 -= 310 -= 4 to 10 -= 010 -= 010 -= 110 -= 1 doing exactly? OH and i am using this script now instead 0000: NOP :NONAME_2wait 0 if Player.Defined($PLAYER_CHAR)jf @NONAME_2 if and Actor.Driving($PLAYER_ACTOR) $ONMISSION == 0 jf @NONAME_2 if and84A7: not actor $PLAYER_ACTOR driving_boat 84C8: not actor $PLAYER_ACTOR driving_flying_vehicle 89AE: not actor $PLAYER_ACTOR driving_train not Actor.DrivingVehicleType($PLAYER_ACTOR, #BMX) not Actor.DrivingVehicleType($PLAYER_ACTOR, #BIKE) not Actor.DrivingVehicleType($PLAYER_ACTOR, #MTBIKE)jf @NONAME_2574 077E: get_active_interior_to $ACTIVE_INTERIOR if $ACTIVE_INTERIOR == 0 jf @NONAME_2 03C0: [email protected] = actor $PLAYER_ACTOR car 046C: [email protected] = car [email protected] driver if 003B: [email protected] == $PLAYER_ACTOR // (int) jf @NONAME_2 0391: release_txd_dictionary 0390: load_txd_dictionary "GASOLINE" 038F: load_texture "SCALEF" as 1 // Load dictionary with 0390 first 038F: load_texture "SCALEE" as 2 // Load dictionary with 0390 first 038F: load_texture "ARROW" as 3 // Load dictionary with 0390 first 038F: load_texture "LOCK" as 4 // Load dictionary with 0390 first 038F: load_texture "SPEEDOM" as 5 // Load dictionary with 0390 first 038F: load_texture "STRELK" as 6 // Load dictionary with 0390 first 038F: load_texture "ARROWN" as 7 // Load dictionary with 0390 first 038F: load_texture "NITRO" as 8 // Load dictionary with 0390 first wait 250 0AB3: var 2 = 0 0A92: create_custom_thread "ASSET_RADAR.ARD" gosub @NONAME_1955 if 88B7: not test [email protected] bit 1 jf @NONAME_347 0099: [email protected] = random_int_in_ranges_0_to_32767 08BD: set [email protected] bit 1 0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0 jump @NONAME_374 :NONAME_3470A97: [email protected] = car [email protected] struct [email protected] += 5 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 :NONAME_374wait 0 0A8D: [email protected] = read_memory 11989093 size 1 virtual_protect 0 if not [email protected] == 1 jf @NONAME_1720 077E: get_active_interior_to $ACTIVE_INTERIOR if $ACTIVE_INTERIOR == 0 jf @NONAME_1819 if $ONMISSION == 0 jf @NONAME_1819 if Actor.InCar($PLAYER_ACTOR, [email protected])jf @NONAME_1720 gosub @NONAME_1984 if [email protected] > 0 jf @NONAME_1848 02E3: [email protected] = car [email protected] speed if [email protected] == 0.0 jf @NONAME_531 jump @NONAME_1720 :NONAME_5310AB4: [email protected] = var 0 if [email protected] == 0 jf @NONAME_773 if and 45.0 > [email protected] [email protected] > 1.0 jf @NONAME_594 [email protected] -= 1 :NONAME_594if 81F3: not car [email protected] in_air jf @NONAME_766 if and [email protected] > 45.0 85.0 > [email protected] jf @NONAME_648 [email protected] -= 2 :NONAME_648if and [email protected] > 85.0 110.0 > [email protected] jf @NONAME_686 [email protected] -= 3 :NONAME_686if and [email protected] > 110.0 140.0 > [email protected] jf @NONAME_731 [email protected] -= 4 jump @NONAME_773 :NONAME_731if [email protected] > 140.0 jf @NONAME_773 [email protected] -= 5 jump @NONAME_773 :[email protected] -= 1 :NONAME_773if and8100: not actor $PLAYER_ACTOR in_sphere 1944.852 -1769.554 13.0125 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 2209.816 2481.934 10.8203 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 604.8804 1705.273 6.541 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -2414.49 982.081 45.2969 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -2244.623 -2561.828 31.9219 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -1327.512 2678.107 50.0625 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -95.1488 -1174.303 1.9281 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -1679.982 408.9051 7.2365 radius 1.5 1.5 3.0 sphere 0 in_car jf @NONAME_1394 if and8100: not actor $PLAYER_ACTOR in_sphere 652.03 -571.34 16.34 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -1605.897 -2714.252 48.5335 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere -1471.48 1864.31 32.64 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 1596.5 2199.1 10.83 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 2145.9 2748.16 10.83 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 2642.11 1106.53 10.83 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 2117.42 920.42 10.83 radius 1.5 1.5 3.0 sphere 0 in_car 8100: not actor $PLAYER_ACTOR in_sphere 1381.68 456.26 19.91 radius 1.5 1.5 3.0 sphere 0 in_car jf @NONAME_1394 jump @NONAME_1720 :NONAME_1394077E: get_active_interior_to $ACTIVE_INTERIOR if $ACTIVE_INTERIOR == 0 jf @NONAME_1819 if $ONMISSION == 0 jf @NONAME_1819 if 29000 > [email protected] jf @NONAME_1720 if Player.Money($PLAYER_CHAR) > 0jf @NONAME_1932 [email protected] = Player.Money($PLAYER_CHAR)wait 150 03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 07CC: set_player $PLAYER_CHAR button_15 0 [email protected] = 0 Car.LockInCurrentPosition([email protected]) = TruePlayer.CanMove($PLAYER_CHAR) = False:NONAME_1520wait 0 [email protected] = Player.Money($PLAYER_CHAR)0062: [email protected] -= [email protected] // (int) if not 1 > [email protected] jf @NONAME_1909 if 29700 >= [email protected] jf @NONAME_1663 if $ONMISSION == 0 jf @NONAME_1819 if Actor.InCar($PLAYER_ACTOR, [email protected])jf @NONAME_1819 gosub @NONAME_1984 [email protected] += 300 097A: play_audio_at 0.0 0.0 0.0 event 1133 [email protected] += 1 jump @NONAME_1520 :[email protected] *= -1 Player.Money($PLAYER_CHAR) += [email protected]: put_actor $PLAYER_ACTOR in_car [email protected] Car.LockInCurrentPosition([email protected]) = FalsePlayer.CanMove($PLAYER_CHAR) = True07CC: set_player $PLAYER_CHAR button_15 1 03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 0AB3: var 0 = 0 :NONAME_1720if or Actor.Dead($PLAYER_ACTOR) Car.Wrecked([email protected])jf @NONAME_1755 08C3: clear [email protected] bit 1 jump @NONAME_1823 :NONAME_17550A97: [email protected] = car [email protected] struct [email protected] += 5 0A8C: write_memory [email protected] size 4 value [email protected] virtual_protect 0 if $ONMISSION == 0 jf @NONAME_1819 if not Actor.InCar($PLAYER_ACTOR, [email protected])jf @NONAME_374 :NONAME_1819wait 0 :NONAME_18230AB3: var 2 = 1 08C3: clear [email protected] bit 1 wait 1250 jump @NONAME_2 :[email protected] = 0 if 047A: actor $PLAYER_ACTOR driving_bike jf @NONAME_1889 02D4: car [email protected] turn_off_engine 0AB3: var 0 = 1 jump @NONAME_773 :NONAME_18890918: enable_car [email protected] engine 0 0AB3: var 0 = 1 jump @NONAME_773 :NONAME_190900BC: show_text_highpriority GXT 'GA_3' time 3000 flag 1 // No more freebies~n~$100 to respray!jump @NONAME_1663 :NONAME_193200BC: show_text_highpriority GXT 'NOMONEY' time 3000 flag 1 // ~s~You need more cash!jump @NONAME_1720 :NONAME_19550A97: [email protected] = car [email protected] struct [email protected] += 4 0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 return :NONAME_19840AB4: [email protected] = var 3 0AB4: [email protected] = var 4 if [email protected] > 0 jf @NONAME_2149 0093: [email protected] = integer [email protected] to_float [email protected] += 108.6 03F0: enable_text_draw 0 033F: set_text_draw_letter_size 0.3 1.0 045A: draw_text_1number 209.05 356.333 GXT 'NUMBER' number [email protected] // ~1~038D: draw_texture 8 position 213.5 339.0 size 128.0 111.0 RGBA 255 255 255 255 074B: draw_texture 7 position 213.5 339.0 scale 128.0 128.0 angle [email protected] color_RGBA 255 255 255 255 :NONAME_214902E3: [email protected] = car [email protected] speed [email protected] *= 3.6 0092: [email protected] = float [email protected] to_integer [email protected] += 54.0 03E3: set_texture_to_be_drawn_antialiased 1 033F: set_text_draw_letter_size 0.0 0.0 045A: draw_text_1number 535.5 425.4 GXT 'NUMBER' number [email protected] // ~1~038D: draw_texture 5 position 506.5 385.0 size 242.5 218.0 RGBA 255 255 255 255 074B: draw_texture 6 position 548.0 379.0 scale 241.0 205.0 angle [email protected] color_RGBA 255 255 255 255 if [email protected] > 5000 jf @NONAME_2366 03F0: enable_text_draw 1 038D: draw_texture 1 position 414.0 414.0 size 65.5 53.5 RGBA 255 255 255 255 jump @NONAME_2425 :NONAME_2366if 5000 > [email protected] jf @NONAME_2425 03F0: enable_text_draw 1 038D: draw_texture 2 position 414.0 414.0 size 65.5 53.5 RGBA 255 255 255 255 :NONAME_24250093: [email protected] = integer [email protected] to_float [email protected] /= 500.0 [email protected] *= 2.3 [email protected] += 108.6 03F0: enable_text_draw 1 074B: draw_texture 3 position 438.5 412.0 scale 109.0 109.0 angle [email protected] color_RGBA 255 255 255 255 09B3: get_car [email protected] door_status [email protected] if not [email protected] == 1 jf @NONAME_2572 03F0: enable_text_draw 1 038D: draw_texture 4 position 459.0 432.3 size 14.0 14.0 RGBA 255 255 255 255 :NONAME_2572return :NONAME_2574wait 0 077E: get_active_interior_to $ACTIVE_INTERIOR if $ACTIVE_INTERIOR == 0 jf @NONAME_2 if Actor.Driving($PLAYER_ACTOR)jf @NONAME_2 if and84C8: not actor $PLAYER_ACTOR driving_flying_vehicle not Actor.DrivingVehicleType($PLAYER_ACTOR, #BMX) not Actor.DrivingVehicleType($PLAYER_ACTOR, #BIKE) not Actor.DrivingVehicleType($PLAYER_ACTOR, #MTBIKE) $ONMISSION == 0 jf @NONAME_2 03C0: [email protected] = actor $PLAYER_ACTOR car 046C: [email protected] = car [email protected] driver if 003B: [email protected] == $PLAYER_ACTOR // (int) jf @NONAME_2 0391: release_txd_dictionary 0390: load_txd_dictionary "GASOLINE" 038F: load_texture "SPEEDOM" as 1 // Load dictionary with 0390 first 038F: load_texture "STRELK" as 2 // Load dictionary with 0390 first :NONAME_2738wait 0 0A8D: [email protected] = read_memory 11989093 size 1 virtual_protect 0 if not [email protected] == 1 jf @NONAME_3003 077E: get_active_interior_to $ACTIVE_INTERIOR if $ACTIVE_INTERIOR == 0 jf @NONAME_3068 if $ONMISSION == 0 jf @NONAME_3068 if Actor.InCar($PLAYER_ACTOR, [email protected])jf @NONAME_3068 03F0: enable_text_draw 0 02E3: [email protected] = car [email protected] speed [email protected] *= 3.56 0092: [email protected] = float [email protected] to_integer [email protected] += 68.0 0340: set_text_draw_RGBA 180 180 180 255 033F: set_text_draw_letter_size 0.0 0.0 045A: draw_text_1number 940.5 830.4 GXT 'NUMBER' number [email protected] // ~1~03E3: set_texture_to_be_drawn_antialiased 1 038D: draw_texture 1 position 506.5 385.0 size 242.5 206.0 RGBA 255 255 255 255 074B: draw_texture 2 position 550.5 385.0 scale 242.5 206.0 angle [email protected] color_RGBA 255 255 255 255 :NONAME_3003if or Actor.Dead($PLAYER_ACTOR) Car.Wrecked([email protected])jf @NONAME_3031 jump @NONAME_3068 :NONAME_3031if $ONMISSION == 0 jf @NONAME_3068 if not Actor.InCar($PLAYER_ACTOR, [email protected])jf @NONAME_2738 :NONAME_3068wait 1250 jump @NONAME_2 Edited March 10, 2013 by tysman Link to comment Share on other sites More sharing options...
tysman Posted March 12, 2013 Author Share Posted March 12, 2013 So what code would i use in new script i posted before this reply? 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