Advertisement
Guest User

Untitled

a guest
Apr 27th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. {$CLEO}
  2. 0000:
  3. 0A8D: 0@ = read_memory 0x8CD800 size 4 virtual_protect 1
  4. 0@ *= 2.0
  5. 0AB1: call_scm_func @__VarToOffset 1 varnumber 0 result 10@
  6. 0A8C: write_memory 0x52C9F9 size 4 value 10@ virtual_protect 1
  7.  
  8. 0A8D: 1@ = read_memory 0x858628 size 4 virtual_protect 1
  9. 0AB1: call_scm_func @__VarToOffset 1 varnumber 1 result 11@
  10. 0A8C: write_memory 0x52CA17 size 4 value 11@ virtual_protect 1
  11.  
  12.  
  13. while true
  14. wait 0
  15. gosub @CutsceneCheck
  16. gosub @WideScreenCheck
  17.  
  18.  
  19. if or
  20. 0818: actor $PLAYER_ACTOR in_air
  21. 04C8: actor $PLAYER_ACTOR driving_flying_vehicle
  22. 29@ == TRUE
  23. 28@ == TRUE
  24. then
  25. 00A0: store_actor $PLAYER_ACTOR position_to 22@ 23@ 24@
  26. 02CE: 16@ = ground_z_at 22@ 23@ 24@
  27. if
  28. 16@ >= 15.0
  29. then
  30. 1@ = 100.0
  31. 0A8D: 0@ = read_memory 0x8CD800 size 4 virtual_protect 1
  32. end
  33. else
  34. 1@ = 100.0
  35. 1@ /= 3.0
  36.  
  37. 0A8D: 0@ = read_memory 0x8CD800 size 4 virtual_protect 1
  38. 0@ *= 2.0
  39. end
  40.  
  41.  
  42.  
  43. end
  44.  
  45.  
  46. :__LabelToOffset
  47. //0AB1: call_scm_func @__LabelToOffset 1 label @_bloodsmall_ store_to 29@
  48. if
  49. 0@ == 0
  50. then
  51. 0AB2: ret 1 0
  52. end
  53. 0A9F: 1@ = current_thread_pointer
  54. 1@ += 0x10
  55. 0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0 // baseIP
  56. 0062: 1@ -= 0@ // label address
  57. 0AB2: ret 1 1@
  58.  
  59.  
  60. :__VarToOffset
  61. //0AB1: call_scm_func @__VarToOffset 1 varnumber 4 result 4@
  62. 0A9F: 23@ = current_thread_pointer
  63. 23@ += 0x3C
  64. 0@ *= 4
  65. 005A: 23@ += 0@ // address of the local variable
  66. 0AB2: ret 1 23@
  67.  
  68. :CutsceneCheck
  69. if
  70. 06B9: cutscene_data_loaded
  71. then
  72. if
  73. 82E9: not cutscene_reached_end
  74. then
  75. 29@ = TRUE
  76. end
  77. else
  78. 29@ = FALSE
  79. end
  80. return
  81.  
  82. :WideScreenCheck
  83. 0A8D: 27@ = read_memory 0xB6F065 size 4 virtual_protect 0
  84. if
  85. 27@ == 1
  86. then
  87. 28@ = TRUE
  88. else
  89. 28@ = FALSE
  90. end
  91. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement