mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
18 lines
640 B
C#
18 lines
640 B
C#
using HarmonyLib;
|
|
using NewHorizons.Components.Sectored;
|
|
using NewHorizons.Handlers;
|
|
|
|
namespace NewHorizons.Patches.CameraPatches
|
|
{
|
|
[HarmonyPatch(typeof(ProbeCamera))]
|
|
public static class ProbeCameraPatches
|
|
{
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(nameof(ProbeCamera.HasInterference))]
|
|
public static void ProbeCamera_HasInterference(ProbeCamera __instance, ref bool __result)
|
|
{
|
|
__result = __result || (__instance._id != ProbeCamera.ID.PreLaunch && (CloakSectorController.isPlayerInside != CloakSectorController.isProbeInside || !InterferenceHandler.IsPlayerSameAsProbe()));
|
|
}
|
|
}
|
|
}
|