Results 1 to 6 of 6
  1. #1
    poonystalker's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    Your dad's bed ( ͡° ͜ʖ ͡°)
    Posts
    12
    Reputation
    10
    Thanks
    78

    Wall Detection Help

    So Im making an aimbot but it aims at people through walls, I have started the code but when it activates it only works when i look directly at them.


    code:
    local ply = LocalPlayer()

    function test()
    local Target = LocalPlayer():GetEyeTrace().Entity
    if Target:IsPlayer() then
    print("Bugger Targeted")
    else
    print("Bugger Is Not Visible")
    end
    end

    hook.Add( "Think", "WallDetect", test)

    Anyhelp you may give would be great. Thanks.

  2. #2
    yung420's Avatar
    Join Date
    Mar 2015
    Gender
    male
    Location
    lua aight
    Posts
    30
    Reputation
    10
    Thanks
    35
    My Mood
    Twisted
    ValveBiped.Bip01_Head1 vnicecheat

  3. #3
    ehex's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    150
    Reputation
    22
    Thanks
    555
    Quote Originally Posted by poonystalker View Post
    So Im making an aimbot but it aims at people through walls, I have started the code but when it activates it only works when i look directly at them.


    code:
    local ply = LocalPlayer()

    function test()
    local Target = LocalPlayer():GetEyeTrace().Entity
    if Target:IsPlayer() then
    print("Bugger Targeted")
    else
    print("Bugger Is Not Visible")
    end
    end

    hook.Add( "Think", "WallDetect", test)

    Anyhelp you may give would be great. Thanks.
    https://wiki.garrysmod.com/page/util/TraceLine

  4. #4
    D3M0L1T10N's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    1,364
    Reputation
    19
    Thanks
    656
    make a trace and check the fraction or compare the entity
    8:53 PM - Xenomorphic 1 hr 7 min cooldown: So is MPGH only exist so people can c+p from ************* and troll the gmod section?

    [IMG]https://i739.photobucke*****m/albums/xx38/jorroa5990/flatexch2_zpsec96a7e2.gif[/IMG]

  5. #5
    skittz10's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    3
    Quote Originally Posted by poonystalker View Post
    So Im making an aimbot but it aims at people through walls, I have started the code but when it activates it only works when i look directly at them.


    code:
    local ply = LocalPlayer()

    function test()
    local Target = LocalPlayer():GetEyeTrace().Entity
    if Target:IsPlayer() then
    print("Bugger Targeted")
    else
    print("Bugger Is Not Visible")
    end
    end

    hook.Add( "Think", "WallDetect", test)

    Anyhelp you may give would be great. Thanks.
    You need to hook the global function "Virtualprotect" to see if someone is behind you will wall.

  6. #6
    JayFromSubway's Avatar
    Join Date
    Apr 2017
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by poonystalker View Post
    So Im making an aimbot but it aims at people through walls, I have started the code but when it activates it only works when i look directly at them.


    code:
    local ply = LocalPlayer()

    function test()
    local Target = LocalPlayer():GetEyeTrace().Entity
    if Target:IsPlayer() then
    print("Bugger Targeted")
    else
    print("Bugger Is Not Visible")
    end
    end

    hook.Add( "Think", "WallDetect", test)

    Anyhelp you may give would be great. Thanks.


    As help for the OP since this still isn't marked solved and others may need help... just drawl a line between you and the target (normally v, but in this case is literally Target) and then use the this: LINENAME.HitNonWorld <--- Just use that shit and check to see if the line you drew between the LocalPlayer and the Target hits the map, and if not, continue, else...don't.

Similar Threads

  1. [Help Request] Crossfire Detection help.
    By MidnightSeige in forum CrossFire Help
    Replies: 2
    Last Post: 07-10-2013, 06:16 AM
  2. Jump hack & wall hack help?
    By Dasadan2 in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 08-21-2008, 12:11 PM
  3. Wall Hack Help
    By notwell619 in forum Soldier Front General
    Replies: 1
    Last Post: 06-13-2008, 06:35 AM
  4. glass wall coding [help]
    By pbguy145 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 10-09-2007, 07:52 AM
  5. How Shoot Through Wall PLEASE HELP!!!
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 14
    Last Post: 06-09-2007, 02:46 PM