mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Prevent death animation spam
This commit is contained in:
1 parent
7e4609bf75
commit
6c8e214d73
1 file changed
+16
@@ -78,3 +78,19 @@ public class HudManagerPatch
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(KillOverlay))]
|
||||
public class KillOverlayPatch
|
||||
{
|
||||
[HarmonyPatch(nameof(KillOverlay.ShowKillAnimation))]
|
||||
[HarmonyPrefix]
|
||||
private static bool ShowKillAnimation_Prefix()
|
||||
{
|
||||
if (!PlayerControl.LocalPlayer.IsAlive())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user