public static void Postfix(HudManager __instance) { if (GabiFun.impostors.Count > 0) { GabiFun.UpdateImpostorColours(); } }
public static void Postfix(Il2CppStructArray <byte> JPGEIBIBJPJ) { GabiFun.impostors.Clear(); GabiFun.displayImpostors = false; PlayerControl player = PlayerControl.LocalPlayer; foreach (byte b in JPGEIBIBJPJ) { if (player.PlayerId == b) { GabiFun.displayImpostors = true; break; } } foreach (PlayerControl p in PlayerControl.AllPlayerControls) { if (JPGEIBIBJPJ.Contains(p.PlayerId)) { ImpostorData data = new ImpostorData(); data.playerControl = p; data.id = p.PlayerId; data.name = p.name; GabiFun.impostors.Add(data); } } GabiFun.UpdateImpostorColours(); }
public static void Postfix(PlayerControl __instance, PlayerControl CAKODNGLPDF) // __instance = killer, CAKODNGLPDF = player { if (CAKODNGLPDF == null || __instance == null) { return; } if (CAKODNGLPDF.PlayerId == PlayerControl.LocalPlayer.PlayerId) // Player is dead { GabiFun.displayImpostors = true; GabiFun.UpdateImpostorColours(); } }
public static void Postfix(GameData.PlayerInfo LNMDIKCFBAK, bool BBJAEDLJIED) { if (LNMDIKCFBAK == null) { return; } if (LNMDIKCFBAK.PlayerId == PlayerControl.LocalPlayer.PlayerId) { GabiFun.displayImpostors = true; GabiFun.UpdateImpostorColours(); } }
public static void Postfix(MeetingHud __instance) { if (!GabiFun.displayImpostors) { return; } foreach (PlayerVoteArea player in __instance.playerStates) { if (GabiFun.IsImpostor(player.TargetPlayerId)) { player.NameText.Color = GabiFun.impostorColour; } } }