Code:
require("dickwrap")
require("bsendpacket")
bSendPacket = true
local _R = debug.getregistry()
local HackerMansHack = {}
HackerMansHack.cones = {}
HackerMansHack.buttons = {}
HackerMansHack.vars = {
aimbot = {
enabled = false,
team = false,
nospread = true,
silent = true,
autoshoot = true,
vischeck = true,
},
visuals = {
enabled = true,
name = true,
box = true,
health = true,
},
hvh = {
aa = false,
fakelag = false,
fakebhop = false,
}
}
HackerMansHack.firebullets = _R.Entity.FireBullets
HackerMansHack.me = LocalPlayer()
HackerMansHack.fakeangle = Angle()
HackerMansHack.target = nil
HackerMansHack.attacking = false
HackerMansHack.insert = false
HackerMansHack.insert2 = false
HackerMansHack.menuopen = false
HackerMansHack.canesp = true
local temprender = table.Copy(render)
function render.Capture(data)
HackerMansHack.canesp = false
print("[HackerMansHack] render.Capture call! Data: ")
for k,v in pairs(data) do
print(tostring(k) .. " = " .. tostring(v))
end
HackerMansHack.canesp = false
timer.Create(3, function()
HackerMansHack.canesp = true
end )
return temprender.Capture(data)
end
function render.CapturePixels()
HackerMansHack.canesp = false
print("[HackerMansHack] render.CapturePixels call!")
HackerMansHack.canesp = false
timer.Create(3, function()
HackerMansHack.canesp = true
end )
return temprender.CapturePixels()
end
function _R.Entity.FireBullets(ent, bul)
if bul.Spread then
HackerMansHack.cones[HackerMansHack.me:GetActiveWeapon():GetClass()] = bul.Spread * -1
end
return HackerMansHack.firebullets(ent, bul)
end
function HackerMansHack.getspread(cmd, ang)
local wep = HackerMansHack.me:GetActiveWeapon()
local ang2
if !IsValid(wep) then
return ang
end
if HackerMansHack.cones[wep:GetClass()] then
local cone = HackerMansHack.cones[wep:GetClass()]
if type(cone) == "number" then
ang2 = Vector(-cone, -cone, -cone)
elseif type(cone) == "Vector" then
ang2 = cone
end
return (dickwrap.Predict(cmd, ang:Forward(), ang2)):Angle()
end
return ang
end
function HackerMansHack.antiantiaim(ent)
local pitch = ent:EyeAngles().p
local yaw = ent:EyeAngles().y
if pitch > 89 then
pitch = -89
elseif pitch < -89 then
pitch = 89
end
if yaw > 180 then
yaw = -180
elseif yaw < -180 then
yaw = 180
end
ent:SetPoseParameter("aim_pitch", pitch)
ent:SetPoseParameter("aim_yaw", yaw)
end
function HackerMansHack.visible(pos, targ)
local tdata = {
["start"] = HackerMansHack.me:GetShootPos(),
["endpos"] = pos,
["filter"] = HackerMansHack.me,
["mask"] = MASK_SHOT
}
HackerMansHack.antiantiaim(targ)
local trace = util.TraceLine(tdata)
return trace.Fraction == 1 or trace.Entity == targ
end
function HackerMansHack.getpos(ent)
local aimpos
if ent:LookupAttachment("forward") != 0 and HackerMansHack.visible(ent:GetAttachment(ent:LookupAtta chment("forward")).Pos, ent) then
aimpos = ent:GetAttachment(ent:LookupAttachment("forward")).Pos
aimpos = aimpos + (ent:GetVelocity() * engine.TickInterval())
aimpos = aimpos - (HackerMansHack.me:GetVelocity() * engine.TickInterval())
return aimpos
end
aimpos = ent:GetPos() + ent:OBBCenter()
aimpos = aimpos + (ent:GetVelocity() * engine.TickInterval())
aimpos = aimpos - (HackerMansHack.me:GetVelocity() * engine.TickInterval())
return aimpos
end
function HackerMansHack.isvalid(ent)
if !ent then return false end
if ent:IsPlayer() then
if ent == HackerMansHack.me then return false end
if !ent:Alive() then return false end
if 0 >= ent:Health() then return false end
if ent:InVehicle() then return false end
if ent:Team() == TEAM_SPECTATOR then return false end
if HackerMansHack.vars["aimbot"]["team"] then
if ent:Team() == HackerMansHack.me:Team() then
return false
end
end
if HackerMansHack.vars["aimbot"]["vischeck"] then
if !HackerMansHack.visible(HackerMansHack.getpos(ent), ent) then
return false
end
end
end
return true
end
function HackerMansHack.findtarg()
HackerMansHack.target = nil
local players = player.GetAll()
local maxplayers = #players
for i = 0, maxplayers do
local ent = players[i]
if HackerMansHack.isvalid(ent) then HackerMansHack.target = ent else continue end
end
end
function HackerMansHack.attack(cmd)
if HackerMansHack.attacking then
cmd:RemoveKey(IN_ATTACK)
HackerMansHack.attacking = false
else
cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK))
HackerMansHack.attacking = true
end
end
function HackerMansHack.silent(cmd)
if HackerMansHack.vars["aimbot"]["silent"] then
HackerMansHack.fakeangle = HackerMansHack.fakeangle + Angle(cmd:GetMouseY() * 0.023, cmd:GetMouseX() * -0.023, 0)
HackerMansHack.fakeangle.p = math.Clamp(HackerMansHack.fakeangle.p, -89, 89)
HackerMansHack.fakeangle.y = math.NormalizeAngle(HackerMansHack.fakeangle.y)
else
HackerMansHack.fakeangle = cmd:GetViewAngles()
end
end
// Friendly Movement Fix (C)
function HackerMansHack.fixmove(cmd, aa)
local fix = Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0)
fix = (fix:Angle() + cmd:GetViewAngles() -Angle(0, HackerMansHack.fakeangle.y, 0)):Forward() * fix:Length()
if aa then
cmd:SetForwardMove(fix.x)
cmd:SetSideMove(fix.y * -1)
return
end
cmd:SetForwardMove(fix.x)
cmd:SetSideMove(fix.y)
end
HackerMansHack.isaimbot = false
function HackerMansHack.aimbot(cmd)
HackerMansHack.findtarg()
HackerMansHack.silent(cmd)
if HackerMansHack.vars["aimbot"]["enabled"] and HackerMansHack.target != nil and cmd:CommandNumber() != 0 and input.IsKeyDown(KEY_F) then
HackerMansHack.isaimbot = true
bSendPacket = true
local pos = (HackerMansHack.getpos(HackerMansHack.target) - HackerMansHack.me:GetShootPos()):Angle()
pos.p = math.NormalizeAngle(pos.p)
pos.y = math.NormalizeAngle(pos.y)
pos.r = 0
if HackerMansHack.vars["aimbot"]["nospread"] then
pos = HackerMansHack.getspread(cmd, pos)
pos.p = math.NormalizeAngle(pos.p)
pos.y = math.NormalizeAngle(pos.y)
pos.r = 0
end
cmd:SetViewAngles(pos)
if HackerMansHack.vars["aimbot"]["autoshoot"] then
HackerMansHack.attack(cmd)
end
if HackerMansHack.vars["aimbot"]["silent"] then
HackerMansHack.fixmove(cmd)
end
return
end
HackerMansHack.isaimbot = false
if HackerMansHack.vars["aimbot"]["silent"] then
cmd:SetViewAngles(HackerMansHack.fakeangle)
end
end
surface.CreateFont("HackerMansHackFont", {
font = "DebugFixed",
size = 12,
})
// Thanks to Im Friendly for this esp! (I couldn't make one if my life depended on it ;-;)
function HackerMansHack.visuals()
for k,v in next, player.GetAll() do
if v == HackerMansHack.me or !v:Alive() or !v:IsValid() or !HackerMansHack.vars["visuals"]["enabled"] or !HackerMansHack.canesp then continue end
local min, max = v:OBBMins(), v:OBBMaxs()
local Top = (v:GetPos() + Vector(0, 0, max.z)):ToScreen()
local Bottom = v:GetPos():ToScreen()
local Middle = Bottom.y - Top.y
local Width = Middle / 4
if HackerMansHack.vars["visuals"]["name"] then
draw.SimpleText(v:Name(), "HackerMansHackFont", Top.x, Top.y - 10, color_white, 1, 1)
end
if HackerMansHack.vars["visuals"]["box"] then
surface.SetDrawColor(team.GetColor(v:Team()))
surface.DrawOutlinedRect(Top.x - Width, Top.y, Width * 2, Middle)
surface.SetDrawColor(0, 0, 0)
surface.DrawOutlinedRect(Top.x - Width - 1, Top.y - 1, Width * 2 + 2, Middle + 2)
surface.DrawOutlinedRect(Top.x - Width + 1, Top.y + 1, Width * 2 - 2, Middle - 2)
end
if HackerMansHack.vars["visuals"]["health"] then
draw.SimpleText(v:Health() .. " HP", "HackerMansHackFont", Top.x, Bottom.y + 10, Color(0, 255, 0), 1, 1)
end
end
end
function HackerMansHack.bhop(cmd)
if HackerMansHack.vars["hvh"]["fakebhop"] then
if HackerMansHack.me:IsOnGround() and cmd:KeyDown(IN_JUMP) then
cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_JUMP))
if !HackerMansHack.isaimbot and !input.IsMouseDown(MOUSE_LEFT) and cmd:CommandNumber() != 0 then
bSendPacket = false
end
elseif !HackerMansHack.me:IsOnGround() and cmd:KeyDown(IN_JUMP) then
cmd:RemoveKey(IN_JUMP)
if !HackerMansHack.isaimbot and !input.IsMouseDown(MOUSE_LEFT) and cmd:CommandNumber() != 0 then
bSendPacket = true
end
else
bSendPacket = true
end
else
if HackerMansHack.me:IsOnGround() and cmd:KeyDown(IN_JUMP) then
cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_JUMP))
else
cmd:RemoveKey(IN_JUMP)
end
end
end
HackerMansHack.aachange = false
HackerMansHack.queue = 0
function HackerMansHack.hvh(cmd)
if HackerMansHack.vars["hvh"]["fakelag"] and !HackerMansHack.vars["hvh"]["fakebhop"] and !HackerMansHack.isaimbot and cmd:CommandNumber() != 0 then
HackerMansHack.queue = HackerMansHack.queue + 1
if HackerMansHack.queue >= 0 then
if HackerMansHack.queue < 15 then
bSendPacket = false
else
bSendPacket = true
end
else
bSendPacket = true
end
if HackerMansHack.queue >= 15 then
HackerMansHack.queue = 0
end
end
if HackerMansHack.vars["hvh"]["aa"] and !input.IsMouseDown(MOUSE_LEFT) and !HackerMansHack.isaimbot and cmd:CommandNumber() != 0 then
if HackerMansHack.vars["hvh"]["fakelag"] or HackerMansHack.vars["hvh"]["fakebhop"] then
if bSendPacket then
cmd:SetViewAngles(Angle(-192, HackerMansHack.fakeangle.y + 90, 0))
else
cmd:SetViewAngles(Angle(-192, HackerMansHack.fakeangle.y - 90, 0))
end
HackerMansHack.fixmove(cmd, true)
else
if HackerMansHack.aachange then
bSendPacket = true
cmd:SetViewAngles(Angle(-192, HackerMansHack.fakeangle.y + 90, 0))
else
bSendPacket = false
cmd:SetViewAngles(Angle(-192, HackerMansHack.fakeangle.y - 90, 0))
end
HackerMansHack.fixmove(cmd, true)
HackerMansHack.aachange = !HackerMansHack.aachange
end
end
if !HackerMansHack.vars["hvh"]["aa"] and !HackerMansHack.vars["hvh"]["fakelag"] and !HackerMansHack.vars["hvh"]["fakebhop"] then
bSendPacket = true
end
end
function HackerMansHack.calcview(p, origin, a, fov)
local view = {}
view.angles = HackerMansHack.fakeangle
view.origin = origin
view.fov = fov
return view
end
function HackerMansHack.menu()
HackerMansHack.menuopen = true
local main = vgui.Create("DFrame")
main:SetSize(790, 600)
main:SetTitle("")
main:Center()
main:MakePopup()
main:ShowCloseButton(false)
main.Paint = function(self)
draw****undedBox(0, 0, 0, self:GetWide(), self:GetTall(), Color(255, 255, 255))
local hake = Color(0, 0, 170)
for i = 0, 40 do
surface.SetDrawColor(hake)
hake.b = hake.b - 1
surface.DrawLine(-1, i, 800, i)
end
surface.SetDrawColor(hake)
surface.DrawRect(0, 31, 5, self:GetTall() - 31)
surface.DrawRect(0, self:GetTall() - 5, self:GetWide(), self:GetTall())
surface.DrawRect(self:GetWide() - 5, 31, 5, self:GetTall())
draw.SimpleText("HackerMansHack", "Trebuchet24", self:GetWide() / 2, 20, Color(255, 255, 255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
end
local aimbot = vgui.Create("DButton", main)
aimbot:SetSize(196, 40)
aimbot:SetPos(5, 41)
aimbot:SetText("")
aimbot.Paint = function(self)
draw****undedBox(4, 0, 0, self:GetWide(), self:GetTall(), Color(75, 75, 75))
surface.SetDrawColor(70, 70, 70)
surface.DrawOutlinedRect(0, 0, self:GetWide(), self:GetTall())
draw.SimpleText("Aimbot", "Trebuchet18", self:GetWide() / 2 - 22, self:GetTall() / 2 - 7, color_white)
end
local visuals = vgui.Create("DButton", main)
visuals:SetSize(196, 40)
visuals:SetPos(201, 41)
visuals:SetText("")
visuals.Paint = function(self)
draw****undedBox(4, 0, 0, self:GetWide(), self:GetTall(), Color(75, 75, 75))
surface.SetDrawColor(70, 70, 70)
surface.DrawOutlinedRect(0, 0, self:GetWide(), self:GetTall())
draw.SimpleText("Visuals", "Trebuchet18", self:GetWide() / 2 - 22, self:GetTall() / 2 - 7, color_white)
end
local misc = vgui.Create("DButton", main)
misc:SetSize(196, 40)
misc:SetPos(397, 41)
misc:SetText("")
misc.Paint = function(self)
draw****undedBox(4, 0, 0, self:GetWide(), self:GetTall(), Color(75, 75, 75))
surface.SetDrawColor(70, 70, 70)
surface.DrawOutlinedRect(0, 0, self:GetWide(), self:GetTall())
draw.SimpleText("Misc", "Trebuchet18", self:GetWide() / 2 - 9, self:GetTall() / 2 - 7, color_white)
end
local hvh = vgui.Create("DButton", main)
hvh:SetSize(192, 40)
hvh:SetPos(593, 41)
hvh:SetText("")
hvh.Paint = function(self)
draw****undedBox(4, 0, 0, self:GetWide(), self:GetTall(), Color(75, 75, 75))
surface.SetDrawColor(70, 70, 70)
surface.DrawOutlinedRect(0, 0, self:GetWide(), self:GetTall())
draw.SimpleText("HvH", "Trebuchet18", self:GetWide() / 2 - 9, self:GetTall() / 2 - 7, color_white)
end
local aim_enable = vgui.Create("DCheckBoxLabel", main)
aim_enable:SetPos(7, 85)
aim_enable:SetText("Enabled")
aim_enable:SetVisible(false)
aim_enable:SetValue(HackerMansHack.vars["aimbot"]["enabled"])
aim_enable:SizeToContents()
aim_enable.OnChange = function(self)
HackerMansHack.vars["aimbot"]["enabled"] = tobool(self:GetChecked())
end
local aim_team = vgui.Create("DCheckBoxLabel", main)
aim_team:SetPos(7, 105)
aim_team:SetText("Ignore Team")
aim_team:SetVisible(false)
aim_team:SetValue(HackerMansHack.vars["aimbot"]["team"])
aim_team:SizeToContents()
aim_team.OnChange = function(self)
HackerMansHack.vars["aimbot"]["team"] = tobool(self:GetChecked())
end
local aim_nospread = vgui.Create("DCheckBoxLabel", main)
aim_nospread:SetPos(7, 125)
aim_nospread:SetText("NoSpread")
aim_nospread:SetVisible(false)
aim_nospread:SetValue(HackerMansHack.vars["aimbot"]["nospread"])
aim_nospread:SizeToContents()
aim_nospread.OnChange = function(self)
HackerMansHack.vars["aimbot"]["nospread"] = tobool(self:GetChecked())
end
local aim_silent = vgui.Create("DCheckBoxLabel", main)
aim_silent:SetPos(7, 145)
aim_silent:SetText("Silent Aim")
aim_silent:SetVisible(false)
aim_silent:SetValue(HackerMansHack.vars["aimbot"]["silent"])
aim_silent:SizeToContents()
aim_silent.OnChange = function(self)
HackerMansHack.vars["aimbot"]["silent"] = tobool(self:GetChecked())
end
local aim_auto = vgui.Create("DCheckBoxLabel", main)
aim_auto:SetPos(7, 165)
aim_auto:SetText("AutoShoot")
aim_auto:SetVisible(false)
aim_auto:SetValue(HackerMansHack.vars["aimbot"]["autoshoot"])
aim_auto:SizeToContents()
aim_auto.OnChange = function(self)
HackerMansHack.vars["aimbot"]["autoshoot"] = tobool(self:GetChecked())
end
local aim_vis = vgui.Create("DCheckBoxLabel", main)
aim_vis:SetPos(7, 185)
aim_vis:SetText("Visibility Check")
aim_vis:SetVisible(false)
aim_vis:SetValue(HackerMansHack.vars["aimbot"]["vischeck"])
aim_vis:SizeToContents()
aim_vis.OnChange = function(self)
HackerMansHack.vars["aimbot"]["vischeck"] = tobool(self:GetChecked())
end
local vis_enabled = vgui.Create("DCheckBoxLabel", main)
vis_enabled:SetPos(7, 85)
vis_enabled:SetText("Enabled")
vis_enabled:SetVisible(false)
vis_enabled:SetValue(HackerMansHack.vars["visuals"]["enabled"])
vis_enabled:SizeToContents()
vis_enabled.OnChange = function(self)
HackerMansHack.vars["visuals"]["enabled"] = tobool(self:GetChecked())
end
local vis_name = vgui.Create("DCheckBoxLabel", main)
vis_name:SetPos(7, 105)
vis_name:SetText("Name")
vis_name:SetVisible(false)
vis_name:SetValue(HackerMansHack.vars["visuals"]["name"])
vis_name:SizeToContents()
vis_name.OnChange = function(self)
HackerMansHack.vars["visuals"]["name"] = tobool(self:GetChecked())
end
local vis_box = vgui.Create("DCheckBoxLabel", main)
vis_box:SetPos(7, 125)
vis_box:SetText("2D Box")
vis_box:SetVisible(false)
vis_box:SetValue(HackerMansHack.vars["visuals"]["box"])
vis_box:SizeToContents()
vis_box.OnChange = function(self)
HackerMansHack.vars["visuals"]["box"] = tobool(self:GetChecked())
end
local vis_health = vgui.Create("DCheckBoxLabel", main)
vis_health:SetPos(7, 145)
vis_health:SetText("Health")
vis_health:SetVisible(false)
vis_health:SetValue(HackerMansHack.vars["visuals"]["health"])
vis_health:SizeToContents()
vis_health.OnChange = function(self)
HackerMansHack.vars["visuals"]["health"] = tobool(self:GetChecked())
end
local hvh_aa = vgui.Create("DCheckBoxLabel", main)
hvh_aa:SetPos(7, 85)
hvh_aa:SetText("Anti-Aim")
hvh_aa:SetVisible(false)
hvh_aa:SetValue(HackerMansHack.vars["hvh"]["aa"])
hvh_aa:SizeToContents()
hvh_aa.OnChange = function(self)
HackerMansHack.vars["hvh"]["aa"] = tobool(self:GetChecked())
end
local hvh_fakelag = vgui.Create("DCheckBoxLabel", main)
hvh_fakelag:SetPos(7, 105)
hvh_fakelag:SetText("FakeLag")
hvh_fakelag:SetVisible(false)
hvh_fakelag:SetValue(HackerMansHack.vars["hvh"]["fakelag"])
hvh_fakelag:SizeToContents()
hvh_fakelag.OnChange = function(self)
HackerMansHack.vars["hvh"]["fakelag"] = tobool(self:GetChecked())
end
local hvh_fakebhop = vgui.Create("DCheckBoxLabel", main)
hvh_fakebhop:SetPos(7, 125)
hvh_fakebhop:SetText("FakeBHop")
hvh_fakebhop:SetVisible(false)
hvh_fakebhop:SetValue(HackerMansHack.vars["hvh"]["fakebhop"])
hvh_fakebhop:SizeToContents()
hvh_fakebhop.OnChange = function(self)
HackerMansHack.vars["hvh"]["fakebhop"] = tobool(self:GetChecked())
end
local function SetVis(group, bool)
if group == "aimbot" then
aim_enable:SetVisible(bool)
aim_team:SetVisible(bool)
aim_nospread:SetVisible(bool)
aim_silent:SetVisible(bool)
aim_auto:SetVisible(bool)
aim_vis:SetVisible(bool)
elseif group == "visuals" then
vis_enabled:SetVisible(bool)
vis_name:SetVisible(bool)
vis_box:SetVisible(bool)
vis_health:SetVisible(bool)
elseif group == "hvh" then
hvh_aa:SetVisible(bool)
hvh_fakelag:SetVisible(bool)
hvh_fakebhop:SetVisible(bool)
end
end
aimbot.DoClick = function()
SetVis("aimbot", true)
SetVis("visuals", false)
SetVis("hvh", false)
end
visuals.DoClick = function()
SetVis("aimbot", false)
SetVis("visuals", true)
SetVis("hvh", false)
end
misc.DoClick = function()
SetVis("aimbot", false)
SetVis("visuals", false)
SetVis("hvh", false)
end
hvh.DoClick = function()
SetVis("aimbot", false)
SetVis("visuals", false)
SetVis("hvh", true)
end
main.Think = function()
if input.IsKeyDown(KEY_DELETE) and !HackerMansHack.insert2 then
main:Remove()
HackerMansHack.menuopen = false
end
end
end
function HackerMansHack.think()
if input.IsKeyDown(KEY_DELETE) and !HackerMansHack.menuopen and !HackerMansHack.insert then
HackerMansHack.menuopen = true
HackerMansHack.insert = true
HackerMansHack.menu()
elseif !input.IsKeyDown(KEY_DELETE) and !HackerMansHack.menuopen then
HackerMansHack.insert = false
end
if input.IsKeyDown(KEY_DELETE) and HackerMansHack.insert and HackerMansHack.menuopen then
HackerMansHack.insert2 = true
else
HackerMansHack.insert2 = false
end
end
function HackerMansHack.hook(ht, hn, hf)
local nhn = "HackerMansHack." .. hn
nhn = util.CRC(nhn)
hook.Add(ht, nhn, hf)
end
HackerMansHack.hook("CreateMove", "aimbot", HackerMansHack.aimbot)
HackerMansHack.hook("HUDPaint", "visuals", HackerMansHack.visuals)
HackerMansHack.hook("CreateMove", "bhop", HackerMansHack.bhop)
HackerMansHack.hook("CreateMove", "hvh", HackerMansHack.hvh)
HackerMansHack.hook("CalcView", "calcview", HackerMansHack.calcview)
HackerMansHack.hook("Think", "think", HackerMansHack.think)