// Token: 0x06000401 RID: 1025 RVA: 0x00019F14 File Offset: 0x00018114 public static void DrawBoneESP() { if (Main.Skeleton.GetData <bool>() && BoneESP.smethod_1(BoneESP.smethod_0(), null) && BoneESP.smethod_2() != null) { IEnumerator <BasePlayer> enumerator = BoneESP.smethod_2().GetEnumerator(); try { while (BoneESP.smethod_8(enumerator)) { BasePlayer basePlayer = enumerator.Current; int num = (int)Vector3.Distance(BoneESP.smethod_4(BoneESP.smethod_3(MainCamera.mainCamera)), BoneESP.smethod_4(BoneESP.smethod_3(basePlayer))); if (!BoneESP.smethod_5(basePlayer) || !BoneESP.smethod_1(basePlayer, null) || BoneESP.smethod_6(basePlayer) || !BoneESP.smethod_1(basePlayer.model, null) || !BoneESP.smethod_7(basePlayer)) { } } } finally { if (enumerator != null) { BoneESP.smethod_9(enumerator); } } } }
// Token: 0x06000402 RID: 1026 RVA: 0x00019FD8 File Offset: 0x000181D8 public static Vector3 W2SBone(Model model, string name) { Vector3 result = Vector3.zero; if (BoneESP.smethod_1(model, null)) { if (BoneESP.smethod_10(name, "headCenter")) { result = MainCamera.mainCamera.WorldToScreenPoint(new Vector3(BoneESP.smethod_4(model.headBone).x, BoneESP.smethod_4(model.eyeBone).y, BoneESP.smethod_4(model.headBone).z)); } else { result = MainCamera.mainCamera.WorldToScreenPoint(model.FindBone(name).position); } } return(result); }