Exemple #1
0
 private static void AutoShoot()
 {
     if (Target != null && AimbotOptions.AutoShoot)
     {
         if (!Main.LocalPlayer.IsInventoryOpened || Main.LocalPlayer.Weapon != null)
         {
             if (_nextShot < Time.time && RayCast.IsBodyPartVisible(Target.Player, 132))
             {
                 Main.LocalPlayer.GetComponent <Player.FirearmController>().SetTriggerPressed(true);
                 _nextShot = Time.time + 0.064f;
                 Main.LocalPlayer.GetComponent <Player.FirearmController>().SetTriggerPressed(false);
             }
         }
     }
 }