Exemplo n.º 1
0
        public void thread()
        {
            Graphics graphics = this.CreateGraphics();
            int      numnya;
            int      Adress1, Adress2, num2;
            Bitmap   bitmap        = new Bitmap(this.Width, this.Height);
            Graphics drawnawbrudda = Graphics.FromImage((Image)bitmap);
            Point    bottom        = new Point()
            {
                X = this.ClientRectangle.Width / 2,
                Y = this.ClientRectangle.Height / 2 + 200
            };
            int     Adress3, num6, name, aa, a2, n;
            string  str;
            double  num4, num5;
            float   dist;
            bool    Player, Bot, Vehicle, Item, SuplyBox, Plane, weapon;
            Vector2 center = new Vector2();

            while (true)
            {
                try
                {
                    MethodInvoker inv = delegate
                    {
                        SetWindowPos(this.Handle, new IntPtr(-1), 0, 0, 0, 0, 0x0001 | 0x0002);
                        this.TopMost  = true;
                        this.TopLevel = true;
                    };
                    this.Invoke(inv);


                    center.X = this.Width / 2;
                    center.Y = (this.Height / 2) + 20;
                    drawnawbrudda.Clear(Color.Black);
                    num1         = Mem.ReadMemory <int>(Mem.BaseAddress + Offsets.LocalPlayer);
                    numnya       = Mem.ReadMemory <int>(Mem.BaseAddress + 34);
                    MyPosition.X = Mem.ReadMemory <float>(num1 + 16);
                    MyPosition.Y = Mem.ReadMemory <float>(num1 + 16 + 4);
                    MyPosition.Z = Mem.ReadMemory <float>(num1 + 16 + 8);
                    if (Z == 0)
                    {
                        X = MyPosition.X;
                        Y = MyPosition.Y;
                        Z = MyPosition.Z;
                    }
                    Adress1 = Mem.ReadMemory <int>(Mem.ReadMemory <int>(Mem.BaseAddress + Offsets.Client) + Offsets.m_ppObjects);
                    Adress2 = Mem.ReadMemory <int>(Mem.ReadMemory <int>(Mem.ReadMemory <int>(Mem.ReadMemory <int>(Adress1))));
                    num2    = Mem.ReadMemory <int>(Adress1 + 4);
                    this.DrawMenu(drawnawbrudda);
                    while (Adress2 != num2 && Adress2 != num1)
                    {
                        MethodInvoker invx = delegate
                        {
                            SetWindowPos(this.Handle, new IntPtr(-1), 0, 0, 0, 0, 0x0001 | 0x0002);
                            this.TopMost  = true;
                            this.TopLevel = true;
                        };

                        this.Invoke(invx);
                        Adress3 = Mem.ReadMemory <int>(Adress2 + 12);
                        str     = Mem.ReadString(Mem.ReadMemory <int>(Mem.ReadMemory <int>(Adress3 + 4) + 12), 20);
                        Mem.ReadMemory <int>(Adress3);
                        Mem.ReadMemory <int>(Adress3 + 12);
                        Vector3 EnemyPos = Mem.ReadMemory <Vector3>(Adress3 + 16);

                        num4 = (double)Mem.ReadMemory <float>(Adress3 + 56);
                        num5 = (double)Mem.ReadMemory <float>(Adress3 + 60);
                        num6 = Mem.ReadMemory <int>(Mem.ReadMemory <int>(Mem.ReadMemory <int>(Mem.ReadMemory <int>(Adress3 + 256) + 20) + 152) + 8);
                        name = Mem.ReadMemory <int>(Mem.ReadMemory <int>(Mem.ReadMemory <int>(Mem.ReadMemory <int>(Adress3 + 34) + 0) + 0) + 0);

                        Player   = str.Contains("Avatar");
                        Bot      = str.Contains("Robot");
                        Vehicle  = str.Contains("Land");
                        Item     = str.Contains("DtsProp");
                        SuplyBox = str.Contains("DtsPlayerHeritage");
                        Plane    = str.Contains("Plane");
                        weapon   = str.Contains("ClientWeaponEntity");
                        Adress2  = Mem.ReadMemory <int>(Adress2);
                        Vector2 screen;
                        aa = (aimbot) ? 1 : 0;
                        n  = (Settings.NoClip) ? 1 : 0;
                        int nk = (nuke) ? 1 : 0;
                        a2 = (Settings.SmartHeight) ? 1 : 0;
                        string typee;
                        if (Scopes48)
                        {
                            typee = "8x and 4x";
                        }
                        else
                        {
                            typee = "Normal (2x , red dot, no scope)";
                        }
                        MethodInvoker inv3 = delegate
                        {
                            this.label3.Text = "Nuke: " + nk + " \nRange: " + range + " m \n" + "AIMBOT:" + aa + "\n" + "TYPE:" + typee + "\n NOCLIP: " + n + "\nSmartAim: " + a2 + " \n Height: " + height + "\n NoClip Speed: " + speed;
                        };
                        this.Invoke(inv3);

                        if (Settings.DEBUG)
                        {
                            Rectangle rect = new Rectangle((int)center.X - fov, ((int)center.Y) - fov, fov * 2, fov * 2);
                            drawnawbrudda.DrawEllipse(greenPen, rect);
                        }
                        if (Settings.NoClip)
                        {
                            Mem.WriteMemory <float>(num1 + 16, X);
                            Mem.WriteMemory <float>(num1 + 16 + 4, Y);
                            Mem.WriteMemory <float>(num1 + 16 + 8, Z);
                        }
                        if ((Maths.WorldToScreen(EnemyPos, out screen, this.Width, this.Height)))
                        {
                            if ((Player ? 1 : (!Bot ? 0 : ((uint)num6 > 0U ? 1 : 0))) != 0)
                            {
                                if (nuke)
                                {
                                    Mem.WriteMemory <Vector3>(Adress3 + 16, MyPosition);
                                }
                                if (Settings.ESP == true)
                                {
                                    if (Settings.PlayerESP && num6 != 0)
                                    {
                                        try
                                        {
                                            drawnawbrudda.DrawString("Player", this.font, Brushes.Red, screen.X, screen.Y - 20f);
                                            drawnawbrudda.DrawLine(Dpen, bottom, pointxx(screen));
                                        }
                                        catch (Exception)
                                        {
                                        }
                                    }


                                    if (Settings.PlayerHealth)
                                    {
                                        {
                                            drawnawbrudda.DrawString("[ " + (object)num6 + "HP ]", this.font, Brushes.Aqua, screen.X - 15f, screen.Y + 15f);
                                        }
                                    }


                                    if (Settings.PlayerDistance)
                                    {
                                        if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 100)
                                        {
                                            drawnawbrudda.DrawString("[ " + (object)Helper.GetDistance(MyPosition, EnemyPos, 10) + " Meter]", this.font, Brushes.White, screen.X - 10f, screen.Y + 30f);
                                        }
                                        else
                                        {
                                            drawnawbrudda.DrawString("[ " + (object)Helper.GetDistance(MyPosition, EnemyPos, 10) + " Meter]", this.font, Brushes.Red, screen.X - 10f, screen.Y + 30f);
                                        }
                                    }
                                }
                                dist = Helper.GetDistance(MyPosition, EnemyPos, 10);
                                if (dist < range && aimbot && num6 > 0 && (Maths.InsideCircle((int)center.X, (int)center.Y, fov, (int)screen.X, (int)screen.Y)))
                                {
                                    Vector2 aim;
                                    aim.X = screen.X + w;
                                    if (Settings.SmartHeight)
                                    {
                                        if (Scopes48)
                                        {
                                            if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 400)
                                            {
                                                height = -15;
                                                fov    = 50;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 350)
                                            {
                                                height = -15;
                                                fov    = 50;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 300)
                                            {
                                                height = -15;
                                                fov    = 50;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 250)
                                            {
                                                height = -18;
                                                fov    = 55;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 200)
                                            {
                                                height = -25;
                                                fov    = 60;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 150)
                                            {
                                                height = -35;
                                                fov    = 65;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 100)
                                            {
                                                height = -38;
                                                fov    = 70;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 50)
                                            {
                                                height = -40;
                                                fov    = 75;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 45)
                                            {
                                                height = -42;
                                                fov    = 85;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 40)
                                            {
                                                height = -45;
                                                fov    = 90;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 35)
                                            {
                                                height = -47;
                                                fov    = 100;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 30)
                                            {
                                                height = -60;
                                                fov    = 110;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 25)
                                            {
                                                height = -75;
                                                fov    = 120;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 20)
                                            {
                                                height = -100;
                                                fov    = 150;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 15)
                                            {
                                                height = -120;
                                                fov    = 200;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 10)
                                            {
                                                height = -150;
                                                fov    = 350;
                                            }
                                        }
                                        else
                                        {
                                            if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 400)
                                            {
                                                height = -11;
                                                fov    = 50;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 350)
                                            {
                                                height = +5;
                                                fov    = 50;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 300)
                                            {
                                                height = 0;
                                                fov    = 50;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 250)
                                            {
                                                height = 0;
                                                fov    = 55;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 220)
                                            {
                                                height = -6;
                                                fov    = 60;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 200)
                                            {
                                                height = -7;
                                                fov    = 60;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 160)
                                            {
                                                height = -10;
                                                fov    = 60;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 150)
                                            {
                                                height = -11;
                                                fov    = 65;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 100)
                                            {
                                                height = -12;
                                                fov    = 70;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 75)
                                            {
                                                height = -14;
                                                fov    = 70;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 50)
                                            {
                                                height = -25;
                                                fov    = 75;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 45)
                                            {
                                                height = -35;
                                                fov    = 85;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 40)
                                            {
                                                height = -38;
                                                fov    = 90;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 35)
                                            {
                                                height = -42;
                                                fov    = 100;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 30)
                                            {
                                                height = -45;
                                                fov    = 110;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 25)
                                            {
                                                height = -50;
                                                fov    = 120;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 20)
                                            {
                                                height = -100;
                                                fov    = 150;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 15)
                                            {
                                                height = -120;
                                                fov    = 200;
                                            }
                                            else if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 10)
                                            {
                                                height = -150;
                                                fov    = 350;
                                            }
                                        }
                                    }
                                    aim.Y = screen.Y + height;

                                    Cursor.Position = new Point((int)aim.X, (int)aim.Y);;
                                }
                            }
                            if (Bot && Settings.ESP == true)
                            {
                                if (nuke)
                                {
                                    Mem.WriteMemory <Vector3>(Adress3 + 16, MyPosition);
                                }
                                drawnawbrudda.DrawString("ROBOT", this.font, Brushes.Chartreuse, screen.X, screen.Y - 20f);
                                drawnawbrudda.DrawString("[ " + (object)Helper.GetDistance(MyPosition, EnemyPos, 10) + " Meter]", this.font, Brushes.Chartreuse, screen.X - 10f, screen.Y + 30f);
                                drawnawbrudda.DrawLine(new Pen((Brush) new SolidBrush(colour.newco)), bottom, pointxx(screen));
                            }

                            if (Item && Settings.ESP == true)
                            {
                                if (Settings.ItemESP)
                                {
                                    drawnawbrudda.DrawString("Item", this.font, Brushes.Green, screen.X - 10f, screen.Y);
                                }
                                if (Settings.ItemDistance)
                                {
                                    drawnawbrudda.DrawString("[ " + (object)Helper.GetDistance(MyPosition, EnemyPos, 10) + " Meter]", this.font, Brushes.White, screen.X - 10f, screen.Y + 15f);
                                }
                            }
                            if (weapon && Settings.ESP == true)
                            {
                                if (Settings.ItemESP)
                                {
                                    drawnawbrudda.DrawString("Weapon", this.font, Brushes.Blue, screen.X - 10f, screen.Y);
                                }
                                if (Settings.ItemDistance)
                                {
                                    drawnawbrudda.DrawString("[ " + (object)Helper.GetDistance(MyPosition, EnemyPos, 10) + " Meter]", this.font, Brushes.White, screen.X - 10f, screen.Y + 15f);
                                }
                            }

                            if (SuplyBox && Settings.ESP == true)
                            {
                                if (Settings.BodyESP)
                                {
                                    if (Helper.GetDistance(MyPosition, EnemyPos, 10) > 500)
                                    {
                                        drawnawbrudda.DrawString("SUPPLY BOX", this.font, Brushes.Pink, screen.X - 10f, screen.Y);
                                    }
                                }
                            }
                            if (Vehicle && Settings.ESP == true)
                            {
                                if (Settings.VehicleESP)
                                {
                                    drawnawbrudda.DrawString("Vehicle", this.font, Brushes.Gold, screen.X - 10f, screen.Y);
                                }
                                if (Settings.VehicleDistance)
                                {
                                    drawnawbrudda.DrawString("[ " + (object)Helper.GetDistance(MyPosition, EnemyPos, 10) + " Meter]", this.font, Brushes.White, screen.X - 10f, screen.Y + 15f);
                                }
                            }
                            if (Plane && Settings.ESP == true)
                            {
                                drawnawbrudda.DrawString("PLANE", this.font, Brushes.Chocolate, screen.X, screen.Y - 20f);
                            }
                        }
                    }
                    graphics.DrawImage((Image)bitmap, 0, 0);
                    Thread.Sleep(100);
                }
                catch (Exception e)
                {
                    MessageBox.Show("Crash Reason: " + e.Message);
                    Process.Start(Application.ExecutablePath);

                    //some time to start the new instance.
                    Thread.Sleep(2000);

                    Environment.Exit(-1);//Force termination of the current process.
                }
            }
        }