Advertisement
fastman92

reply to Can't decompile a CLEO mod on Sanny Builder

Apr 21st, 2014
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. // This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 4.11.2013
  2. {$CLEO .cs}
  3.  
  4. //-------------MAIN---------------
  5. 0006: 9@ = 0
  6. 0006: 11@ = 0
  7. 0006: 12@ = 0
  8. 0006: 15@ = 1
  9. 0006: 17@ = 0
  10. 0000: NOP
  11.  
  12. :Noname_37
  13. 0001: wait 0
  14. 0050: gosub @Noname_171
  15. 0050: gosub @Noname_226
  16. 0050: gosub @Noname_288
  17. 0050: gosub @Noname_337
  18. 00D6: if or
  19. 0039: 9@ == 1
  20. 0039: 11@ == 1
  21. 0039: 12@ == 1
  22. 0039: 15@ == 0
  23. 004D: goto_if_false @Noname_119
  24. 03F0: use_text_commands 0
  25. 0002: goto @Noname_164
  26.  
  27. :Noname_119
  28. 00D6: if and
  29. 80DF: not is_char_in_any_car $PLAYER_ACTOR
  30. 00E1: is_button_pressed $PLAYER_CHAR button 4
  31. 004D: goto_if_false @Noname_153
  32. 03F0: use_text_commands 0
  33. 0002: goto @Noname_164
  34.  
  35. :Noname_153
  36. 03F0: use_text_commands 1
  37. 0050: gosub @Noname_413
  38.  
  39. :Noname_164
  40. 0002: goto @Noname_37
  41.  
  42. :Noname_171
  43. 0A8D: read_memory 11989093 size 4 vp 0 store_to 8@
  44. 00D6: if
  45. 0039: 8@ == 1
  46. 004D: goto_if_false @Noname_217
  47. 0006: 9@ = 1
  48. 0002: goto @Noname_224
  49.  
  50. :Noname_217
  51. 0006: 9@ = 0
  52.  
  53. :Noname_224
  54. 0051: return
  55.  
  56. :Noname_226
  57. 0A8D: read_memory 9873356 size 4 vp 0 store_to 10@
  58. 00D6: if or
  59. 0039: 10@ == 1
  60. 0039: 10@ == 2
  61. 004D: goto_if_false @Noname_279
  62. 0006: 11@ = 1
  63. 0002: goto @Noname_286
  64.  
  65. :Noname_279
  66. 0006: 11@ = 0
  67.  
  68. :Noname_286
  69. 0051: return
  70.  
  71. :Noname_288
  72. 00D6: if
  73. 06B9: has_cutscene_loaded
  74. 004D: goto_if_false @Noname_328
  75. 00D6: if
  76. 82E9: not has_cutscene_finished
  77. 004D: goto_if_false @Noname_321
  78. 0006: 12@ = 1
  79.  
  80. :Noname_321
  81. 0002: goto @Noname_335
  82.  
  83. :Noname_328
  84. 0006: 12@ = 0
  85.  
  86. :Noname_335
  87. 0051: return
  88.  
  89. :Noname_337
  90. 0A8D: read_memory 12216172 size 4 vp 0 store_to 13@
  91. 0A8D: read_memory 12231675 size 4 vp 0 store_to 14@
  92. 00D6: if and
  93. 0039: 13@ == 2
  94. 0039: 14@ == 0
  95. 004D: goto_if_false @Noname_404
  96. 0006: 15@ = 0
  97. 0002: goto @Noname_411
  98.  
  99. :Noname_404
  100. 0006: 15@ = 1
  101.  
  102. :Noname_411
  103. 0051: return
  104.  
  105. :Noname_413
  106. 0050: gosub @Noname_581
  107. 00D6: if
  108. 0039: 17@ == 0
  109. 004D: goto_if_false @Noname_572
  110. 0050: gosub @Noname_627
  111. 0050: gosub @Noname_657
  112. 00D6: if or
  113. 05AD: s$93 == 'LA' // Los Santos
  114. 05AD: s$93 == 'SF' // San Fierro
  115. 05AD: s$93 == 'VE' // Las Venturas
  116. 004D: goto_if_false @Noname_519
  117. 05A9: s$93 = 'CT'
  118.  
  119. :Noname_519
  120. 00D6: if
  121. 05AD: s$93 == 'SAN_AND' // San Andreas
  122. 004D: goto_if_false @Noname_558
  123. 05A9: s$93 = 'CN'
  124.  
  125. :Noname_558
  126. 0050: gosub @Noname_957
  127. 0002: goto @Noname_579
  128.  
  129. :Noname_572
  130. 0050: gosub @Noname_1085
  131.  
  132. :Noname_579
  133. 0051: return
  134.  
  135. :Noname_581
  136. 077E: get_area_visible 16@
  137. 00D6: if
  138. 0039: 16@ == 0
  139. 004D: goto_if_false @Noname_618
  140. 0006: 17@ = 0
  141. 0002: goto @Noname_625
  142.  
  143. :Noname_618
  144. 0006: 17@ = 1
  145.  
  146. :Noname_625
  147. 0051: return
  148.  
  149. :Noname_627
  150. 00A0: get_char_coordinates $PLAYER_ACTOR store_to 1@ 2@ 3@
  151. 0843: get_name_of_zone 1@ 2@ 3@ store_to s$93
  152. 0051: return
  153.  
  154. :Noname_657
  155. 0050: gosub @Noname_1016
  156. 00D6: if
  157. 0039: 7@ == 0
  158. 004D: goto_if_false @Noname_696
  159. 05A9: s$95 = 'CS'
  160.  
  161. :Noname_696
  162. 00D6: if
  163. 0039: 7@ == 1
  164. 004D: goto_if_false @Noname_728
  165. 05A9: s$95 = 'LA' // Los Santos
  166.  
  167. :Noname_728
  168. 00D6: if
  169. 0039: 7@ == 2
  170. 004D: goto_if_false @Noname_760
  171. 05A9: s$95 = 'SF' // San Fierro
  172.  
  173. :Noname_760
  174. 00D6: if
  175. 0039: 7@ == 3
  176. 004D: goto_if_false @Noname_792
  177. 05A9: s$95 = 'VE' // Las Venturas
  178.  
  179. :Noname_792
  180. 00D6: if
  181. 05AD: s$93 == 'SAN_AND' // San Andreas
  182. 004D: goto_if_false @Noname_831
  183. 05A9: s$95 = 'SAN_AND' // San Andreas
  184.  
  185. :Noname_831
  186. 00D6: if
  187. 05AD: s$93 == 'LA' // Los Santos
  188. 004D: goto_if_false @Noname_870
  189. 05A9: s$95 = 'LA' // Los Santos
  190.  
  191. :Noname_870
  192. 00D6: if
  193. 05AD: s$93 == 'SF' // San Fierro
  194. 004D: goto_if_false @Noname_909
  195. 05A9: s$95 = 'SF' // San Fierro
  196.  
  197. :Noname_909
  198. 00D6: if
  199. 05AD: s$93 == 'VE' // Las Venturas
  200. 004D: goto_if_false @Noname_948
  201. 05A9: s$95 = 'VE' // Las Venturas
  202.  
  203. :Noname_948
  204. 0050: gosub @Noname_1026
  205. 0051: return
  206.  
  207. :Noname_957
  208. 03E0: set_text_draw_before_fade 1
  209. 033F: set_text_scale 0.15 0.71
  210. 0340: set_text_colour 255 255 255 255
  211. 081C: set_text_edge 2 rgba 0 0 0 0
  212. 033E: display_text 562.0 64.0 gxt s$93
  213. 0051: return
  214.  
  215. :Noname_1016
  216. 0842: get_city_player_is_in $PLAYER_CHAR store_to 7@
  217. 0051: return
  218.  
  219. :Noname_1026
  220. 03E0: set_text_draw_before_fade 1
  221. 033F: set_text_scale 0.29 1.19
  222. 0340: set_text_colour 255 255 255 255
  223. 081C: set_text_edge 2 rgba 0 0 0 0
  224. 033E: display_text 562.0 87.0 gxt s$95
  225. 0051: return
  226.  
  227. :Noname_1085
  228. 0050: gosub @Noname_1108
  229. 0050: gosub @Noname_1118
  230. 0050: gosub @Noname_1026
  231. 0051: return
  232.  
  233. :Noname_1108
  234. 094B: get_name_of_entry_exit_char_used $PLAYER_ACTOR store_to v$99
  235. 0051: return
  236.  
  237. :Noname_1118
  238. 03E0: set_text_draw_before_fade 1
  239. 033F: set_text_scale 0.3 1.2
  240. 0342: set_text_center 1
  241. 081C: set_text_edge 2 rgba 0 0 0 255
  242. 033E: display_text 88.0 426.0 gxt v$99
  243. 0051: return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement