public static void Postfix(MeetingHud __instance) { if (PlayerControlPatch.Metamorphs != null) { PlayerControl localPlayer = PlayerControl.LocalPlayer; if (PlayerControlPatch.IsMetamorph(localPlayer)) { HudManagerPatch.MorphButton.StartCooldown(HudManagerPatch.MorphButton.CooldownDuration + 8.0f); } } }
public void FixedUpdate() { if (PlayerControl.AllPlayerControls.Count > 1) { if (isAlive()) { if (playerControl.POECPOEKKNO) { PlayerControl closestPlayer = FindClosestTarget(PlayerControl.LocalPlayer); Metamorph outMetamorph = null; if (closestPlayer != null && !PlayerControlPatch.IsMetamorph(closestPlayer.PlayerId, out outMetamorph)) { lastPlayerContact = closestPlayer; } } } } }
public void FixedUpdate() { if (PlayerControl.AllPlayerControls.Count > 1) { if (PlayerId == PlayerControl.LocalPlayer.PlayerId) { if (isAlive()) { if (playerControl.MPEOHLJNPOB) { PlayerControl closestPlayer = FindClosestTarget(PlayerControl.LocalPlayer); if (closestPlayer != null && !PlayerControlPatch.IsMetamorph(closestPlayer)) { lastPlayerContact = closestPlayer; } } } } } }