Advertisement
Dimitri_UA

Untitled

May 7th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. :drawLine // drawLineOnRadar R_ - radar constant values
  2. // Verts 0@
  3. // LineStart 1@
  4. // LineEnd 2@
  5. // Color.Red 3@
  6. // Color.Green 4@
  7. // Color.Blue 5@
  8. // 0AB1: @drawLine 6 verts 1@ linestart 20@ lineEnd 29@ RGB 74 148 159
  9. 9@ = 0
  10. 21@ = 0
  11. 22@ = 0
  12. 30@ = 1
  13. 0A8D: 10@ 0xC17044 4 0
  14. 0A8D: 11@ 0xC17048 4 0
  15. 0093: 10@ = integer 10@ to_float
  16. 0093: 11@ = integer 11@ to_float
  17. 0087: 17@ = 1@ // start
  18. 0087: 31@ = 1@ // start
  19. 0087: 29@ = 2@ // end
  20. while true
  21. if and
  22. 31@ > 29@
  23. 17@ > 29@
  24. 21@ == 1
  25. 22@ == 1
  26. then
  27. break
  28. else
  29. if
  30. 9@ > 0
  31. then
  32. //0656: get_angle 31@ absolute_degrees_to 21@
  33. if
  34. 17@ > 29@
  35. then
  36. 17@ = 29@
  37. 02F7: 13@ = cosine 17@
  38. 02F6: 14@ = sine 17@
  39. 13@ *= 95.0 // radius
  40. 14@ *= 95.0 // radius
  41. 13@ += R_X // x
  42. 14@ += R_Y // y
  43. 13@ /= 1024.0
  44. 13@ *= 11@
  45. 14@ /= 1024.0
  46. 14@ *= 11@
  47. 0D41: set_vertices 0@ vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 3@ 4@ 5@ 255 uv 0.0 0.0 false
  48. 17@ += 6.0 // distance between vertices
  49. inc(30@)
  50. 9@ = 0
  51. 17@ = 500.0
  52. 21@ = 1
  53. else
  54. 02F7: 13@ = cosine 17@
  55. 02F6: 14@ = sine 17@
  56. 13@ *= 95.0 // radius
  57. 14@ *= 95.0 // radius
  58. 13@ += R_X // x
  59. 14@ += R_Y // y
  60. 13@ /= 1024.0
  61. 13@ *= 11@
  62. 14@ /= 1024.0
  63. 14@ *= 11@
  64. 0D41: set_vertices 0@ vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 3@ 4@ 5@ 255 uv 0.0 0.0 false
  65. 17@ += 6.0 // distance between vertices
  66. inc(30@)
  67. 9@ = 0
  68. 22@ = 1
  69. end
  70. else
  71. //0656: get_angle 31@ absolute_degrees_to 21@
  72. if
  73. 31@ > 29@
  74. then
  75. 31@ = 29@
  76. 02F7: 13@ = cosine 31@
  77. 02F6: 14@ = sine 31@
  78. 13@ *= 85.0 // radius
  79. 14@ *= 85.0 // radius
  80. 13@ += R_X // x
  81. 14@ += R_Y // y
  82. 13@ /= 1024.0
  83. 13@ *= 11@
  84. 14@ /= 1024.0
  85. 14@ *= 11@
  86. 0D41: set_vertices 0@ vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 3@ 4@ 5@ 255 uv 0.0 0.0 false
  87. 31@ += 6.0 // distance between vertices
  88. inc(30@)
  89. inc(9@)
  90. 31@ = 500.0
  91. else
  92. 02F7: 13@ = cosine 31@
  93. 02F6: 14@ = sine 31@
  94. 13@ *= 85.0 // radius
  95. 14@ *= 85.0 // radius
  96. 13@ += R_X // x
  97. 14@ += R_Y // y
  98. 13@ /= 1024.0
  99. 13@ *= 11@
  100. 14@ /= 1024.0
  101. 14@ *= 11@
  102. 0D41: set_vertices 0@ vertex 30@ xyz 13@ 14@ 0.0 rhw 3.33 RGBA 3@ 4@ 5@ 255 uv 0.0 0.0 false
  103. 31@ += 6.0 // distance between vertices
  104. inc(30@)
  105. inc(9@)
  106. end
  107. end
  108. end
  109. end
  110. dec(30@)
  111. 0D40: draw_2d_shape_type 4 texture 0 numVerts 30@ pVerts 0@ vertexAlpha 0 srcBlend 5 dstBlend 6 priority 1
  112. 0AB2: ret 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement