Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {$CLEO}
- 0000:
- wait 500
- 0A8C: write_memory 0x58147C size 4 value 0x00859524 virtual_protect 1
- 0A8C: write_memory 0x58148C size 4 value 0x00859520 virtual_protect 1
- 0A8C: write_memory 0x5816A1 size 4 value 0x008599D0 virtual_protect 1 //dist
- 0A8C: write_memory 0x580EF0 size 4 value 0x000000BE virtual_protect 1 //alpha
- 0AB1: call_scm_func @__LabelToOffset 1 label @scaling_ptrs store_to 31@
- 0A8E: 30@ = 31@ + 4 // int //31@ - y, 30@ - x
- 0A8D: 29@ = read_memory 0x859524 size 4 virtual_protect 1 //y scale
- 0017: 29@ /= 2.0
- 0A8C: write_memory 31@ size 4 value 29@ virtual_protect 1
- 0A8D: 29@ = read_memory 0x859520 size 4 virtual_protect 1 //x scale
- 0017: 29@ /= 2.0
- 0A8C: write_memory 30@ size 4 value 29@ virtual_protect 1
- while true
- wait 0
- if
- not player.Defined($player_char)
- then
- continue
- end
- if and
- 80DF: not actor $PLAYER_ACTOR driving
- 8965: not actor $PLAYER_ACTOR swimming
- 86B9: not cutscene_data_loaded
- 0AB0: key_pressed 80
- then
- while 0AB0: key_pressed 80
- wait 0
- end
- 0A8C: write_memory 0x58147C size 4 value 31@ virtual_protect 1
- 0A8C: write_memory 0x58148C size 4 value 30@ virtual_protect 1
- 0A8C: write_memory 0x5816A1 size 4 value 0x00859000 virtual_protect 1
- 0A8C: write_memory 0x580EF0 size 4 value 0x000000FF virtual_protect 1 //alpha
- 0390: load_txd_dictionary "MOBILE"
- 038F: load_texture "MOBILE" as 19 // Load dictionary with 0390 first
- 28@ = true
- end
- while 28@ == true
- wait 0
- {for 15@ = 0xA913E8 to 0xA92D68 step 0x44
- 15@ += 0x23
- 0A8C: write_memory 15@ size 1 value 0 virtual_protect 1
- end}
- 03F0: enable_text_draw 1
- 03E3: set_texture_to_be_drawn_antialiased 1
- 038D: draw_texture 19 position 558.00 388.27 size 128.00 195.00 RGBA 255 255 255 255
- if
- 25@ == 0
- then
- 08D4: 0@ = create_panel_with_title 'DUMMY' position 500.0 305.0 width 90.0 columns 1 interactive 1 background 1 alignment 1
- 08DB: set_panel 0@ column 0 header 'DUMMY' data 'hl_opt1' 'hl_opt2' 'hl_opt3' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'
- 25@ = 1
- end
- if and
- 25@ == 1
- 00E1: player 0 pressed_key 16
- then
- while 00E1: player 0 pressed_key 16
- wait 0
- 038D: draw_texture 19 position 558.00 388.27 size 128.00 195.00 RGBA 255 255 255 255
- end
- 08D7: 1@ = panel 0@ active_row
- if
- 1@ == 0 //Services
- then
- 08DA: remove_panel 0@
- 08D4: 0@ = create_panel_with_title 'DUMMY' position 500.0 305.0 width 90.0 columns 1 interactive 1 background 1 alignment 1
- 08DB: set_panel 0@ column 0 header 'DUMMY' data 'hl_air' 'creditd' 'hl_hawk' 'hl_jeep' 'PRTRPS' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'
- 24@ = 1
- while 24@ == 1
- wait 0
- 038D: draw_texture 19 position 558.00 388.27 size 128.00 195.00 RGBA 255 255 255 255
- if and
- 24@ == 1
- 00E1: player 0 pressed_key 16
- then
- while 00E1: player 0 pressed_key 16
- wait 0
- end
- 08D7: 1@ = panel 0@ active_row
- if
- 1@ == 0 // Air Support
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -500
- wait 1
- 0A8C: write_memory 9867536 size 4 value 1095324243 virtual_protect 0
- break
- end
- if
- 1@ == 1 // Credit [$30000]
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += 30000
- wait 90000
- Player.Money($PLAYER_CHAR) += -30000
- break
- end
- if
- 1@ == 2 // Heli Evac
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -1000
- 0A92: create_custom_thread "BlackHawk.s"
- break
- end
- if
- 1@ == 3 // Jeep Evac
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -500
- 0A92: create_custom_thread "JeepGunner.s"
- break
- end
- if
- 1@ == 4 // Paratroopers
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -500
- 0A92: create_custom_thread "Paratroopers.s"
- break
- end
- {if
- 1@ == 5 //
- then
- gosub @done
- Player.Money($PLAYER_CHAR) +=
- break
- end }
- end
- if or
- 00DF: actor $PLAYER_ACTOR driving
- 00E1: player 0 pressed_key 15
- 06B9: cutscene_data_loaded
- then
- while 00E1: player 0 pressed_key 15
- wait 0
- 038D: draw_texture 19 position 558.00 388.27 size 128.00 195.00 RGBA 255 255 255 255
- end
- 08DA: remove_panel 0@
- 24@ = 0
- 25@ = 0
- break
- end
- end
- end
- if
- 1@ == 1 //Orders
- then
- 08DA: remove_panel 0@
- 08D4: 0@ = create_panel_with_title 'DUMMY' position 500.0 305.0 width 90.0 columns 1 interactive 1 background 1 alignment 1
- 08DB: set_panel 0@ column 0 header 'DUMMY' data 'sprycnd' 'hl_sprc' 'hl_ammu' 'hl_seas' 'hl_hydr' 'hl_jet' 'hl_rhy' 'hl_hnt' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'
- 24@ = 1
- while 24@ == 1
- wait 0
- 038D: draw_texture 19 position 558.00 388.27 size 128.00 195.00 RGBA 255 255 255 255
- if and
- 24@ == 1
- 00E1: player 0 pressed_key 16
- then
- while 00E1: player 0 pressed_key 16
- wait 0
- end
- 08D7: 1@ = panel 0@ active_row
- if
- 1@ == 0 // Minigun to car
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -5000
- 0A92: create_custom_thread "carguns.s"
- break
- end
- if
- 1@ == 1 // Spraycan
- then
- gosub @done
- //Player.Money($PLAYER_CHAR) += -500
- 0A92: create_custom_thread "heli-deliver-spraycan.s"
- break
- end
- if
- 1@ == 2 // Ammunation
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -15000
- 0A92: create_custom_thread "heli-ammunation.s"
- break
- end
- if
- 1@ == 3 //Seasparrow
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -2000
- 0A92: create_custom_thread "heli-deliver-heli.s"
- break
- end
- if
- 1@ == 4 // Hydra
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -10000
- 0A92: create_custom_thread "heli-deliver-hydra.s"
- break
- end
- if
- 1@ == 5 // Jetpack
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -1000
- 0A92: create_custom_thread "heli-deliver-jetpack.s"
- break
- end
- if
- 1@ == 6 // Rhyno
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -3000
- 0A92: create_custom_thread "heli-deliver-rhyno.s"
- break
- end
- if
- 1@ == 7 // Hunter
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -4000
- 0A92: create_custom_thread "heli-deliver-hunter.s"
- break
- end
- end
- if or
- 00DF: actor $PLAYER_ACTOR driving
- 00E1: player 0 pressed_key 15
- 06B9: cutscene_data_loaded
- then
- while 00E1: player 0 pressed_key 15
- wait 0
- end
- 08DA: remove_panel 0@
- 24@ = 0
- 25@ = 0
- break
- end
- end
- end
- if
- 1@ == 2 //Options
- then
- 08DA: remove_panel 0@
- 08D4: 0@ = create_panel_with_title 'DUMMY' position 500.0 305.0 width 90.0 columns 1 interactive 1 background 1 alignment 1
- 08DB: set_panel 0@ column 0 header 'DUMMY' data 'hl_emp' 'plbrib' 'hl_skn' 'hl_mis' '6wntd' 'hl_clt' 'hl_acs' 'GNGWAR' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'
- 24@ = 1
- while 24@ == 1
- wait 0
- 038D: draw_texture 19 position 558.00 388.27 size 128.00 195.00 RGBA 255 255 255 255
- if and
- 24@ == 1
- 00E1: player 0 pressed_key 16
- then
- while 00E1: player 0 pressed_key 16
- wait 0
- end
- 08D7: 1@ = panel 0@ active_row
- if
- 1@ == 0 // Use EMP
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -1000
- 0A92: create_custom_thread "EMP.s"
- break
- end
- if
- 1@ == 1 // Police Bribe
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -12000
- Player.ClearWantedLevel($PLAYER_CHAR)
- break
- end
- if
- 1@ == 2 // Change Skin
- then
- gosub @done
- //Player.Money($PLAYER_CHAR) +=
- //wait 500
- 20@ = 7
- 20@ *= 2
- 20@ += 12006488
- 21@ = 5
- 21@ *= 2
- 21@ += 12006488
- 0A8C: write_memory 20@ size 2 value 128 virtual_protect 0
- 0A8C: write_memory 21@ size 2 value 128 virtual_protect 0
- 22@ = 4
- 22@ *= 2
- 22@ += 12006488
- 0A8C: write_memory 22@ size 2 value 128 virtual_protect 0
- break
- end
- if
- 1@ == 3 // Missions Replay
- then
- gosub @done
- //Player.Money($PLAYER_CHAR) +=
- 0A92: create_custom_thread "AllMissions.s"
- break
- end
- if
- 1@ == 4 // 6 Wanted level
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -12
- 01F0: set_max_wanted_level_to 6
- Player.WantedLevel($PLAYER_CHAR) = 6
- break
- end
- if
- 1@ == 5 // Stats tweak
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -30000
- 0A92: create_custom_thread "stats_ed.s"
- break
- end
- if
- 1@ == 6 // Laser sight
- then
- gosub @done
- Player.Money($PLAYER_CHAR) += -30
- 0AAA: 23@ = thread 'ACCES' pointer
- if
- 23@ == 0
- then
- 0A8C: write_memory 0x58FBBC size 4 value 0x903475C0 virtual_protect 1
- 0A8C: write_memory 0x58FBC0 size 4 value 0x90909090 virtual_protect 1
- 0A92: create_custom_thread "accessory.s"
- else
- 0ABA: end_custom_thread_named 'ACCES'
- 0A8C: write_memory 0x58FBBC size 4 value 0xE83475C0 virtual_protect 1
- 0A8C: write_memory 0x58FBC0 size 4 value 0xFFFFE45C virtual_protect 1
- end
- break
- end
- if
- 1@ == 7 // State War
- then
- gosub @done
- //Player.Money($PLAYER_CHAR) +=
- 0A92: create_custom_thread "Gangwar.s"
- break
- end
- end
- if or
- 9@ == true
- 00DF: actor $PLAYER_ACTOR driving
- 00E1: player 0 pressed_key 15
- 06B9: cutscene_data_loaded
- then
- while 00E1: player 0 pressed_key 15
- wait 0
- end
- 08DA: remove_panel 0@
- 24@ = 0
- 25@ = 0
- 9@ = false
- break
- end
- end
- end
- { if
- 1@ == 3 //Unused
- then
- 08DA: remove_panel 0@
- 08D4: 0@ = create_panel_with_title 'DUMMY' position 500.0 305.0 width 90.0 columns 1 interactive 1 background 1 alignment 1
- 08DB: set_panel 0@ column 0 header 'DUMMY' data 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'
- 24@ = 1
- while 24@ == 1
- wait 0
- 038D: draw_texture 19 position 558.00 388.27 size 128.00 195.00 RGBA 255 255 255 255
- if and
- 24@ == 1
- 00E1: player 0 pressed_key 16
- then
- while 00E1: player 0 pressed_key 16
- wait 0
- end
- 08D7: 1@ = panel 0@ active_row
- if
- 1@ == 0 //
- then
- end
- if
- 1@ == 1 //
- then
- end
- if
- 1@ == 2 //
- then
- end
- if
- 1@ == 3 //
- then
- end
- end
- if
- 00E1: player 0 pressed_key 15
- then
- while 00E1: player 0 pressed_key 15
- wait 0
- end
- 08DA: remove_panel 0@
- 24@ = 0
- 25@ = 0
- break
- end
- end
- end }
- end
- if or
- 00DF: actor $PLAYER_ACTOR driving
- 00E1: player 0 pressed_key 15
- 06B9: cutscene_data_loaded
- then
- while 00E1: player 0 pressed_key 15
- wait 0
- end
- 08DA: remove_panel 0@
- 03F0: enable_text_draw 0
- 0A8C: write_memory 0x58147C size 4 value 0x00859524 virtual_protect 1
- 0A8C: write_memory 0x58148C size 4 value 0x00859520 virtual_protect 1
- 0A8C: write_memory 0x5816A1 size 4 value 0x008599D0 virtual_protect 1 //dist
- 0A8C: write_memory 0x580EF0 size 4 value 0x000000BE virtual_protect 1 //alpha
- 25@ = 0
- 28@ = false
- end
- end //end while 28
- end
- :done
- 08DA: remove_panel 0@
- 0@ = 0
- 1@ = 0
- 24@ = 0
- 25@ = 0
- 28@ = false
- //9@ = true
- return
- :__LabelToOffset //0AB1: call_scm_func @__LabelToOffset 1 label @_txdname_ store_to 30@
- if
- 0@ == 0
- then
- 0AB2: ret 1 0
- end
- 0A9F: 1@ = current_thread_pointer
- 1@ += 0x10
- 0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0 // baseIP
- 0062: 1@ -= 0@ // label address
- 0AB2: ret 1 1@
- :__VarToOffset //0AB1: call_scm_func @__VarToOffset 1 varnumber 2 result 31@
- 0A9F: 23@ = current_thread_pointer
- 23@ += 0x3C
- 0@ *= 4
- 005A: 23@ += 0@ // address of the local variable
- 0AB2: ret 1 23@
- :scaling_ptrs
- hex
- 00 00 00 00 //y
- 00 00 00 00 //x
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement