public static void Postfix(PlayerControl __instance) { if (AmongUsClient.Instance.GameState != InnerNet.InnerNetClient.GameStates.Started) { return; } // Child and Morphling shrink playerSizeUpdate(__instance); if (PlayerControl.LocalPlayer == __instance) { // Update player outlines setBasePlayerOutlines(); // Update Role Description Helpers.refreshRoleDescription(__instance); // Update Player Info updatePlayerInfo(); // Time Master bendTimeUpdate(); // Morphling morphlingSetTarget(); // Medic medicSetTarget(); // Shifter shifterSetTarget(); // Sheriff sheriffSetTarget(); // Detective detectiveUpdateFootPrints(); // Tracker trackerSetTarget(); // Vampire vampireSetTarget(); Garlic.UpdateAll(); // Eraser eraserSetTarget(); // Engineer engineerUpdate(); // Tracker trackerUpdate(); // Jackal jackalSetTarget(); // Sidekick sidekickSetTarget(); // Impostor impostorSetTarget(); // Warlock warlockSetTarget(); // Check for sidekick promotion on Jackal disconnect sidekickCheckPromotion(); // SecurityGuard securityGuardSetTarget(); // Arsonist arsonistSetTarget(); } }
// Main Controls public static void resetVariables() { Garlic.clearGarlics(); clearAndReloadRoles(); clearGameHistory(); setCustomButtonCooldowns(); }
// Main Controls public static void resetVariables() { Garlic.clearGarlics(); JackInTheBox.clearJackInTheBoxes(); clearAndReloadMapOptions(); clearAndReloadRoles(); clearGameHistory(); setCustomButtonCooldowns(); }
public static void Postfix(PlayerControl __instance) { if (AmongUsClient.Instance.GameState != InnerNet.InnerNetClient.CJDCOJJNIGL.Started) { return; } // Update Role Description Helpers.refreshRoleDescription(__instance); // Child and Morphling shrink playerSizeUpdate(__instance); if (PlayerControl.LocalPlayer == __instance) { // Time Master bendTimeUpdate(); // Morphling morphlingSetTarget(); // Medic medicSetTarget(); // Shifter shifterSetTarget(); // Sheriff sheriffSetTarget(); // Detective detectiveUpdateFootPrints(); // Tracker trackerSetTarget(); // Vampire vampireSetTarget(); Garlic.UpdateAll(); // Eraser eraserSetTarget(); // Engineer engineerUpdate(); // Tracker trackerUpdate(); // Jackal jackalSetTarget(); // Sidekick sidekickSetTarget(); // Impostor impostorSetTarget(); } }
public static void Postfix(PlayerControl __instance) { if (AmongUsClient.Instance.GameState != InnerNet.InnerNetClient.GameStates.Started) { return; } if (PlayerControl.LocalPlayer == __instance) { // Time Master bendTimeUpdate(); // Morphling morphlingSetTarget(); // Medic medicSetTarget(); // Shifter shifterSetTarget(); // Sheriff sheriffSetTarget(); // Seer seerSetTarget(); // Detective detectiveSetFootPrints(); // Tracker trackerSetTarget(); // Vampire vampireSetTarget(); Garlic.UpdateAll(); // Engineer engineerUpdate(); // Tracker trackerUpdate(); // Jackal jackalSetTarget(); // Sidekick sidekickSetTarget(); } }