Exemplo n.º 1
0
        private void FixedUpdate()
        {
            try
            {
                if (Main.CanUpdate && Main.LocalPlayer.HandsController.Item is Weapon)
                {
                    if (AimbotOptions.SilentAim && NotHooked)
                    {
                        CreateShotHook = new TestHook();
                        CreateShotHook.Init(typeof(BallisticsCalculator).GetMethod("CreateShot"), typeof(HookObject).GetMethod("SilentAimHook"));
                        CreateShotHook.Hook();
                        NotHooked = false;
                    }

                    //Target = Main.Players.Where(p => p.DistanceFromCenter <= AimbotOptions.AimbotFov && p.Distance <= AimbotOptions.Distnace && p.IsOnScreen).OrderBy(p => p.DistanceFromCenter).First();
                    //if (Target.DistanceFromCenter > AimbotOptions.AimbotFov || !GameUtils.IsPlayerAlive(Target.Player))
                    //    Target = null;

                    Target = GetTarget();

                    DoAimbot();
                    AutoShoot();
                }
            }
            catch
            {
            }
        }
Exemplo n.º 2
0
 private void BulletPenetration()
 {
     if (MiscOptions.BulletPenetration && NotHooked && Main.LocalPlayer.HandsController.Item is Weapon)
     {
         BulletPenetrationHook = new TestHook();
         BulletPenetrationHook.Init(typeof(BallisticsCalculator).GetMethod("GetAmmoPenetrationPower"), typeof(HookObject).GetMethod("BulletPenetration"));
         BulletPenetrationHook.Hook();
         NotHooked = false;
     }
 }