Advertisement
Guest User

Treebot Private version

a guest
Mar 3rd, 2015
971
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.50 KB | None | 0 0
  1. --[[ Made By TreeLife - Steam - Anthony Bugg
  2. _________ _______ _______ _______ ______ _______ _________ _______ _______ _________ _______ _________ _______
  3. \__ __/( ____ )( ____ \( ____ \( ___ \ ( ___ )\__ __/ ( ____ )( ____ )\__ __/|\ /|( ___ )\__ __/( ____ \
  4. ) ( | ( )|| ( \/| ( \/| ( ) )| ( ) | ) ( | ( )|| ( )| ) ( | ) ( || ( ) | ) ( | ( \/
  5. | | | (____)|| (__ | (__ | (__/ / | | | | | | | (____)|| (____)| | | | | | || (___) | | | | (__
  6. | | | __)| __) | __) | __ ( | | | | | | | _____)| __) | | ( ( ) )| ___ | | | | __)
  7. | | | (\ ( | ( | ( | ( \ \ | | | | | | | ( | (\ ( | | \ \_/ / | ( ) | | | | (
  8. | | | ) \ \__| (____/\| (____/\| )___) )| (___) | | | | ) | ) \ \_____) (___ \ / | ) ( | | | | (____/\
  9. )_( |/ \__/(_______/(_______/|/ \___/ (_______) )_( |/ |/ \__/\_______/ \_/ |/ \| )_( (_______/
  10.  
  11.  
  12. Private Version of TreeBot - Do not leak this please, thank you. :)
  13. --]]
  14.  
  15. -- Local Hack
  16. local hook = hook
  17. local _G = table.Copy( _G )
  18. local player = _G.player
  19. local string = _G.string
  20. local hook = _G.hook
  21. local CreateClientConVar = _G.CreateClientConVar
  22. local LocalPlayer = _G.LocalPlayer
  23.  
  24. -- Local Hack
  25. local GCVN = GetConVarNumber;
  26. local CCCV = CreateClientConVar;
  27. local RCC = RunConsoleCommand;
  28. local HOOKADD = hook.Add;
  29. local TreeBot = LocalPlayer()
  30.  
  31. -- ConVar Hack
  32. CCCV("TreeBot_Aimbot", 1, true, false)
  33. CCCV("TreeBot_Wallhack", 1, true, false)
  34. CCCV("TreeBot_Crosshair", 1, true, false)
  35. CCCV("TreeBot_Bunnyhop", 1, true, false)
  36.  
  37. -- Aim Hack
  38. HOOKADD("Think", "TreeBot_Aim", function(cmd)
  39. local trace = util.GetPlayerTrace( TreeBot )
  40. local traceRes = util.TraceLine( trace )
  41. if GCVN("TreeBot_Aimbot") >= 1 then
  42. if traceRes.HitNonWorld then
  43. local target = traceRes.Entity
  44. if target:IsPlayer() then
  45. local targethead = target:LookupBone("ValveBiped.Bip01_Neck1")
  46. local targetheadpos,targetheadang = target:GetBonePosition(targethead)
  47. TreeBot:SetEyeAngles((targetheadpos - TreeBot:GetShootPos()):Angle())
  48. end
  49. end
  50. end
  51. end)
  52.  
  53. -- Wall Hack
  54. HOOKADD( "HUDPaint", "TreeBot_Wallhack", function()
  55.  
  56. for k,v in pairs (player.GetAll()) do
  57. if GCVN("TreeBot_Wallhack") >= 1 then
  58. if v ~= TreeBot then
  59. if TreeBot:Alive() then
  60. local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
  61. draw.DrawText( v:Name(), "ChatFont", Position.x, Position.y, Color( 10, 255, 0, 255 ), 1 )
  62. else
  63.  
  64. end
  65. end
  66. end
  67. end
  68.  
  69. if GCVN("TreeBot_Wallhack") >= 1 then
  70. for k,v in pairs ( player.GetAll() ) do
  71.  
  72. local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
  73. local Name = ""
  74.  
  75. if v == TreeBot then Name = "" else Name = v:Name() end
  76.  
  77. end
  78. end
  79.  
  80. if GCVN("TreeBot_Crosshair") >= 1 then
  81. surface.SetDrawColor(0, 255, 0, 255)
  82. surface.DrawLine(ScrW() / 2 - 10, ScrH() / 2, ScrW() / 2 + 11 , ScrH() / 2)
  83. surface.DrawLine(ScrW() / 2 - 0, ScrH() / 2 - 10, ScrW() / 2 - 0 , ScrH() / 2 + 11)
  84. end
  85.  
  86. local function coordinates( ent )
  87. local min, max = ent:OBBMins(), ent:OBBMaxs()
  88. local corners = {
  89. Vector( min.x, min.y, min.z ),
  90. Vector( min.x, min.y, max.z ),
  91. Vector( min.x, max.y, min.z ),
  92. Vector( min.x, max.y, max.z ),
  93. Vector( max.x, min.y, min.z ),
  94. Vector( max.x, min.y, max.z ),
  95. Vector( max.x, max.y, min.z ),
  96. Vector( max.x, max.y, max.z )
  97. }
  98.  
  99. local minX, minY, maxX, maxY = ScrW() * 2, ScrH() * 2, 0, 0
  100. for _, corner in pairs( corners ) do
  101. local onScreen = ent:LocalToWorld( corner ):ToScreen()
  102. minX, minY = math.min( minX, onScreen.x ), math.min( minY, onScreen.y )
  103. maxX, maxY = math.max( maxX, onScreen.x ), math.max( maxY, onScreen.y )
  104. end
  105.  
  106. return minX, minY, maxX, maxY
  107. end
  108.  
  109. if GCVN("TreeBot_Wallhack") >= 1 then
  110. for k,v in pairs(player.GetAll()) do
  111. local x1,y1,x2,y2 = coordinates(v)
  112. surface.SetDrawColor(color_white)
  113.  
  114.  
  115. surface.DrawLine( x1, y1, math.min( x1 + 5, x2 ), y1 )
  116. surface.DrawLine( x1, y1, x1, math.min( y1 + 5, y2 ) )
  117.  
  118.  
  119. surface.DrawLine( x2, y1, math.max( x2 - 5, x1 ), y1 )
  120. surface.DrawLine( x2, y1, x2, math.min( y1 + 5, y2 ) )
  121.  
  122.  
  123. surface.DrawLine( x1, y2, math.min( x1 + 5, x2 ), y2 )
  124. surface.DrawLine( x1, y2, x1, math.max( y2 - 5, y1 ) )
  125.  
  126.  
  127. surface.DrawLine( x2, y2, math.max( x2 - 5, x1 ), y2 )
  128. surface.DrawLine( x2, y2, x2, math.max( y2 - 5, y1 ) )
  129. end
  130. end
  131.  
  132. if GCVN("TreeBot_Aimbot") >= 1 then
  133. draw.DrawText("Aimbot Enabled", "Default", 10, 0, Color(0, 255, 0, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
  134. else
  135. draw.DrawText("Aimbot Disabled", "Default", 10, 0, Color(255, 0, 0, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
  136. end
  137.  
  138. if GCVN("TreeBot_Wallhack") >= 1 then
  139. draw.DrawText("Wallhack Enabled", "Default", 10, 15, Color(0, 255, 0, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
  140. else
  141. draw.DrawText("Wallhack Disabled", "Default", 10, 15, Color(255, 0, 0, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
  142. end
  143.  
  144. if GCVN("TreeBot_Bunnyhop") >= 1 then
  145. draw.DrawText("Bunnyhop Enabled", "Default", 10, 30, Color(0, 255, 0, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
  146. else
  147. draw.DrawText("Bunnyhop Disabled", "Default", 10, 30, Color(255, 0, 0, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
  148. end
  149.  
  150. if GCVN("TreeBot_Crosshair") >= 1 then
  151. draw.DrawText("Crosshair Enabled", "Default", 10, 45, Color(0, 255, 0, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
  152. else
  153. draw.DrawText("Crosshair Disabled", "Default", 10, 45, Color(255, 0, 0, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
  154. end
  155.  
  156. end)
  157.  
  158. -- NoRecoil Hack
  159. local function NoRecoil()
  160. if TreeBot:GetActiveWeapon() and TreeBot:GetActiveWeapon().Primary then
  161. TreeBot:GetActiveWeapon().Primary.Recoil = 0
  162. AHack.Ply:GetActiveWeapon().Recoil = 0
  163. end
  164. end
  165.  
  166. -- Jump Hack
  167. HOOKADD("CreateMove", "TreeBot_Bunny", function(cmd)
  168. if GCVN("TreeBot_Bunnyhop") >= 1 and cmd:KeyDown(IN_JUMP) then
  169. cmd:SetButtons(cmd:GetButtons() - IN_JUMP)
  170. if GCVN("TreeBot_Bunnyhop") >= 1 and TreeBot:OnGround() then
  171. cmd:SetButtons(cmd:GetButtons() + IN_JUMP)
  172. end
  173. end
  174. end)
  175.  
  176. -- Noise Hack
  177. RCC("play", "npc/stalker/go_alert2a.wav")
  178. TreeBot:ChatPrint("Made by TreeLife - Steam - Anthony Bugg")
  179. TreeBot:ChatPrint("Hack Loaded Sucessfully!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement