Revert "TEST ME: remove PlayerCrushedController_CrushPlayer patch"

This reverts commit e9251498cc0690e1b55f13b4b602fae763ed915c.
This commit is contained in:
JohnCorby 2022-03-29 14:09:18 -07:00
parent c7ff9f5e86
commit ce6916635f

View File

@ -10,6 +10,21 @@ internal class PlayerPatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
/// <summary>
/// this usually does a bunch of extra stuff before crushing the player.
/// it's too much effort to revert all that when respawning.
/// so we just don't do the extra stuff.
/// </summary>
[HarmonyPrefix]
[HarmonyPatch(typeof(PlayerCrushedController), nameof(PlayerCrushedController.CrushPlayer))]
public static bool PlayerCrushedController_CrushPlayer()
{
// #CrushIt https://www.twitch.tv/videos/846916781?t=00h03m51s
// this is what you get from me when you mix tiredness and a headache - jokes and references only i will get
Locator.GetDeathManager().KillPlayer(DeathType.Crushed);
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(PlayerData), nameof(PlayerData.LearnLaunchCodes))]
public static bool LearnLaunchCodes()