public static void EnableChams() { bool flag = !ESPOptions.ChamsEnabled; bool flag2 = !flag; if (flag2) { Color32 color = ColorUtilities.getColor("_ChamsFriendVisible"); Color32 color2 = ColorUtilities.getColor("_ChamsFriendInvisible"); Color32 color3 = ColorUtilities.getColor("_ChamsEnemyVisible"); Color32 color4 = ColorUtilities.getColor("_ChamsEnemyInvisible"); foreach (SteamPlayer steamPlayer in Provider.clients.ToArray()) { Color32 front = FriendUtilities.IsFriendly(steamPlayer.player) ? color : color3; Color32 behind = FriendUtilities.IsFriendly(steamPlayer.player) ? color2 : color4; Player player = steamPlayer.player; bool flag3 = player == null || player == OptimizationVariables.MainPlayer || player.gameObject == null || player.life == null || player.life.isDead; bool flag4 = !flag3; if (flag4) { GameObject gameObject = player.gameObject; ESPCoroutines.DoChamsGameObject(gameObject, front, behind); } } } }
// Token: 0x06000183 RID: 387 RVA: 0x00002B74 File Offset: 0x00000D74 public static IEnumerator DoChams() { DebugUtilities.Log("Starting Chams Coroutine"); for (;;) { bool flag = !DrawUtilities.ShouldRun() || ESPCoroutines.UnlitChams == null; bool flag2 = flag; if (flag2) { yield return(new WaitForSeconds(1f)); } else { try { bool chamsEnabled = ESPOptions.ChamsEnabled; bool flag3 = chamsEnabled; if (flag3) { ESPCoroutines.EnableChams(); } else { ESPCoroutines.DisableChams(); } } catch (Exception ex2) { Exception ex = ex2; Exception e = ex; Debug.LogException(e); e = null; } yield return(new WaitForSeconds(5f)); } } yield break; }