Results 1 to 2 of 2
  1. #1
    14126's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    3

    Semi working aimbot ( Fov check, Visible check(stolen from krown), and get next targe

    Code:
    fov = 30
    local lp = LocalPlayer()
    local shootpos = ply:GetShootPos()
    function IsVisible(ply, pos)
        local trace = {
            start = LocalPlayer():EyePos(),
            endpos = pos,
            filter = {ply, LocalPlayer()},
            mask = MASK_SHOT,
        };
        if (util.TraceLine(trace).Fraction == 1 ) then
            return true;
        end
    	    return false;
    end
    function FovCheck(pos)
    if isvector(pos) then
        np = pos:ToScreen()
        pos = np
        h = false
        w = false
        if pos.x > ScrW()/2-fov and pos.x < ScrW()/2+fov then
        w = true
        end
        if pos.y > ScrH()/2-fov  then
        if pos.y < ScrH()/2+fov then
        h = true
        end
        end
        if h and w then
            return true
            else
            return false
        end
        else
        print("Vector expected, got "..tostring(type(pos)))
    end
    end
    function GetNextTarget()
        for i,v in pairs(ents.GetAll())  do
            if IsVisible(v:GetPos()) then
                if v:IsPlayer() or v:IsNPC() then
                    if FovCheck(v:GetBonePosition(v:LookupBone('ValveBiped.Bip01_Head1')) or v:GetPos()) then
                        return (v:GetBonePosition(v:LookupBone('ValveBiped.Bip01_Head1')) or v:GetPos())
                    end
                end
            end
    end
    end
    function aimbot()
        lp:SetEyeAngles((GetNextTarget()-shootpos):Angle())
    end
    hook.Add('CreateMove','aimbutt',aimbot)
    the part that doesnt work is

    Code:
    function aimbot()
        lp:SetEyeAngles((GetNextTarget()-shootpos):Angle())
    end
    hook.Add('CreateMove','aimbutt',aimbot)
    everything else works. glhf

  2. #2
    Szymeks920's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    0
    thanks i was looking for it

Similar Threads

  1. [Solved] Visibility check for aimbot (CS:GO)
    By eZwork in forum Counter-Strike 2 Help
    Replies: 14
    Last Post: 04-27-2017, 10:10 AM
  2. [Detected] ViKiNGHook: Public Edition [Silent Aimbot][Fov 120.0F][Visibility Check][ESP & Team]
    By viking911 in forum Counter-Strike 2 Hacks
    Replies: 37
    Last Post: 09-15-2015, 04:06 PM
  3. [Help] Someone can tell me how to do a visibility check?
    By Neokil in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 1
    Last Post: 06-04-2011, 01:08 AM
  4. Aimbot - wrong high, team check
    By ChanceOfHax in forum Combat Arms Coding Help & Discussion
    Replies: 12
    Last Post: 02-18-2011, 08:14 PM