timer.Simple(5, function() local copytable = table.Copy; local require = require; require('dickwrap'); require('name_enabler'); require('fakefag'); local dickwrap = copytable(dickwrap); local surface = copytable(surface); local player = copytable(player); local string = copytable(string); local util = copytable(util); local render = copytable(render); local hook = copytable(hook); local input = copytable(input); local timer = copytable(timer); local vgui = copytable(vgui); local table = copytable(table); local bit = copytable(bit); local math = copytable(math); local engine = copytable(engine); local Color = Color; local Vector = Vector; local Angle = Angle; local print = print; local FindMetaTable = FindMetaTable; local LocalPlayer = LocalPlayer; local IsFirstTimePredicted = IsFirstTimePredicted; local CurTime = CurTime; local ScrW = ScrW; local MASK_SHOT = MASK_SHOT; local TEAM_SPECTATOR = TEAM_SPECTATOR; local IN_ATTACK = IN_ATTACK; local IN_JUMP = IN_JUMP; local Entity = Entity; local RealFrameTime = RealFrameTime; local ScrH = ScrH; local ply = LocalPlayer() local hooktbl = { 'Stay out of OJs Hooks' } RunConsoleCommand('cl_interp', '0.003333') RunConsoleCommand('cl_interp_ratio', '0') RunConsoleCommand('cl_cmdrate', '100') RunConsoleCommand('cl_updaterate', '1000') local ExplicityBoatVars = {}; ExplicityBoatVars['AimBoat'] = false; ExplicityBoatVars['Ignore Team'] = true; ExplicityBoatVars['FakeLag'] = true; ExplicityBoatVars['AA'] = true; ExplicityBoatVars['AAType'] = 1;" ExplicityBoatVars['Aim on Key'] = false; ExplicityBoatVars['Ignore Friends'] = false; local ExplicityBoat = {};" ExplicityBoat.Reg = debug.getregistry(); ExplicityBoat.CleanReg = table.Copy(ExplicityBoat.Reg); local function ShootPosition() local shootPos = ply:GetShootPos() shootPoss = shootPos + ((ply:GetVelocity() * engine.TickInterval())) return shootPoss; end local originalFire = ExplicityBoat.CleanReg.Entity.FireBullets; local cones = {}; local nullvec = Vector() * -1; function ExplicityBoat.Reg.Entity.FireBullets(p, data) local spread = data.Spread * -1; local class = p:GetActiveWeapon():GetClass(); if (spread != cones[class] && spread != nullvec) then cones[class] = spread; end return(originalFire(p, data)); end local function PredictSpread(ucmd, ang) local w = ply:GetActiveWeapon(); if (!w || !w:IsValid() || !cones[w:GetClass()]) then return ang; end local ang = (dickwrap.Predict(ucmd, ang:Forward(), cones[w:GetClass()])):Angle(); ang.y, ang.x = math.NormalizeAngle(ang.y), math.NormalizeAngle(ang.x); return(ang); end local function FakeMouseSamples(ucmd) if (!FakeView) then FakeView = ucmd:GetViewAngles() end FakeView = FakeView + Angle(ucmd:GetMouseY() * .023, ucmd:GetMouseX() * -.023, 0); FakeView.x = math.NormalizeAngle(FakeView.x); FakeView.p = math.Clamp(FakeView.p, -89, 89); return FakeView; end local function CorrectCurTime() if IsFirstTimePredicted() then corCur = CurTime() + engine.TickInterval(); end end local function CanFire() local weapon = ply:GetActiveWeapon() if (corCur == nil) then return false end return (IsValid(weapon) && weapon:GetActivity() != ACT_RELOAD && weapon:GetNextPrimaryFire() < corCur && ply:Alive()) end local function Autohop(ucmd) if (!ply:IsTyping() && !ply:IsOnGround() && !ply:IsFlagSet(FL_PARTIALGROUND) && ply:Alive()) then ucmd:RemoveKey(IN_JUMP) local mouseX = ucmd:GetMouseX() if (mouseX < 0) then ucmd:SetSideMove(-10 ^ 4) elseif(mouseX > 0) then ucmd:SetSideMove(10 ^ 4) end end end local function getaimboatpos(Nigger) local pos, ang = Nigger:GetBonePosition(Nigger:GetHitBoxBone(0, 0)) poss = pos + ang:Forward() * 2; return poss; end local function FixMovement(ucmd) side = Vector(ucmd:GetForwardMove(), ucmd:GetSideMove(), 0) side = ((side:GetNormal()):Angle() + (ucmd:GetViewAngles() - FakeView)):Forward() * side:Length() ucmd:SetForwardMove(side.x) ucmd:SetSideMove(side.y) end local function IsVis(v) local traceData = {} traceData.start = ShootPosition() traceData.endpos = getaimboatpos(v) traceData.mask = MASK_SHOT traceData.filter = function(entity) return !entity:IsPlayer() end local trace = util.TraceLine(traceData) return !trace.Hit end local function FakeLag() if (ExplicityBoatVars['FakeLag']) then FakeFag(true, 7, 11) else FakeFag(false, 7, 11) end end FakeLag() local function findaimtarg() local idealTarget; for i = 1, #player.GetAll() do local v = player.GetAll()[i]; if (!ExplicityBoatVars['AimBoat']) then continue; end if (v:Team() == 1002) then continue; end if (v:Team() == TEAM_SPECTATOR) then continue; end if (v:Health() < 1) then continue; end if (v == ply) then continue; end if (ExplicityBoatVars['Aim on Key'] && !input.IsKeyDown(KEY_F)) then continue; end if (ExplicityBoatVars['Ignore Team'] && ply:Team() == v:Team()) then continue; end if (ExplicityBoatVars['Ignore Friends'] && v:GetFriendStatus() == 'friend') then continue; end if (!v:Alive()) then continue; end if (!IsVis(v)) then continue; end idealTarget = v; break; end return idealTarget; end local function AAType(ucmd) local AASetting = ExplicityBoatVars['AAType'] if (AASetting == 1) then ucmd:SetViewAngles(Angle(-181, 150 + math.Rand(1, 10), -180)) else if (AASetting == 2) then ucmd:SetViewAngles(Angle(-181, 360, -180)) end end local function aimboat(ucmd) Autohop(ucmd) FakeMouseSamples(ucmd) local target = findaimtarg() if (target && CanFire()) then local shoot = ShootPosition() local pos = (getaimboatpos(target) - shoot):Angle() ucmd:SetViewAngles(PredictSpread(ucmd, pos)) ucmd:SetButtons(bit.bor(ucmd:GetButtons(), IN_ATTACK)) else if (ucmd:CommandNumber() != 0 && ExplicityBoatVars['AA']) then AAType(ucmd) end end FixMovement(ucmd) end local function BoatCrossHair() surface.SetDrawColor(Color(0, 255, 0)) local x = ScrW() / 2; local y = ScrH() / 2; local i = 0; for i = 0, 1 do if (!ply:Alive()) then continue; end surface.DrawLine(x + 9 + i, y, x, y) surface.DrawLine(x - 9 - i, y, x, y) surface.DrawLine(x, y + 9 + i, x, y) surface.DrawLine(x, y - 9 - i, x, y) end end local function BoatWalls(target) local min, max, width, height; min = target:GetPos() max = min + Vector(0, 0, target:OBBMaxs().z) min, max = min:ToScreen(), max:ToScreen() height = min.y - max.y; width = height *.5; surface.SetDrawColor(Color(0, 255, 0)) surface.DrawOutlinedRect(max.x - (width*.5), max.y, width, height) surface.SetDrawColor(Color(0, 0, 0, 150)) surface.DrawOutlinedRect(max.x - (width*.5) - 1, max.y - 1, width + 2, height + 2) surface.DrawOutlinedRect(max.x - (width*.5) + 1, max.y + 1, width - 2, height - 2) surface.SetDrawColor(Color(0, 0, 0, 200)) surface.DrawOutlinedRect(max.x - (width*.5) - 4, max.y, 2, height * 0.01 * target:Health()) surface.DrawRect(max.x - (width*.5) - 4, max.y, 2, height) surface.SetDrawColor(Color(0, 255, 0, 255)) surface.DrawRect(max.x - (width*.5) - 4, max.y, 2, height * 0.01 * target:Health()) end local function BoatWallsCheck() BoatCrossHair() for i = 1, #player.GetAll() do local v = player.GetAll()[i]; if (!ply:Alive()) then continue; end if (v:Team() == 1002) then continue; end if (v:Team() == TEAM_SPECTATOR) then continue; end if (v == ply) then continue; end if (!v:Alive()) then continue; end BoatWalls(v) end end local function CalcView(entity, orgPos, orgAngles, orgFov) if (!entity:IsPlayer()) then return ply:GetShootPos(), FakeView || orgAngles; end local newView = {}; newView.origin = orgPos - FakeView:Forward() * 125 || orgAngles; newView.angles = FakeView; newView.fov = orgFov; return newView; end local menuopen = false; local insert2 = false; local function Menu() local menuheight, menuwidth, w, h = {}, 270, 240, ScrW() / 2, ScrH() / 2 local Frame = vgui.Create('DFrame') Frame:SetSize(600, 400) Frame:SetVisible(true) Frame:ShowCloseButton(false) Frame:MakePopup() Frame:SetTitle('ExplicityBoat v3') Frame:Center() Frame.Paint = function() draw.RoundedBox(0, 0, 0, Frame:GetWide(), Frame:GetTall(), Color(0, 188, 255, 75)) surface.SetDrawColor(Color(0, 188, 255, 75)) surface.DrawOutlinedRect(0, 0, Frame:GetWide(), Frame:GetTall()) end local Sheet = vgui.Create('DPropertySheet', Frame) Sheet:Dock(FILL) local AimBot = vgui.Create('DPanel') Sheet:AddSheet(' Aimbot ', AimBot, false, false, false) local AimActive = vgui.Create('DCheckBoxLabel', AimBot) AimActive:SetPos(10, 10) AimActive:SetText('AimBoat') AimActive:SetValue(ExplicityBoatVars['AimBoat']) AimActive.OnChange = function() ExplicityBoatVars['AimBoat'] = !ExplicityBoatVars['AimBoat']; end AimActive:SetTextColor(Color(5, 5, 5)) AimActive:SizeToContents() local IgnoreTeam = vgui.Create('DCheckBoxLabel', AimBot) IgnoreTeam:SetPos(10, 30) IgnoreTeam:SetText('Ignore Team') IgnoreTeam:SetValue(ExplicityBoatVars['Ignore Team']) IgnoreTeam.OnChange = function() ExplicityBoatVars['Ignore Team'] = !ExplicityBoatVars['Ignore Team']; end IgnoreTeam:SetTextColor(Color(5, 5, 5)) IgnoreTeam:SizeToContents() local IgnoreFriends = vgui.Create('DCheckBoxLabel', AimBot) IgnoreFriends:SetPos(10, 50) IgnoreFriends:SetText('Ignore Friends') IgnoreFriends:SetValue(ExplicityBoatVars['Ignore Friends']) IgnoreFriends.OnChange = function() ExplicityBoatVars['Ignore Friends'] = !ExplicityBoatVars['Ignore Friends']; end IgnoreFriends:SetTextColor(Color(5, 5, 5)) IgnoreFriends:SizeToContents() local AimOnKey = vgui.Create('DCheckBoxLabel', AimBot) AimOnKey:SetPos(10, 70) AimOnKey:SetText('Aim On Key') AimOnKey:SetValue(ExplicityBoatVars['Aim on Key']) AimOnKey.OnChange = function() ExplicityBoatVars['Aim on Key'] = !ExplicityBoatVars['Aim on Key']; end AimOnKey:SetTextColor(Color(5, 5, 5)) AimOnKey:SizeToContents() local ESP = vgui.Create('DPanel') Sheet:AddSheet(' ESP ', ESP, false, false, false) local Misc = vgui.Create('DPanel') Sheet:AddSheet(' Misc. ', Misc, false, false, false) local FakeLag = vgui.Create('DCheckBoxLabel', Misc) FakeLag:SetPos(10, 10) FakeLag:SetText('FakeLag') FakeLag:SetValue(ExplicityBoatVars['FakeLag']) FakeLag.OnChange = function() ExplicityBoatVars['FakeLag'] = !ExplicityBoatVars['FakeLag']; end FakeLag:SetTextColor(Color(5, 5, 5)) FakeLag:SizeToContents() local HvH = vgui.Create('DPanel') Sheet:AddSheet(' HvH ', HvH, false, false, false) local AA = vgui.Create('DCheckBoxLabel', HvH) AA:SetPos(10, 10) AA:SetText('AA') AA:SetValue(ExplicityBoatVars['AA']) AA.OnChange = function() ExplicityBoatVars['AA'] = !ExplicityBoatVars['AA']; end local AAType = vgui.Create('DComboBox', HvH) AAType:SetPos(496, 5) AAType:SetSize(75, 20) if (ExplicityBoatVars['AAType'] == 1) then AAType:SetValue('Type 1') elseif(ExplicityBoatVars['AAType'] == 2) then AAType:SetValue('Type 2') end AAType:AddChoice('Type 1') AAType:AddChoice('Type 2') AAType.OnSelect = function(panel, index, value) if (value == 'Type 1') then ExplicityBoatVars['AAType'] = 1; elseif(value == 'Type 2') then ExplicityBoatVars['AAType'] = 2; end end AA:SetTextColor(Color(5, 5, 5)) AA:SizeToContents() function Frame:Think() if input.IsKeyDown(KEY_INSERT) and !insert2 then menuopen = false; Frame:Close() end end end local function MenuThink() if (input.IsKeyDown(KEY_INSERT) and !menuopen and !insert) then menuopen = true; insert = true; Menu() surface.PlaySound('/buttons/button17.wav') elseif(!input.IsKeyDown(KEY_INSERT) and !menuopen) then insert = false; end if (input.IsKeyDown(KEY_INSERT) and insert and menuopen) then insert2 = true; else insert2 = false; end end local function hookLocalPly() return true end local function hookMove() CorrectCurTime() end local function hookCreateMove(ucmd) aimboat(ucmd) end local function hookHUDPaint() BoatWallsCheck() end local function hookThink() MenuThink() end hook.Add('Move', '', hookMove) hook.Add('CreateMove', '', hookCreateMove) hook.Add('ShouldDrawLocalPlayer','',hookLocalPly) hook.Add('HUDPaint', '', hookHUDPaint) hook.Add('CalcView','',CalcView) hook.Add('Think', '', hookThink) end)