Advertisement
ThirteenAG

Untitled

Jun 23rd, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3. {
  4. by DK22Pac
  5. 24/04/2011
  6. Vol-GTA mods
  7. }
  8.  
  9. model.Load(1313)
  10. 038B:
  11.  
  12. while true
  13. wait 0
  14. if and
  15. 86B9: not cutscene_data_loaded
  16. player.Defined(0)
  17. then
  18. for 20@ = 22 to 38
  19. if or
  20. 20@ == 34
  21. 20@ == 35
  22. 20@ == 36
  23. 20@ == 37
  24. then
  25. continue
  26. end
  27. if
  28. 02D8: actor $player_actor current_weapon == 20@
  29. then
  30. if
  31. 02D6: actor $player_actor fires_weapon 20@ in_rectangle_cornerA -3000.0 -3000.0 cornerB 3000.0 3000.0
  32. then
  33. 21@ = true
  34. break
  35. else
  36. 21@ = false
  37. end
  38. else
  39. 21@ = false
  40. end
  41.  
  42. end
  43. if
  44. 21@ == true
  45. then
  46. 21@ = false
  47. 00A0: store_actor $player_actor position_to 10@ 11@ 12@
  48. 0AB1: call_scm_func @__VarToOffset 1 varnumber 25 result 23@ //0AC7: 23@ = var 25@ offset
  49. 0AB1: call_scm_func @__VarToOffset 1 varnumber 7 result 4@ //0AC7: 4@ = var 7@ offset
  50. 0AB1: call_scm_func @__VarToOffset 1 varnumber 1 result 14@ //0AC7: 14@ = var 1@ offset
  51. 0AA6: call_method 0x514970 struct 0xB6F028 num_params 6 pop 0 4@ 23@ 12@ 11@ 10@ 50.0
  52. 0AA6: call_method 0x514970 struct 0xB6F028 num_params 6 pop 0 14@ 23@ 12@ 11@ 10@ 1.0
  53. if and
  54. 86BD: not no_obstacles_between 1@ 2@ 3@ and 7@ 8@ 9@ solid 1 car 1 actor 1 object 1 particle 0
  55. 06BD: no_obstacles_between 1@ 2@ 3@ and 7@ 8@ 9@ solid 0 car 1 actor 1 object 0 particle 0
  56. then
  57. for 0@ = 1 to 15
  58. 0087: 4@ = 1@
  59. 005B: 4@ += 7@
  60. 4@ /= 2.0
  61. 0087: 5@ = 2@
  62. 005B: 5@ += 8@
  63. 5@ /= 2.0
  64. 0087: 6@ = 3@
  65. 005B: 6@ += 9@
  66. 6@ /= 2.0
  67. if
  68. 86BD: not no_obstacles_between 1@ 2@ 3@ and 4@ 5@ 6@ solid 1 car 1 actor 1 object 1 particle 0
  69. then
  70. 0087: 7@ = 4@
  71. 0087: 8@ = 5@
  72. 0087: 9@ = 6@
  73. else
  74. 0087: 1@ = 4@
  75. 0087: 2@ = 5@
  76. 0087: 3@ = 6@
  77. end
  78. end
  79. if
  80. 86BD: not no_obstacles_between 1@ 2@ 3@ and 4@ 5@ 6@ solid 0 car 1 actor 1 object 0 particle 0
  81. then
  82. goto @end
  83. else
  84. 0087: 4@ = 1@
  85. 005B: 4@ += 7@
  86. 4@ /= 2.0
  87. 0087: 5@ = 2@
  88. 005B: 5@ += 8@
  89. 5@ /= 2.0
  90. 0087: 6@ = 3@
  91. 005B: 6@ += 9@
  92. 6@ /= 2.0
  93. object.Create(30@, 1313, 0.0, 5.0, -500.0)
  94. object.CollisionDetection(30@) = false
  95. 08D2: object 30@ scale_model 1.2
  96. object.PutAt(30@, 4@, 5@, 6@)
  97. for 0@ = 0.0 to 190.0 step 4.0
  98. 0087: 15@ = 0@
  99. 0087: 17@ = 0@
  100. inc(17@, 4.0)
  101. 02F7: 13@ = cosine 15@
  102. 02F6: 14@ = sine 15@
  103. 02F7: 18@ = cosine 17@
  104. 02F6: 19@ = sine 17@
  105. mul(13@, 0.04)
  106. mul(14@, 0.04)
  107. mul(18@, 0.04)
  108. mul(19@, 0.04)
  109. 0400: store_coords_to 20@ 21@ 22@ from_object 30@ with_offset 13@ 14@ 0.0
  110. 0400: store_coords_to 23@ 24@ 25@ from_object 30@ with_offset 18@ 19@ 0.0
  111. if
  112. 86BD: not no_obstacles_between 20@ 21@ 22@ and 23@ 24@ 25@ solid 1 car 0 actor 0 object 1 particle 0
  113. then
  114. break
  115. end
  116. end
  117. 0453: set_object 30@ XY_rotation 0.0 0.0 angle 15@
  118. for 0@ = 0.0 to 190.0 step 4.0
  119. 0087: 26@ = 0@
  120. 0087: 17@ = 0@
  121. inc(17@, 4.0)
  122. 02F7: 13@ = cosine 26@
  123. 02F6: 14@ = sine 26@
  124. 02F7: 18@ = cosine 17@
  125. 02F6: 19@ = sine 17@
  126. mul(13@, 0.04)
  127. mul(14@, 0.04)
  128. mul(18@, 0.04)
  129. mul(19@, 0.04)
  130. 0400: store_coords_to 20@ 21@ 22@ from_object 30@ with_offset 0.0 13@ 14@
  131. 0400: store_coords_to 23@ 24@ 25@ from_object 30@ with_offset 0.0 18@ 19@
  132. if
  133. 86BD: not no_obstacles_between 20@ 21@ 22@ and 23@ 24@ 25@ solid 1 car 0 actor 0 object 1 particle 0
  134. then
  135. break
  136. end
  137. end
  138. inc(26@, 90.0)
  139. 0453: set_object 30@ XY_rotation 26@ 29@ angle 15@
  140. object.RemoveReferences(30@)
  141. goto @end
  142. end
  143. end
  144. end
  145. :end
  146. end
  147. end
  148.  
  149. :__VarToOffset
  150. 0A9F: 23@ = current_thread_pointer
  151. 23@ += 0x3C
  152. 0@ *= 4
  153. 005A: 23@ += 0@ // address of the local variable
  154. 0AB2: ret 1 23@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement