Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.94 KB | None | 0 0
  1. local TriggerBot = CreateClientConVar( "autoshoot_state", 0, true, false )
  2. local TriggerAim = CreateClientConVar("aimbot_state",0,true,false )
  3. local Glow = CreateClientConVar("Glow",0,true,false)
  4. local Aimbone = CreateClientConVar("Aimbone",0,true,false)
  5. local ShowNick = CreateClientConVar("Show_nick",0,true,false)
  6. local TapS = false
  7. local bones = {}
  8.  
  9.  
  10. bones[0] = "ValveBiped.Bip01_Head1"
  11. bones[1] = "ValveBiped.Bip01_Neck1"
  12. bones[2] = "ValveBiped.Bip01_Spine4"
  13. bones[3] = "ValveBiped.Bip01_Spine2"
  14. bones[4] = "ValveBiped.Bip01_Spine1"
  15. bones[6] ="ValveBiped.Bip01_Spine"
  16. bones[7] = "ValveBiped.Bip01_R_UpperArm"
  17. bones[8] ="ValveBiped.Bip01_R_Forearm"
  18. bones[9] = "ValveBiped.Bip01_R_Hand"
  19. bones[10] = "ValveBiped.Bip01_L_UpperArm"
  20. bones[11] = "ValveBiped.Bip01_L_Forearm"
  21. bones[12] = "ValveBiped.Bip01_L_Hand"
  22. bones[13] ="ValveBiped.Bip01_R_Thigh"
  23. bones[14] = "ValveBiped.Bip01_R_Calf"
  24. bones[15] = "ValveBiped.Bip01_R_Foot"
  25. bones[16] = "ValveBiped.Bip01_R_Toe0"
  26. bones[17] = "ValveBiped.Bip01_L_Thigh"
  27. bones[18] = "ValveBiped.Bip01_L_Calf"
  28. bones[19]= "ValveBiped.Bip01_L_Foot"
  29. bones[20] ="ValveBiped.Bip01_L_Toe0"
  30.  
  31.  
  32. local TriggerBotCon = "autoshoot_state"
  33. local TriggerAimCon = "aimbot_state"
  34. local GlowCon = "Glow"
  35. local ShowNickCon = "Show_nick"
  36. concommand.Add("addmenu", function()
  37.  
  38. local nibber = "DCheckBoxLabel"
  39.  
  40.  
  41. local DermaPanel = vgui.Create( "DFrame" )
  42. DermaPanel:SetPos( ScrW()/2-300/2,ScrH()/2-200/2 )
  43. DermaPanel:SetSize( 300, 200 )
  44. DermaPanel:SetTitle( "My pasted hack" )
  45. DermaPanel:SetVisible( true )
  46. DermaPanel:SetDraggable( true )
  47. DermaPanel:ShowCloseButton( true )
  48. DermaPanel:MakePopup()
  49. local NumSliderThingy = vgui.Create( "DNumSlider", DermaPanel )
  50. NumSliderThingy:SetPos( 10,125 )
  51. NumSliderThingy:SetSize( 150, 100 ) -- Keep the second number at 100
  52. NumSliderThingy:SetText( "Aimbone" )
  53. NumSliderThingy:SetMin( 0 ) -- Minimum number of the slider
  54. NumSliderThingy:SetMax( 20 ) -- Maximum number of the slider
  55. NumSliderThingy:SetDecimals( 0 ) -- Sets a decimal. Zero means it's a whole number
  56. NumSliderThingy:SetConVar( "Aimbone" ) -- Set the convar
  57. local CheckBoxThing = vgui.Create( nibber, DermaPanel )
  58. CheckBoxThing:SetPos( 10,50 )
  59. CheckBoxThing:SetText( "TriggerBot" )
  60. CheckBoxThing:SetConVar( "autoshoot_state" ) -- ConCommand must be a 1 or 0 value
  61. CheckBoxThing:SetValue(TriggerBot:GetBool())
  62. CheckBoxThing:SizeToContents()
  63.  
  64. local CheckBox2 = vgui.Create(nibber,DermaPanel)
  65. CheckBox2:SetPos(10,75)
  66. CheckBox2:SetText( "Aimbot" )
  67. CheckBox2:SetConVar( TriggerAimCon ) -- ConCommand must be a 1 or 0 value
  68. CheckBox2:SetValue(TriggerAim:GetBool())
  69. CheckBox2:SizeToContents()
  70.  
  71. local CheckBox3 = vgui.Create(nibber,DermaPanel)
  72. CheckBox3:SetPos(10,100)
  73. CheckBox3:SetText( "Glow" )
  74. CheckBox3:SetConVar(GlowCon) -- ConCommand must be a 1 or 0 value
  75. CheckBox3:SetValue(Glow:GetBool())
  76. CheckBox3:SizeToContents()
  77.  
  78. local CheckBox4 = vgui.Create(nibber,DermaPanel)
  79. CheckBox4:SetPos(10,125 )
  80. CheckBox4:SetText("ESP")
  81. CheckBox4:SetConVar(ShowNickCon) -- ConCommand must be a 1 or 0 value
  82. CheckBox4:SetValue(Glow:GetBool())
  83. CheckBox4:SizeToContents()
  84.  
  85. end )
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. hook.Add( "PreDrawHalos", "AddHalos", function()
  93. local copypasted_from_gmodwiki = {}
  94. if Glow:GetBool() then
  95.  
  96. for k, v in pairs( player.GetAll() ) do
  97. if v:Health() > 0 then
  98. table.insert(copypasted_from_gmodwiki, v )
  99. end
  100. end
  101. end
  102. halo.Add( copypasted_from_gmodwiki, Color( 255, 0 , 0 ), 0, 0, 10, true, true )
  103. end )
  104.  
  105.  
  106. hook.Add( "HUDPaint", "Wallhack", function()
  107.  
  108. if ShowNick:GetBool() then
  109. for k,v in pairs ( player.GetAll() ) do
  110. if v:Health() > 0 then
  111. local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
  112. local BoxPos = (v:GetPos()+Vector(0,0,50)):ToScreen()
  113. local Name = ""
  114. if v == LocalPlayer() then Name = "" else Name = v:Name() end
  115. draw.DrawText( Name, "ChatFont", Position.x, Position.y, Color( 0, 255, 0, 255 ), 1 )
  116.  
  117. end
  118. end
  119. end
  120.  
  121.  
  122. end )
  123. function aimbot() -- Starting the function
  124. if TriggerAim:GetBool() then
  125. local ply = LocalPlayer() -- Getting ourselves
  126. local trace = util.GetPlayerTrace( ply ) -- Player Trace part. 1
  127. local traceRes = util.TraceLine( trace ) -- Player Trace part. 2
  128. if traceRes.HitNonWorld then -- If the aimbot aims at something that isn't the map..
  129. local target = traceRes.Entity -- It's obviously an entity.
  130. if target:IsPlayer() then -- But it must be a player.
  131. local targethead = target:LookupBone(bones[Aimbone:GetInt()]) -- In this aimbot we only aim for the head.
  132. local targetheadpos,targetheadang = target:GetBonePosition(targethead) -- Get the position/angle of the head.
  133. ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle()) -- And finally, we snap our aim to the head of the target.
  134.  
  135. end
  136. end
  137. end
  138. end
  139.  
  140. hook.Add("Think","aimbot",aimbot) -- The hook will spam "aimbot" until it finds a target..
  141. local me = LocalPlayer();
  142. hook.Add("CreateMove", "", function(ucmd)
  143. if TriggerBot:GetBool() then
  144. local trace = me:GetEyeTrace();
  145. local hitbox, entity = trace.HitGroup, trace.Entity;
  146.  
  147. if (!entity:IsValid() || entity:IsDormant() || !entity:IsPlayer() || entity:Health() < 1) then return; end
  148.  
  149.  
  150. ucmd:SetButtons(bit.bor(ucmd:GetButtons(), IN_ATTACK));
  151. end
  152. end);
  153. Chams = CreateMaterial( "Mat", "VertexLitGeneric", { ["$basetexture"] = "models/debug/debugwhite", ["$model"] = 1, ["$ignorez"] = 1 } )
  154. hook.Add( "HUDPaint", "ESPBoxChams", function()
  155.  
  156. for k,v in pairs ( player.GetAll() ) do
  157.  
  158. if v ~=LocalPlayer() and v:Alive() and v:IsValid() and v:Health() >= 1 then
  159.  
  160. local ply = LocalPlayer()
  161. local origin = v:GetPos()
  162. local top = v:OBBMaxs()
  163. local bottom = v:OBBMins()
  164. local eye = v:EyeAngles()
  165.  
  166. cam.Start3D()
  167. render.DrawWireframeBox( origin, Angle( 0, eye.y, 0), bottom, top, Color( 255, 0, 0 ) )
  168. render.MaterialOverride( Chams );
  169. render.SuppressEngineLighting( true )
  170. render.SetColorModulation( 0, 0, 255 )
  171. v:DrawModel();
  172. if ply then
  173. render.SuppressEngineLighting( false )
  174. end
  175. if v:IsValid( v:GetActiveWeapon() ) then
  176. render.SetColorModulation( 255, 0, 0 )
  177. v:GetActiveWeapon():DrawModel()
  178. end
  179. cam.End3D()
  180.  
  181. end
  182. end
  183. end)
  184.  
  185. --norecoil
  186. local Angle = Angle;
  187. local pcall = pcall;
  188. local require = require;
  189. local print = print;
  190. local Vector = Vector;
  191. local math = math;
  192. local fa;
  193.  
  194. local e, err = pcall(function() require("dickwrap") end);
  195.  
  196. if(err) then print("nononono"); return; end
  197.  
  198. local em = {}
  199.  
  200. local cones = {};
  201. local nullvec = Vector() * -1;
  202.  
  203. function em.FireBullets(p, data)
  204. local spread = data.Spread * -1;
  205. local class = p:GetActiveWeapon():GetClass();
  206. if (spread != cones[class] && spread != nullvec) then
  207. cones[class] = spread;
  208. end
  209. return(ofb(p, data));
  210. end
  211.  
  212. local ofb = em.FireBullets;
  213.  
  214. local function PredictSpread(ucmd, ang)
  215. local w = LocalPlayer():GetActiveWeapon();
  216. if (!w || !w:IsValid() || !cones[w:GetClass()]) then return ang; end
  217. local ang = (dickwrap.Predict(ucmd, ang:Forward(), cones[w:GetClass()])):Angle();
  218. ang.y, ang.x = math.NormalizeAngle(ang.y), math.NormalizeAngle(ang.x);
  219. return(ang);
  220. end
  221.  
  222. hook.Add("CalcView", "abc", function(p, o, a, f)
  223. local view = {};
  224. view.angles = (fa && fa || a);
  225. view.fov = f;
  226. view.origin = o;
  227. return view;
  228. end);
  229.  
  230. hook.Add("CreateMove", "aaaaaa", function(ucmd)
  231. if(!fa) then fa = ucmd:GetViewAngles(); end
  232.  
  233. fa = fa + Angle(ucmd:GetMouseY() * .023, ucmd:GetMouseX() * -.023, 0);
  234. fa.p, fa.y, fa.x = math.Clamp(fa.p, -89, 89), math.NormalizeAngle(fa.y), math.NormalizeAngle(fa.x);
  235.  
  236. local ang = fa;
  237.  
  238. if(ucmd:KeyDown(IN_ATTACK)) then
  239. ang = PredictSpread(ucmd, ang);
  240. end
  241.  
  242. ucmd:SetViewAngles(ang);
  243. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement