❓ FOV Based Aimbot (C++)
Hello MPGH! I have a very basic question I'd like to ask and as I've come to learn from past experiences, this community never seems to fail me. So let's get right into the business. I'm working on an aimbot which will be FOV based in it's final stage. Specifically, if a certain key is held, and an enemy is within a certain FOV (Ex: 2.8), you aim at their head. So fair I've managed to make an aimbot which utilizes a bezier curve for more legit gameplay, but it only aims if your crosshair goes over the enemy while you hold the aim key. From what I understand, the quickest way to do this would be to modify the code where if the crosshair is within a certain distance of the enemy, it aims, and I'd assume you'd do that by doing something like this:
But when I use this in my code, the aimbot doesn't seem to work. I'm certain all offsets are correct, but the FOV offset may not be the correct offset that I should be using, because it works for my FOV changer in game, but it doesn't work for my aimbot. I may just be stupid and this could be really simple, but I could also be struggling because of something far more complicated that what I've been guessing.
inb4 someone complains because I didn't provide enough detail.
- By "the aimbot doesn't seem to work" I mean it doesn't work at all.
- This is in C++ if you couldn't read the title properly <3
- My other features are completely functional and seem to work flawlessly (Triggerbot, GlowESP, FOV Changer, etc...)
Code:
int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset);
int LocalTeam = Mem.Read<int>(localP + teamOffset);
int AimFOV = 2.8;
bool EnemyInFOV = Mem.Read<bool>(clientdll + entityBase + ((CrosshairID - AimFOV) *EntLoopDist));
if (LocalTeam != EnemyTeam && EnemyHealth > 0 && EnemyInFOV) {
Aim();
}
inb4 someone complains because I didn't provide enough detail.
- By "the aimbot doesn't seem to work" I mean it doesn't work at all.
- This is in C++ if you couldn't read the title properly <3
- My other features are completely functional and seem to work flawlessly (Triggerbot, GlowESP, FOV Changer, etc...)
