Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. {$CLEO .cs}
  2. 0000:
  3. //audio reloading fix
  4. 0A8C: write_memory 0x0052BFA3 size 1 value 0x00 virtual_protect 1
  5.  
  6. while true
  7. wait 0
  8. 0470: 4@ = actor $player_actor armed_weapon
  9. if and
  10. 4@ > 16
  11. 4@ < 33
  12. then
  13. if and
  14. not 4@ == 19
  15. not 4@ == 21
  16. not 4@ == 28
  17. not 4@ == 30
  18. not 4@ == 31
  19. then
  20.  
  21.  
  22.  
  23. if and
  24. 80E0: not player $PLAYER_CHAR driving
  25. 80E1: not player 0 pressed_key 16 //Sprint key
  26. 80E1: not player 0 pressed_key 5 //prev-next
  27. 80E1: not player 0 pressed_key 7 //weapon
  28. 80E1: not player 0 pressed_key 15 //enter-exit
  29. 8AB0: not key_pressed 0x01 // VK_LBUTTON
  30. 0AB0: key_pressed 82 //r
  31. then
  32. 0A96: 0@ = actor $PLAYER_ACTOR struct
  33. 0@ += 1284
  34. 0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
  35. 0A96: 0@ = actor $PLAYER_ACTOR struct
  36. 0@ += 1032
  37. 1@ *= 24
  38. 000A: 0@ += 1@ // integer values
  39. 0@ += 4
  40. 3@ = 40
  41. end
  42. if
  43. 3@ >= 1
  44. then
  45. 0602: emulate_button_press_on_pad 17 sensitivity 0xFF
  46. 0A8C: write_memory 0@ size 4 value 2 virtual_protect 1
  47. 3@ -= 1
  48. end
  49. end
  50. end
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement