Advertisement
Guest User

Untitled

a guest
Oct 15th, 2012
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. {$CLEO}
  2. 0000:
  3. //0A8C: write_memory 0x859F80 size 4 value 100.0 virtual_protect 1
  4. {0AB1: call_scm_func @__VarToOffset 1 varnumber 15 result 20@
  5. 15@ = 100.0
  6. 0A8C: write_memory 0x6A70C0 size 4 value 20@ virtual_protect 0 }
  7. 0A8C: write_memory 0x6A70C0 size 4 value 0x00858628 virtual_protect 1
  8. 0A8C: write_memory 0x570E14 size 2 value 0x1DEB virtual_protect 1
  9. while true
  10. wait 0
  11. var
  12. 0@: int
  13. 30@: int
  14. end
  15. if
  16. 00DF: actor $PLAYER_ACTOR driving
  17. then
  18. 0811: 0@ = actor $PLAYER_ACTOR car
  19. 0227: 4@ = car 0@ health
  20.  
  21.  
  22. //bonus
  23. if and
  24. 84A7: not actor $PLAYER_ACTOR driving_boat
  25. 89AE: not actor $PLAYER_ACTOR driving_train
  26. 84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
  27. 30@ <> 0@
  28. 056E: car 0@ defined
  29. then
  30. 0209: 17@ = random_int_in_ranges 0 3
  31. //17@ = 2
  32. if
  33. 17@ == 2
  34. then
  35. 09E9: car 0@ add_single_nitro
  36. end
  37. end
  38. 30@ = 0@
  39.  
  40.  
  41. if
  42. 4@ <= 249
  43. then
  44. if and
  45. 84A7: not actor $PLAYER_ACTOR driving_boat
  46. 89AE: not actor $PLAYER_ACTOR driving_train
  47. 84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
  48. then
  49. 02D4: car 0@ turn_off_engine
  50. //10@ = true
  51. end
  52.  
  53.  
  54.  
  55. if or
  56. 04A7: actor $PLAYER_ACTOR driving_boat
  57. 09AE: actor $PLAYER_ACTOR driving_train
  58. 04C8: actor $PLAYER_ACTOR driving_flying_vehicle
  59. then
  60. 0A8C: write_memory 0x6A70C0 size 4 value 0x00859F80 virtual_protect 1
  61. //15@ = 250.0
  62. else
  63. 0A8C: write_memory 0x6A70C0 size 4 value 0x00858628 virtual_protect 1
  64. //15@ = 100.0
  65. end
  66.  
  67.  
  68. end
  69.  
  70.  
  71. end
  72.  
  73. if //and
  74. //10@ == true
  75. 056E: car 0@ defined
  76. then
  77. if
  78. 01F4: car 0@ flipped
  79. then
  80. 03ED: set_car 0@ disable_flipped_explosion_when_empty true
  81. //10@ = false
  82. end
  83. end
  84.  
  85. //03F0: enable_text_draw 1
  86. //045B: draw_text_2numbers 320.0 390.0 GXT 'msefct' numbers 0 4@
  87.  
  88.  
  89. end
  90.  
  91. 0A93: end_custom_thread
  92.  
  93.  
  94. :__VarToOffset
  95. 0A9F: 23@ = current_thread_pointer
  96. 23@ += 0x3C
  97. 0@ *= 4
  98. 005A: 23@ += 0@ // address of the local variable
  99. 0AB2: ret 1 23@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement