Beispiel #1
0
 // Token: 0x060001F4 RID: 500 RVA: 0x0000D244 File Offset: 0x0000B444
 private void OnGUI()
 {
     try
     {
         CupboardESP.DrawCupboards();
     }
     catch
     {
     }
 }
Beispiel #2
0
 // Token: 0x060001F3 RID: 499 RVA: 0x0000CFD4 File Offset: 0x0000B1D4
 public static void DrawCupboards()
 {
     try
     {
         if (Entities.tcshit != null)
         {
             foreach (BuildingPrivlidge buildingPrivlidge in Entities.tcshit)
             {
                 if (CupboardESP.smethod_0(buildingPrivlidge, null))
                 {
                     Vector3 a       = CupboardESP.smethod_2(CupboardESP.smethod_1(buildingPrivlidge));
                     Vector3 vector  = CupboardESP.smethod_3(MainCamera.mainCamera, CupboardESP.smethod_2(CupboardESP.smethod_1(buildingPrivlidge)));
                     Vector3 vector2 = MainCamera.mainCamera.WorldToScreenPoint(a + new Vector3(0f, 1f, 0f));
                     Vector3 vector3 = MainCamera.mainCamera.WorldToScreenPoint(a + new Vector3(0f, 1.7f, 0f));
                     if (vector.z > 0f)
                     {
                         int num = (int)Vector3.Distance(LocalPlayer.Entity.transform.position, buildingPrivlidge.transform.position);
                         if ((float)num <= Main.Distance)
                         {
                             Mathf.Abs(vector.y - vector2.y);
                             vector.x += 3f;
                             vector.y  = (float)Screen.height - (vector.y + 1f);
                             if (Main.shouldDrawCupboards.GetData <bool>())
                             {
                                 Rendering.DrawString1(new Vector2(vector.x, vector.y - 10f), buildingPrivlidge.ShortPrefabName, Color.yellow, true, 10, FontStyle.Bold, 3);
                             }
                             if (Main.authlist.GetData <bool>() && vector3.z > 0f)
                             {
                                 vector3.x += 3f;
                                 vector3.y  = (float)Screen.height - (vector3.y + 1f);
                                 List <PlayerNameID> list = new List <PlayerNameID>();
                                 list = buildingPrivlidge.authorizedPlayers;
                                 for (int i = 0; i < list.Count; i++)
                                 {
                                     Rendering.DrawString(new Vector2(vector3.x, vector3.y - (float)(i + 1) * 15f), list[i].username, Color.yellow, true, 12, false, 1);
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     catch
     {
     }
 }