Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1. function Limb_Tracker_Target()
  2. Limb_Tracker_Target_RLeg()
  3. Limb_Tracker_Target_LLeg()
  4. Limb_Tracker_Target_Head()
  5. Limb_Tracker_Target_LArm()
  6. Limb_Tracker_Target_RArm()
  7. Limb_Tracker_Target_Torso()
  8. end
  9.  
  10. function Limb_Tracker_Target_Head()
  11.  
  12. createMiniConsole("thead",WindowWidth-100,0,100,500)
  13. setBackgroundColor("thead",200,200,200,255)
  14. setMiniConsoleFontSize("thead", 8)
  15. setWindowWrap("thead", 5)
  16. setTextFormat("thead",0,35,255,50,50,50,0,0,0)
  17. moveWindow("thead", 1156,WindowHeight-68)
  18. handleWindowResizeEvent()
  19. resizeWindow("thead",20,12)
  20.  
  21. if tlimbs.aiming == "head" then
  22. setBackgroundColor("thead",0,255,0,255)
  23. else
  24. end
  25.  
  26. if tlimbs.head <= (hitsneeded -1) then
  27. clearWindow("thead")
  28. cecho("thead", "<red>" .. tlimbs.head)
  29. elseif tlimbs.head >= hitsneeded then
  30. clearWindow("thead")
  31. setBackgroundColor("thead",255,0,0,0)
  32. cecho("thead", "<red>" .. tlimbs.head)
  33. end
  34.  
  35. end
  36.  
  37.  
  38. function Limb_Tracker_Target_RArm()
  39.  
  40. createMiniConsole("trarm",WindowWidth-100,0,100,500)
  41. setBackgroundColor("trarm",200,200,200,255)
  42. setMiniConsoleFontSize("trarm", 8)
  43. setWindowWrap("trarm", 2)
  44. setTextFormat("trarm",0,35,255,50,50,50,0,0,0)
  45. moveWindow("trarm", 1179,WindowHeight-55)
  46. handleWindowResizeEvent()
  47. resizeWindow("trarm",11,30)
  48. clearWindow("trarm")
  49.  
  50. if tlimbs.aiming == "right arm" then
  51. setBackgroundColor("trarm",0,255,0,255)
  52. else
  53. end
  54.  
  55. if tlimbs.rarm <= (hitsneeded -1) then
  56. clearWindow("trarm")
  57. cecho("trarm", "<red>" .. tlimbs.rarm)
  58. elseif tlimbs.rarm >= hitsneeded then
  59. clearWindow("trarm")
  60. cecho("trarm", "\n<red>" .. tlimbs.rarm)
  61. setBackgroundColor("trarm",255,0,0,0)
  62. end
  63.  
  64. end
  65.  
  66.  
  67. function Limb_Tracker_Target_LArm()
  68.  
  69. createMiniConsole("tlarm",WindowWidth-100,0,100,500)
  70. setBackgroundColor("tlarm",200,200,200,255)
  71. setMiniConsoleFontSize("tlarm", 8)
  72. setWindowWrap("tlarm", 2)
  73. setTextFormat("tlarm",0,35,255,50,50,50,0,0,0)
  74. moveWindow("tlarm", 1142,WindowHeight-55)
  75. handleWindowResizeEvent()
  76. resizeWindow("tlarm",11,30)
  77. clearWindow("tlarm")
  78.  
  79. if tlimbs.larm <= (hitsneeded -1) then
  80. clearWindow("tlarm")
  81. cecho("tlarm", "<red>" .. tlimbs.larm)
  82. elseif tlimbs.larm >= hitsneeded then
  83. clearWindow("tlarm")
  84. cecho("tlarm", "\n<red>" .. tlimbs.larm)
  85. setBackgroundColor("tlarm",255,0,0,0)
  86. end
  87.  
  88. if tlimbs.aiming == "left arm" then
  89. setBackgroundColor("tlarm",0,255,0,255)
  90. else
  91. end
  92.  
  93. end
  94.  
  95.  
  96. function Limb_Tracker_Target_RLeg()
  97.  
  98. createMiniConsole("trleg",WindowWidth-100,0,100,500)
  99. setBackgroundColor("trleg",200,200,200,255)
  100. setMiniConsoleFontSize("trleg", 8)
  101. setWindowWrap("trleg", 2)
  102. setTextFormat("trleg",0,35,255,50,50,50,0,0,0)
  103. moveWindow("trleg", 1166,WindowHeight-30)
  104. handleWindowResizeEvent()
  105. resizeWindow("trleg",11,30)
  106. clearWindow("trleg")
  107.  
  108. if tlimbs.rleg <= (hitsneeded -1) then
  109. clearWindow("trleg")
  110. cecho("trleg", "<red>" .. tlimbs.rleg)
  111. elseif tlimbs.rleg >= hitsneeded then
  112. clearWindow("trleg")
  113. cecho("trleg", "\n<red>" .. tlimbs.rleg)
  114. setBackgroundColor("trleg",255,0,0,0)
  115. end
  116.  
  117. if tlimbs.aiming == "right leg" then
  118. setBackgroundColor("trleg",0,255,0,255)
  119. else
  120. end
  121.  
  122. end
  123.  
  124.  
  125. function Limb_Tracker_Target_LLeg()
  126.  
  127. createMiniConsole("tlleg",WindowWidth-100,0,100,500)
  128. setBackgroundColor("tlleg",200,200,200,255)
  129. setMiniConsoleFontSize("tlleg", 8)
  130. setWindowWrap("tlleg", 2)
  131. setTextFormat("tlleg",0,35,255,50,50,50,0,0,0)
  132. moveWindow("tlleg", 1154,WindowHeight-30)
  133. handleWindowResizeEvent()
  134. resizeWindow("tlleg",11,30)
  135.  
  136.  
  137.  
  138. if tlimbs.lleg <= (hitsneeded -1) then
  139. clearWindow("tlleg")
  140. cecho("tlleg", "<red>" .. tlimbs.lleg)
  141. elseif tlimbs.lleg >= hitsneeded then
  142. clearWindow("tlleg")
  143. cecho("tlleg", "\n<red>" .. tlimbs.lleg)
  144. setBackgroundColor("tlleg",255,0,0,255)
  145. end
  146.  
  147. if tlimbs.aiming == "left leg" then
  148. setBackgroundColor("tlleg",0,255,0,255)
  149. else
  150. end
  151.  
  152. end
  153.  
  154.  
  155. function Limb_Tracker_Target_Torso()
  156.  
  157. createMiniConsole("ttorso",WindowWidth-100,0,100,500)
  158. setBackgroundColor("ttorso",200,200,200,255)
  159. setMiniConsoleFontSize("ttorso", 8)
  160. setWindowWrap("ttorso", 20)
  161. setTextFormat("ttorso",0,35,255,50,50,50,0,0,0)
  162. moveWindow("ttorso", 1154,WindowHeight-55)
  163. handleWindowResizeEvent()
  164. resizeWindow("ttorso",23,23)
  165. clearWindow("ttorso")
  166.  
  167. if tlimbs.torso <= (hitsneeded -1) then
  168. clearWindow("ttorso")
  169. cecho("ttorso", "<red>" .. tlimbs.torso)
  170. elseif tlimbs.torso >= hitsneeded then
  171. clearWindow("ttorso")
  172. cecho("ttorso", "<red>" .. tlimbs.torso)
  173. setBackgroundColor("ttorso",255,0,0,0)
  174. end
  175. if tlimbs.aiming == "torso" then
  176. setBackgroundColor("ttorso",0,255,0,255)
  177. else
  178. end
  179. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement