Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {$CLEO .cs}
- 0000:
- //audio reloading fix
- 0A8C: write_memory 0x0052BFA3 size 1 value 0x00 virtual_protect 1
- while true
- wait 0
- 0470: 4@ = actor $player_actor armed_weapon
- if and
- 4@ > 16
- 4@ < 33
- then
- if and
- not 4@ == 19
- not 4@ == 21
- not 4@ == 28
- not 4@ == 30
- not 4@ == 31
- then
- if and
- 80E0: not player $PLAYER_CHAR driving
- 80E1: not player 0 pressed_key 16 //Sprint key
- 80E1: not player 0 pressed_key 5 //prev-next
- 80E1: not player 0 pressed_key 7 //weapon
- 80E1: not player 0 pressed_key 15 //enter-exit
- 8AB0: not key_pressed 0x01 // VK_LBUTTON
- 0AB0: key_pressed 82 //r
- then
- 0A96: 0@ = actor $PLAYER_ACTOR struct
- 0@ += 1284
- 0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
- 0A96: 0@ = actor $PLAYER_ACTOR struct
- 0@ += 1032
- 1@ *= 24
- 000A: 0@ += 1@ // integer values
- 0@ += 4
- 3@ = 40
- end
- if
- 3@ >= 1
- then
- 0602: emulate_button_press_on_pad 17 sensitivity 0xFF
- 0A8C: write_memory 0@ size 4 value 2 virtual_protect 1
- 3@ -= 1
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement