Jump to content

1 post in this topic

Recommended Posts

Posted (edited)

Hi dear guys I’ve been trying to do aimbot but as it seems it doesn’t work on the new version here is the example of the code

And if there’s new one could you provide it please?

 

- (void)aimbot
{
    if (!(self.overlayView.isAimbot || self.overlayView.isBulletTrack1))
return;

    if (self.isFire) {
        if (IsValidAddress(self.lockActor)) {
            float targetHp = Read<float>(self.lockActor + 0xd08);
            float localPlayerHp = Read<float>(self.localPlayer.base + 0xcbc);
            if (targetHp >= 0 && localPlayerHp > 0) {

                if (self.overlayView.isBulletTrack1) {
                    Vector3 lockBoneV3 = [self getBoneWorldPos:self.lockActor index:self.overlayView.aimbotPart1];
                    Vector3 diffV3 = lockBoneV3 - POV.Location;
                    float pitch = atan2f(diffV3.Z, sqrt(diffV3.X * diffV3.X + diffV3.Y * diffV3.Y)) * 57.29577951308f;
                    float yaw = atan2f(diffV3.Y, diffV3.X) * 57.29577951308f;
                    if (IsValidAddress(controlRotation)) {
                        if (Read<float>(controlRotation) != 0) {
                            Write<float>(controlRotation, pitch);
                        }
                        if (Read<float>(controlRotation + 0x4) != 0) {
                            Write<float>(controlRotation + 0x4, yaw);
                        }
                    }
                }
            } else {
                self.lockActor = 0;
                self.isFire = false;
            }
        }
    } else {
        self.lockActor = 0;
        self.isFire = false;
    }
}

Updated by DzhiLord

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines