Пример #1
0
 // Token: 0x06000116 RID: 278 RVA: 0x0000B204 File Offset: 0x00009404
 public static void DrawAnimals()
 {
     try
     {
         if (Main.shouldDrawAnimals.GetData <bool>() && AnimalESP.smethod_0() != null)
         {
             foreach (BaseNpc baseNpc in AnimalESP.smethod_0())
             {
                 if (AnimalESP.smethod_1(baseNpc, null))
                 {
                     Vector3 a       = AnimalESP.smethod_3(AnimalESP.smethod_2(baseNpc));
                     Vector3 vector  = AnimalESP.smethod_4(MainCamera.mainCamera, AnimalESP.smethod_3(AnimalESP.smethod_2(baseNpc)));
                     Vector3 vector2 = MainCamera.mainCamera.WorldToScreenPoint(a + new Vector3(0f, 1f, 0f));
                     if (vector.z > 0f)
                     {
                         int num = (int)Vector3.Distance(LocalPlayer.Entity.transform.position, baseNpc.transform.position);
                         if ((float)num <= Main.Distance)
                         {
                             Mathf.Abs(vector.y - vector2.y);
                             vector.x += 3f;
                             vector.y  = (float)Screen.height - (vector.y + 1f);
                             Rendering.DrawString1(new Vector2(vector.x, vector.y - 10f), baseNpc.ShortPrefabName, Color.yellow, true, 10, FontStyle.Bold, 3);
                         }
                     }
                 }
             }
         }
     }
     catch (NullReferenceException)
     {
     }
 }
Пример #2
0
 // Token: 0x06000117 RID: 279 RVA: 0x0000B3A0 File Offset: 0x000095A0
 private void OnGUI()
 {
     try
     {
         AnimalESP.DrawAnimals();
     }
     catch
     {
     }
 }