HelpAimbot Problem

Posts 1–3 of 3 · Page 1 of 1
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:
http://pastebin.com/hEi9Z5MT
All help is appreciated.
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.
/Solved & closed.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us