mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-04-15 11:42:23 +00:00
Revert "TEST ME: remove PlayerCrushedController_CrushPlayer patch"
This reverts commit e9251498cc0690e1b55f13b4b602fae763ed915c.
This commit is contained in:
parent
c7ff9f5e86
commit
ce6916635f
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user