Exemple #1
0
 private void AutoAim(EntityAnimal target)
 {
     if (target != null)
     {
         Vector3 targetHead = target.emodel.GetHeadTransform().position;
         if (target.IsAlive() && Vector3.Distance(cam.transform.position, targetHead) <= espRange && Vector3.Angle(cam.transform.forward, targetHead - cam.transform.position) < cam.fieldOfView)
         {
             Vector3 targetHeadPOS_w2s = cam.WorldToScreenPoint(targetHead);
             if (new Regex("7 Days").IsMatch(Win32.GetActiveWindowTitle()))
             {
                 MoveMouse((int)Math.Round(targetHeadPOS_w2s.x), (int)(Screen.height - Math.Round(targetHeadPOS_w2s.y)));
                 //fpCam.Yaw = CalculateYaw(target);
                 //fpCam.Pitch = CalculatePitch(target);
             }
         }
     }
 }