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 Ghost Info updateGhostInfo(); // 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(); } }
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(); } }