Thread: Aimbot Problem

Results 1 to 3 of 3
  1. #1
    CLOOK's Avatar
    Join Date
    Feb 2016
    Gender
    female
    Posts
    34
    Reputation
    10
    Thanks
    2
    My Mood
    Sad

    Aimbot Problem

    I've been spending almost 2 weeks on this now and I cannot find the answer. Basically the aimbot is aiming at random spots on the map and only sometimes at the enemy. It also aims through walls and were dead teammates should be yet the code checks for it. I've encountered people with similar problems but the solutions don't work for me. I was wondering if anyone could assist me here or at least take a second person view on the problem. It's probably some retarded mistake as it always is. Sorry if this happens, I guess I'm just blind.
    Here is the source:
    https://pastebin.com/hEi9Z5MT
    All help is appreciated.
    Last edited by CLOOK; 04-25-2016 at 09:21 PM.

  2. #2
    WasserEsser's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    735
    Reputation
    174
    Thanks
    677
    My Mood
    Busy
    1. You are not checking if EntityBase is a valid address. Add an if statement:

    Code:
    if ( !EntityBase ) continue;
    2. You are checking lifeState incorrectly.

    Code:
    if (EntityLifeState != true)
                continue;
    The correct enum is the following:

    Code:
    enum LifeState {
    	LIFE_ALIVE = 0,// alive
    	LIFE_DYING = 1, // playing death animation or still falling off of a ledge waiting to hit ground
    	LIFE_DEAD = 2 // dead. lying still.
    };
    You're essentially checking if the enemy is alive, and if it is, continue. ( != true means that you're checking if it's 0, and if it is, you continue )

    Code:
    if ( EntityLifeState ) continue;
    is all it takes.

  3. The Following 2 Users Say Thank You to WasserEsser For This Useful Post:

    Hunter (04-26-2016),iTzCode (04-26-2016)

  4. #3
    Hunter's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Depths Of My Mind.
    Posts
    17,468
    Reputation
    3771
    Thanks
    6,159
    My Mood
    Cheerful
    /Solved & closed.

Similar Threads

  1. [Solved] How to fix aimbot problem?.
    By subarurc in forum Counter-Strike 2 Help
    Replies: 3
    Last Post: 07-09-2015, 03:50 AM
  2. Aimbot Problem
    By zombiezombiezombie in forum Garry's Mod Discussions & Help
    Replies: 9
    Last Post: 12-31-2014, 06:41 AM
  3. Fabolous hack aimbot problem
    By w21a in forum Combat Arms Help
    Replies: 15
    Last Post: 08-22-2011, 05:54 PM
  4. [Help] Aimbot Problem!
    By Sir Nathan in forum CrossFire Hacks & Cheats
    Replies: 15
    Last Post: 02-19-2010, 03:14 PM
  5. Problem with aimbot
    By EliteSlayer in forum Battlefield Heroes Hacks
    Replies: 8
    Last Post: 05-23-2009, 05:50 PM