Example #1
0
 void subscribeHacks()
 {
     _cycles["wallhack"]     = new WallHack(this);
     _cycles["aimbot"]       = new Aimbot(this);
     _cycles["cameraUnlock"] = new CameraUnlock(this);
     _cycles["gui"]          = new Overlay(this);
 }
 private static void AimbotThread()
 {
     while (true)
     {
         Aimbot.Run();
         Thread.Sleep(1);
     }
 }
Example #3
0
 private static void AimbotLoop()
 {
     while (Memory.IsProcessRunning)
     {
         Thread.Sleep(1);
         Aimbot.Run();
     }
 }
Example #4
0
    private void OnGUI()
    {
        try {
            if (!Settings.enableHack)
            {
                return;
            }

            RenderDebug();

            if (Settings.showMenu)
            {
                Menu.Render();
            }

            if (LocalPlayer.Entity == null)
            {
                return;
            }

            Misc.SuperJump();

            Misc.SpeedHack();

            if (Settings.toggleAimbot && Input.GetKey(Settings.aimbotKey))
            {
                Aimbot.Aim();
            }

            if (Settings.togglePlayers || Settings.toggleSleepers)
            {
                ESP.Players();
            }

            if (Settings.toggleResources)
            {
                ESP.Resources();
            }

            if (Settings.toggleAnimals)
            {
                ESP.Animals();
            }

            if (Settings.toggleLoot)
            {
                ESP.Loot();
            }

            if (Settings.toggleCrosshair)
            {
                Misc.Crosshair();
            }
        } catch {
            Debug.LogError("Error_2");
        }
    }
Example #5
0
 private void cbMonitor_SelectedIndexChanged(object sender, EventArgs e)
 {
     SettingsManager.General.GameMonitor = cbMonitor.SelectedIndex;
     aimbot     = new Aimbot();
     anabot     = new Anabot();
     triggerbot = new Triggerbot();
     widowbot   = new Widowbot();
     GrabScreenResolution();
 }
Example #6
0
        private static void Aimbot()
        {
            Aimbot aim = new Aimbot();

            while (true)
            {
                aim.Start();
                Thread.Sleep(1);
            }
        }
Example #7
0
        public void Start()
        {
            settings = Settings.ReadSettings();
            var nNet = NeuralNet.Create(settings.Game);

            gp = GameProcess.Create(settings);
            if (nNet == null)
            {
                return;
            }
            var ab = new Aimbot(settings, nNet);

            ab.Start();
        }
Example #8
0
 // Token: 0x06000272 RID: 626 RVA: 0x0000DDE8 File Offset: 0x0000BFE8
 public static void AddFriend()
 {
     if (FriendManager.smethod_1(FriendManager.smethod_0(), null))
     {
         BasePlayer target = Aimbot.GetTarget();
         if (FriendManager.smethod_1(target, null))
         {
             if (!FriendManager.friendsList.Contains(target.userID))
             {
                 FriendManager.friendsList.Add(target.userID);
             }
             else
             {
                 FriendManager.friendsList.Remove(target.userID);
             }
         }
     }
 }
Example #9
0
        //public static Bsp Bsp;
        //private static string serverMap = "de_dust2";

        public static void Attach(Process process, bool isInjected = false)
        {
            if (_isAttached)
            {
                return;
            }

            if (isInjected)
            {
                Memory = new LocalProcessMemory(process);
            }
            else
            {
                Memory = new ExternalProcessMemory(process);
            }

            Thread.Sleep(2000);
            ClientBase    = Memory.GetModule("client.dll").BaseAddress;
            EngineBase    = Memory.GetModule("engine.dll").BaseAddress;
            ClientState   = Memory.Read <int>(EngineBase + Offsets.ClientState.Base);
            Objects       = new ObjectManager(ClientBase + Offsets.Misc.EntityList);
            ControlRecoil = new Rcs();
            TriggerBot    = new TriggerBot();
            KeyUtils      = new KeyUtils();
            BunnyJump     = new BunnyJump();
            Settings      = new Settings();
            SoundEsp      = new SoundEsp();
            Radar         = new Radar();
            NoFlash       = new NoFlash();
            AutoPistol    = new AutoPistol();
            Aimbot        = new Aimbot();
            Glow          = new Glow();

            var enginePtr = Memory.Read <IntPtr>(EngineBase + Offsets.ClientState.Base);

            if (enginePtr == IntPtr.Zero)
            {
                throw new Exception("Couldn't find Engine Ptr - are you sure your offsets are up to date?");
            }

            Client      = new GameClient(enginePtr);
            _isAttached = true;
            //LoadMap();
        }
Example #10
0
        public FrmMain()
        {
            InitializeComponent();

            SettingsManager.LoadSettingsFromDefaultPath();

            aimbot     = new Aimbot();
            anabot     = new Anabot();
            triggerbot = new Triggerbot();
            widowbot   = new Widowbot();

            GrabScreenResolution();

            UpdateUserInterface();
            RandomiseWindowTitle();

            m_Events = Hook.GlobalEvents();

            m_Events.KeyDown += OnKeyDown;
            m_Events.KeyUp   += OnKeyUp;

            m_Events.MouseDown += OnMouseDown;
            m_Events.MouseUp   += OnMouseUp;
        }
Example #11
0
        public static bool Prefix(UseableGun __instance, ref List <BulletInfo> ___bullets, ref int ___hitmarkerIndex, ref ParticleSystem ___tracerEmitter,
                                  ref Attachments ___thirdAttachments)
        {
            if (Global.AllOff || Hooks.askScreenshot.NeedingSpy)
            {
                ___tracerEmitter.startColor = Color.gray;
                return(true);
            }
            if (!Global.AimEnabled || (Global.AimSettings.RageBot && RageBot.FocusTarget != null && !Global.AimSettings.RBypassOne))
            {
                return(true);
            }

            if ((__instance.equippedGunAsset.projectile == null) && (___bullets != null))
            {
                if (__instance.channel.isOwner)
                {
                    RaycastInfo info2 = null;
                    float       dst   = 0f;

                    if (Global.AimSettings.RageBot)
                    {
                        if (RageBot.FocusTarget != null)
                        {
                            Vector3 AimAt = Aimbot.GetHitbox(RageBot.FocusTarget.player.transform, "Skull");

                            if (AimAt == Vector3.zero || RageBot.FocusTarget.player.stance.prone)
                            {
                                AimAt = RageBot.FocusTarget.player.transform.position + new Vector3(0, 0.005f, 0);
                            }

                            Ray prx = new Ray(Player.player.look.aim.position, (AimAt - Player.player.look.aim.position).normalized);
                            dst   = Vector3.Distance(AimAt, Player.player.look.aim.position);
                            info2 = DamageTool.raycast(prx,
                                                       dst,
                                                       RayMasks.ENEMY,
                                                       Player.player);
                        }
                    }


                    for (int i = 0; i < ___bullets.Count; i++)
                    {
                        BulletInfo info = ___bullets[i];
                        if (Global.AimSettings.RageBot && RageBot.FocusTarget != null && info2 != null && info2.player == RageBot.FocusTarget.player)
                        {
                            if (!((info.steps * __instance.equippedGunAsset.ballisticTravel) < dst))
                            {
                                Player.player.input.sendRaycast(info2);
                                Player.player.input.sendRaycast(info2);
                                info.steps = 254;
                                goto prx;
                            }
                        }

                        byte pellets = info.magazineAsset.pellets;
                        if (__instance.channel.isOwner)
                        {
                            EPlayerHit nONE = EPlayerHit.NONE;
                            if (pellets > 1)
                            {
                                ___hitmarkerIndex = info.pellet;
                            }
                            else if (OptionsSettings.hitmarker)
                            {
                                ___hitmarkerIndex++;
                                if (___hitmarkerIndex >= PlayerLifeUI.hitmarkers.Length)
                                {
                                    ___hitmarkerIndex = 0;
                                }
                            }
                            else
                            {
                                ___hitmarkerIndex = 0;
                            }

                            Ray ray = new Ray(info.pos, info.dir);
                            if (info2 == null)
                            {
                                info2 = DamageTool.raycast(ray,
                                                           !Provider.modeConfigData.Gameplay.Ballistics ? __instance.equippedGunAsset.range : __instance.equippedGunAsset.ballisticTravel,
                                                           RayMasks.DAMAGE_CLIENT,
                                                           __instance.player);
                            }

                            if (((info2.player != null) && (__instance.equippedGunAsset.playerDamageMultiplier.damage > 1f)) && (!__instance.player.quests.isMemberOfSameGroupAs(info2.player) && Provider.isPvP))
                            {
                                if (nONE != EPlayerHit.CRITICAL)
                                {
                                    nONE = (info2.limb != ELimb.SKULL) ? EPlayerHit.ENTITIY : EPlayerHit.CRITICAL;
                                }
                                PlayerUI.hitmark(___hitmarkerIndex, info2.point, pellets > 1, (info2.limb != ELimb.SKULL) ? EPlayerHit.ENTITIY : EPlayerHit.CRITICAL);
                            }
                            else if (((info2.zombie != null) && (__instance.equippedGunAsset.zombieDamageMultiplier.damage > 1f)) || ((info2.animal != null) && (__instance.equippedGunAsset.animalDamageMultiplier.damage > 1f)))
                            {
                                if (nONE != EPlayerHit.CRITICAL)
                                {
                                    nONE = (info2.limb != ELimb.SKULL) ? EPlayerHit.ENTITIY : EPlayerHit.CRITICAL;
                                }
                                PlayerUI.hitmark(___hitmarkerIndex, info2.point, pellets > 1, (info2.limb != ELimb.SKULL) ? EPlayerHit.ENTITIY : EPlayerHit.CRITICAL);
                            }
                            else if (((info2.transform != null) && info2.transform.CompareTag("Barricade")) && (__instance.equippedGunAsset.barricadeDamage > 1f))
                            {
                                ushort num3;
                                if (ushort.TryParse(info2.transform.name, NumberStyles.Any, CultureInfo.InvariantCulture, out num3))
                                {
                                    ItemBarricadeAsset asset = (ItemBarricadeAsset)Assets.find(EAssetType.ITEM, num3);
                                    if ((asset != null) && (asset.isVulnerable || ((ItemWeaponAsset)__instance.player.equipment.asset).isInvulnerable))
                                    {
                                        if (nONE == EPlayerHit.NONE)
                                        {
                                            nONE = EPlayerHit.BUILD;
                                        }
                                        PlayerUI.hitmark(___hitmarkerIndex, info2.point, pellets > 1, EPlayerHit.BUILD);
                                    }
                                }
                            }
                            else if (((info2.transform != null) && info2.transform.CompareTag("Structure")) && (__instance.equippedGunAsset.structureDamage > 1f))
                            {
                                ushort num4;
                                if (ushort.TryParse(info2.transform.name, NumberStyles.Any, CultureInfo.InvariantCulture, out num4))
                                {
                                    ItemStructureAsset asset2 = (ItemStructureAsset)Assets.find(EAssetType.ITEM, num4);
                                    if ((asset2 != null) && (asset2.isVulnerable || ((ItemWeaponAsset)__instance.player.equipment.asset).isInvulnerable))
                                    {
                                        if (nONE == EPlayerHit.NONE)
                                        {
                                            nONE = EPlayerHit.BUILD;
                                        }
                                        PlayerUI.hitmark(___hitmarkerIndex, info2.point, pellets > 1, EPlayerHit.BUILD);
                                    }
                                }
                            }
                            else if (((info2.vehicle != null) && !info2.vehicle.isDead) && (__instance.equippedGunAsset.vehicleDamage > 1f))
                            {
                                if (((info2.vehicle.asset != null) && info2.vehicle.canBeDamaged) && (info2.vehicle.asset.isVulnerable || ((ItemWeaponAsset)__instance.player.equipment.asset).isInvulnerable))
                                {
                                    if (nONE == EPlayerHit.NONE)
                                    {
                                        nONE = EPlayerHit.BUILD;
                                    }
                                    PlayerUI.hitmark(___hitmarkerIndex, info2.point, pellets > 1, EPlayerHit.BUILD);
                                }
                            }
                            else if (((info2.transform != null) && info2.transform.CompareTag("Resource")) && (__instance.equippedGunAsset.resourceDamage > 1f))
                            {
                                byte   num5;
                                byte   num6;
                                ushort num7;
                                if (ResourceManager.tryGetRegion(info2.transform, out num5, out num6, out num7))
                                {
                                    ResourceSpawnpoint spawnpoint = ResourceManager.getResourceSpawnpoint(num5, num6, num7);
                                    if (((spawnpoint != null) && !spawnpoint.isDead) && (spawnpoint.asset.bladeID == ((ItemWeaponAsset)__instance.player.equipment.asset).bladeID))
                                    {
                                        if (nONE == EPlayerHit.NONE)
                                        {
                                            nONE = EPlayerHit.BUILD;
                                        }
                                        PlayerUI.hitmark(___hitmarkerIndex, info2.point, pellets > 1, EPlayerHit.BUILD);
                                    }
                                }
                            }
                            else if ((info2.transform != null) && (__instance.equippedGunAsset.objectDamage > 1f))
                            {
                                InteractableObjectRubble componentInParent = info2.transform.GetComponentInParent <InteractableObjectRubble>();
                                if (componentInParent != null)
                                {
                                    info2.transform = componentInParent.transform;
                                    info2.section   = componentInParent.getSection(info2.collider.transform);
                                    if (!componentInParent.isSectionDead(info2.section) && (componentInParent.asset.rubbleIsVulnerable || ((ItemWeaponAsset)__instance.player.equipment.asset).isInvulnerable))
                                    {
                                        if (nONE == EPlayerHit.NONE)
                                        {
                                            nONE = EPlayerHit.BUILD;
                                        }
                                        PlayerUI.hitmark(___hitmarkerIndex, info2.point, pellets > 1, EPlayerHit.BUILD);
                                    }
                                }
                            }



                            if (Provider.modeConfigData.Gameplay.Ballistics)
                            {
                                if ((info.steps > 0) || (__instance.equippedGunAsset.ballisticSteps <= 1))
                                {
                                    if (__instance.equippedGunAsset.ballisticTravel < 32f)
                                    {
                                        trace(info.pos + ((Vector3)(info.dir * 32f)), info.dir, ref ___tracerEmitter, ref __instance, ref ___thirdAttachments);
                                    }
                                    else
                                    {
                                        trace(info.pos + ((Vector3)(info.dir * UnityEngine.Random.Range(32f, __instance.equippedGunAsset.ballisticTravel))), info.dir, ref ___tracerEmitter, ref __instance, ref ___thirdAttachments);
                                    }
                                }
                            }
                            else if (__instance.equippedGunAsset.range < 32f)
                            {
                                trace(ray.origin + ((Vector3)(ray.direction * 32f)), ray.direction, ref ___tracerEmitter, ref __instance, ref ___thirdAttachments);
                            }
                            else
                            {
                                trace(ray.origin + ((Vector3)(ray.direction * UnityEngine.Random.Range(32f, Mathf.Min(64f, __instance.equippedGunAsset.range)))), ray.direction, ref ___tracerEmitter, ref __instance, ref ___thirdAttachments);
                            }

                            float ballisticDrop = __instance.equippedGunAsset.ballisticDrop;
                            if (info.barrelAsset != null)
                            {
                                ballisticDrop *= info.barrelAsset.ballisticDrop;
                            }

                            info.pos += (Vector3)(info.dir * __instance.equippedGunAsset.ballisticTravel);
                            if (!Global.AimSettings.RageBot)
                            {
                                if (!Global.AimSettings.NoDrop)
                                {
                                    info.dir.y -= ballisticDrop;
                                }
                            }

                            info.dir.Normalize();

                            if (Global.AimSettings.RageBot && RageBot.FocusTarget != null)
                            {
                                goto prx;
                            }

                            if (!__instance.player.input.isRaycastInvalid(info2))
                            {
                                if (nONE != EPlayerHit.NONE)
                                {
                                    int num9;
                                    if (Provider.provider.statisticsService.userStatisticsService.getStatistic("Accuracy_Hit", out num9))
                                    {
                                        Provider.provider.statisticsService.userStatisticsService.setStatistic("Accuracy_Hit", (int)(num9 + 1));
                                    }
                                    if ((nONE == EPlayerHit.CRITICAL) && Provider.provider.statisticsService.userStatisticsService.getStatistic("Headshots", out num9))
                                    {
                                        Provider.provider.statisticsService.userStatisticsService.setStatistic("Headshots", (int)(num9 + 1));
                                    }
                                }
                                __instance.player.input.sendRaycast(info2);
                                info.steps = 0xfe;
                            }
                        }
                    }
                }

prx:
                if (__instance.player.equipment.asset != null)
                {
                    if (Provider.modeConfigData.Gameplay.Ballistics)
                    {
                        for (int k = ___bullets.Count - 1; k >= 0; k--)
                        {
                            BulletInfo info5 = ___bullets[k];
                            info5.steps = (byte)(info5.steps + 1);
                            if (info5.steps >= __instance.equippedGunAsset.ballisticSteps)
                            {
                                ___bullets.RemoveAt(k);
                            }
                        }
                    }
                    else
                    {
                        ___bullets.Clear();
                    }
                }
            }
            return(false);
        }
Example #12
0
        /// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args"></param>
        private static void Main(string[] args)
        {
            // Set the title of the window.
            Console.Title = "Dropbox";

            LogInfo("Initializing settings.");
            var settingsManager = new SettingsManager();

            settingsManager.LoadSettingsFromDefaultPath();
            LogInfo("Settings loaded successfully.");

            var MouseProxy = new MouseProxy();

            MouseHelper.Proxy = MouseProxy;

            // Start the aimbot.
            var aimbot     = new Aimbot();
            var triggerbot = new Triggerbot();
            var widowbot   = new Widowbot();
            var anabot     = new Anabot();
            var drawhelper = new DrawHelper(aimbot); // aimbot default


            LogInfo("Initialization complete. If you're lost, type help in this console.");

            new Thread(delegate()
            {
                while (true)
                {
                    var commandArgs = Console.ReadLine()?.ToLower().Split(' ').ToList();

                    if (commandArgs == null)
                    {
                        continue;
                    }

                    var commandRoot = commandArgs[0];
                    commandArgs.RemoveAt(0);

                    switch (commandRoot)
                    {
                    case "close":
                        MouseProxy.Close();
                        Process.GetCurrentProcess().Close();
                        break;

                    case "aimbot":
                    case "aim":
                        aimbot.HandleCommand(commandArgs);
                        break;

                    case "anabot":
                    case "ana":
                        anabot.HandleCommand(commandArgs);
                        break;

                    case "widowbot":
                    case "widow":
                        widowbot.HandleCommand(commandArgs);
                        break;

                    case "triggerbot":
                    case "trigger":
                        triggerbot.HandleCommand(commandArgs);
                        break;

                    case "settings":
                        settingsManager.HandleCommand(commandArgs);
                        break;

                    case "help":
                        LogInfo("\nSoftware written by syscall78 and updated by Roast.\nIf you paid money for this, you've been scammed!\n\n" +
                                "Available commands:\n" +
                                "aimbot, aim\t\t- Send commands to aimbot\n" +
                                "anabot, ana\t\t- Send commands to anabot\n" +
                                "widowbot, widow\t\t- Send commands to widowbot\n" +
                                "triggerbot, trigger\t- Send commands to triggerbot\n" +
                                "settings\t\t- Send commands to settings manager\n" +
                                "clear, cls\t\t- Clear the console window\n" +
                                "help\t\t\t- Print this text again.\n");
                        break;

                    case "clear":
                    case "cls":
                        Console.Clear();
                        break;

                    default:
                        LogError($"No command matching '{commandRoot}', please enter a valid command or type 'help'.");
                        break;
                    }
                }
            }).Start();

            while (true)
            {
                // Register keypresses here.
                if (MouseHelper.GetAsyncKeyState(0x71) < 0) // Numpad1
                {
                    SettingsManager.Aimbot.ForceHeadshot = !SettingsManager.Aimbot.ForceHeadshot;
                    LogInfo($"Force headshot: { SettingsManager.Aimbot.ForceHeadshot}");

                    // MouseHelper.keybd_event(0x61, 0, 0x2, 0);
                    Thread.Sleep(200);
                }

                // toggle Fov box
                if (MouseHelper.GetAsyncKeyState(0x70) < 0) // Numpad2
                {
                    drawhelper.ToggleFov();
                    // MouseHelper.keybd_event(0x62, 0, 0x2, 0);
                    Thread.Sleep(200);
                }

                Thread.Sleep(1);
            }
        }
Example #13
0
        public static void OnDeviceDraw()
        {
            if (Utils.IsGameOnDisplay())
            {
                //When ~ key is pressed...
                DrawMenu();
                Aimbot.BeginFrame();
                List <List <AActor> > actors = Main.actors;
                if (actors == null)
                {
                    return;
                }
                if (DrawingProperties["DrawPlayers"])
                {
                    for (int i = 0; i < actors[0].Count; i++)
                    {
                        AActor actor = actors[0][i];
                        if (actor.TeamID != Main.localPawn.TeamID && actor.PlayerName.ToString() != Main.localPawn.PlayerName.ToString() && Main.localPawn.IsPlayer)
                        {
                            Aimbot.EvaluateTarget(actor);
                            if (DrawingProperties["DrawSkelton"])
                            {
                                ESP.DrawSkelton(actor, ScreenSize, SkeltonColor);
                            }
                            if (DrawingProperties["Draw2dBox"])
                            {
                                ESP.DrawBox(actors[0][i], ScreenSize, BoxColor);
                            }
                            if (DrawingProperties["Draw3dBox"])
                            {
                                ESP.DrawBox3d(actors[0][i], ScreenSize, BoxColor);
                            }
                            ESP.DrawPlayerDetils(actors[0][i], ScreenSize, BoxColor);
                        }
                    }
                }
                if (DrawingProperties["DrawCrosshair"])
                {
                    int   crosshairtype = 0;
                    float CenterX       = ScreenSize.X / 2;
                    float CenterY       = ScreenSize.Y / 2;
                    switch (crosshairtype)
                    {
                    case 0:

                        DrawFactory.DrawFilledBox(CenterX - 20, CenterY, 40, 1, Color.Purple); //Purple
                        DrawFactory.DrawFilledBox(CenterX, CenterY - 20, 1, 40, Color.Purple);
                        DrawFactory.DrawFilledBox(CenterX - 17, CenterY, 34, 1, Color.Blue);   //Blue
                        DrawFactory.DrawFilledBox(CenterX, CenterY - 17, 1, 34, Color.Blue);
                        DrawFactory.DrawFilledBox(CenterX - 14, CenterY, 28, 1, Color.Cyan);   //Cyan
                        DrawFactory.DrawFilledBox(CenterX, CenterY - 14, 1, 28, Color.Cyan);
                        DrawFactory.DrawFilledBox(CenterX - 11, CenterY, 22, 1, Color.Green);  //Green
                        DrawFactory.DrawFilledBox(CenterX, CenterY - 11, 1, 22, Color.Green);
                        DrawFactory.DrawFilledBox(CenterX - 9, CenterY, 18, 1, Color.Yellow);  //Yellow
                        DrawFactory.DrawFilledBox(CenterX, CenterY - 9, 1, 18, Color.Yellow);
                        DrawFactory.DrawFilledBox(CenterX - 6, CenterY, 12, 1, Color.Orange);  //Orange
                        DrawFactory.DrawFilledBox(CenterX, CenterY - 6, 1, 12, Color.Orange);
                        DrawFactory.DrawFilledBox(CenterX - 3, CenterY, 6, 1, Color.Red);      //Red
                        DrawFactory.DrawFilledBox(CenterX, CenterY - 3, 1, 6, Color.Red);
                        break;

                    case 1:
                        DrawFactory.DrawCircle((int)CenterX, (int)CenterY, 8, 50, Color.Red); //Circle
                        DrawFactory.DrawFilledBox(CenterX - 17, CenterY, 10, 1, Color.Red);   //Left line
                        DrawFactory.DrawFilledBox(CenterX + 9, CenterY, 10, 1, Color.Red);    // Right line
                        DrawFactory.DrawFilledBox(CenterX, CenterY - 17, 1, 10, Color.Red);   //Top line
                        DrawFactory.DrawFilledBox(CenterX, CenterY + 9, 1, 10, Color.Red);    //Bottom line
                        DrawFactory.DrawPoint(CenterX, CenterY, Color.Green);                 //Dot point
                        break;
                    }
                }
                if (DrawingProperties["DrawFOV"])
                {
                    float CenterX = ScreenSize.X / 2;
                    float CenterY = ScreenSize.Y / 2;
                    DrawFactory.DrawCircle((int)CenterX, (int)CenterY, FOV, 50, Color.Black);
                }
                if (DrawingProperties["DrawLoot"])
                {
                    for (int i = 0; i < actors[1].Count; i++)
                    {
                        AActor actor = actors[1][i];

                        ESP.DrawItem(actor, ScreenSize);
                    }
                }
                if (DrawingProperties["DrawVehicle"])
                {
                    for (int i = 0; i < actors[2].Count; i++)
                    {
                        AActor actor = actors[2][i];
                        ESP.DrawVehicle(actor, ScreenSize);
                    }
                }
                if (DrawingProperties["Aimbot"] || DrawingProperties["MagicBullet"])
                {
                    Vector2 feetScreenLocation = Main.cameraManager.WorldToScreen(Aimbot.bestActor.GetBoneLocation(0), ScreenSize);
                    Vector3 Headd = Aimbot.bestActor.GetBoneLocation(6);
                    Headd.Z += 30;
                    Vector2 headScreenLocation = Main.cameraManager.WorldToScreen(Headd, ScreenSize);
                    float   xHeight            = feetScreenLocation.Y - headScreenLocation.Y;
                    float   xWidth             = xHeight / 2.5f;
                    Vector2 headw2s            = Main.cameraManager.WorldToScreen(Aimbot.bestActor.GetBoneLocation(6), ScreenSize);
                    DrawFactory.DrawCircle((int)headw2s.X, (int)headw2s.Y, xWidth / 6, 50, SkeltonColor);
                    if (Utils.IsKeyPressed(Keys.RButton) || Utils.IsKeyPressed(Keys.LButton))
                    {
                        Aimbot.AimToTarget();
                    }
                }
            }
        }
        private static void MainThread()
        {
            if (Modules.IsModuleRunning(Modules.ClientDLLName))
            {
                AimBotController Aim = new AimBotController();
                while (true)
                {
                    if (CLocalPlayer.IsPlaying)
                    {
                        for (int i = 0; i <= EngineClient.MaxPlayer; i++)
                        {
                            int EntBase = CylMem.ReadInt(Modules.ClientDLLAdress + Offsets.signatures.dwEntityList + i * 0x10);
                            if (EntBase == 0)
                            {
                                continue;
                            }
                            if (CEntityPlayer.isDormant(EntBase))
                            {
                                continue;
                            }
                            if (CEntityPlayer.isDead(EntBase))
                            {
                                continue;
                            }
                            if (CEntityPlayer.Team(EntBase) == Teams.NONE || CEntityPlayer.Team(EntBase) == Teams.SPECTATOR)
                            {
                                continue;
                            }
                            if (CEntityPlayer.WeaponName(EntBase) == "NONE")
                            {
                                continue;
                            }
                            Aimbot.ConfigureAimbot(EntBase, Aim);
                            GlowESP.RunGlowESPPanorama(EntBase);
                            Chams.RunChamsPanorama(EntBase);
                            EngineRadar.RunRadarPanorama(EntBase);
                        }
                        BunnyHop.RunBunnyHopPanorama();
                        AutoPistol.RunAutoPistolPanorama();
                        Triggerbot.RunTriggerBotPanorama();
                        NoFlash.RunNoFlashPanorama();
                        NoHands.RunNoHandsPanorama();
                        DamageIndicator.RunDamageIndicatorPanorama();
                        RemoveScope.RunRemoveScopePanorama();
                        ViewModelFOV.RunViewModelFOV();
                        RecoilControlSystem.RunRCSPanorama();
                        GrenadeTrajectory.RunGPRJPanorama();
                        NoSmoke.RunNoSmokePanorama();
                        Aimbot.RunAimbotPanorama(Aim);

                        #region Performance Settings
                        if (CheatPerf == PerformanceTimes.VHIGH)
                        {
                        }
                        else
                        {
                            Thread.Sleep((int)CheatPerf);
                        }
                        #endregion
                    }
                }
            }
        }
Example #15
0
 public void Update([PexAssumeUnderTest] Aimbot target)
 {
     target.Update();
     // TODO: add assertions to method AimbotTest.Update(Aimbot)
 }