mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
- Relative spawning when warping just like vanilla - Async load just like vanilla - No more wake up effects for vessel warping
18 lines
585 B
C#
18 lines
585 B
C#
using HarmonyLib;
|
|
|
|
namespace NewHorizons.Patches.PlayerPatches
|
|
{
|
|
[HarmonyPatch(typeof(PlayerBreathingAudio))]
|
|
public static class PlayerBreathingAudioPatches
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(nameof(PlayerBreathingAudio.OnWakeUp))]
|
|
public static bool PlayerBreathingAudio_OnWakeUp(PlayerBreathingAudio __instance)
|
|
{
|
|
if (Main.Instance.IsWarpingFromShip || Main.Instance.IsWarpingFromVessel || Main.Instance.DidWarpFromShip || Main.Instance.DidWarpFromVessel)
|
|
return false;
|
|
return true;
|
|
}
|
|
}
|
|
}
|