Quantcast
Channel: D3Scene
Viewing all articles
Browse latest Browse all 21080

Aimbot Loop Problem

$
0
0
Hey everybody, I don't know if this is the right place to post this, so sorry if I'm in the wrong place.

Basically, my external aimbot is working fine, except that it aims at everybody in the FOV in the loop. For example, if there is three people (Yes, I have team checks, etc, I am talking about three valid targets) in a field of view of 30 degrees, it will aim at all three continuously, and it makes my screen look like it's just spazzing out.
I am out of ideas, I have tried everything that I could come up with, and none of it has worked. I just want it to lock on the nearest target to my crosshair.

Current code :

Code:

void Aimbot()
{
CurrentTarget = AimFOV + 1;   
for(int iIndex = 0; iIndex < 32; iIndex++)
    {
        BaseEntity[iIndex].Info(iIndex);
        if(BaseEntity[iIndex].Health <= MaxHP && BaseEntity[iIndex].Health > 2 && BaseEntity[iIndex].Team != LocalPlayer.Team)
        {
            if(FOV(iIndex) <= AimFOV && FOV(iIndex) < CurrentTarget)
            {
                                CurrentTarget = FOV(iIndex)
                                if(GetAsyncKeyState(AimKey))
                {
                    CalcAngle(LocalPlayer.Position, BaseEntity[iIndex].AimSpot, AimbotAngles);
                    SmoothAim();
                    WriteProcessMemory(CSSHandle,(LPVOID)(EngineDLL + dwViewAngles), &AimbotAngles, 12, 0);
                }
            }
        }
    }
}

I am just dead out of ideas, I would be thrilled if someone could help me out!

Thanks.

Viewing all articles
Browse latest Browse all 21080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>