Skip to content

Commit

Permalink
fix probes doing weird stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Nov 13, 2023
1 parent dab67e5 commit 3d68206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Binary file modified QSB/AssetBundles/qsb_network
Binary file not shown.
13 changes: 2 additions & 11 deletions QSB/Player/Patches/VolumePatches.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using HarmonyLib;
using QSB.Patches;
using QSB.Utility;
using UnityEngine;

namespace QSB.Player.Patches;
Expand Down Expand Up @@ -47,18 +46,10 @@ public static void OnEffectVolumeEnter(RingRiverFluidVolume __instance, GameObje
[HarmonyPatch(typeof(DreamWarpVolume), nameof(DreamWarpVolume.OnEnterTriggerVolume))]
[HarmonyPatch(typeof(NomaiWarpPlatform), nameof(NomaiWarpPlatform.OnEntry))]
public static bool PreventRemotePlayerEnter(object __instance, GameObject hitObj)
{
DebugLog.DebugWrite($"{__instance} funny prevent enter {hitObj}");
// TODO: also do this with remote probes
return hitObj.name is not ("REMOTE_PlayerDetector" or "REMOTE_CameraDetector");
}
=> hitObj.name is not ("REMOTE_PlayerDetector" or "REMOTE_CameraDetector" or "REMOTE_ProbeDetector");

[HarmonyPrefix]
[HarmonyPatch(typeof(VanishVolume), nameof(VanishVolume.OnTriggerEnter))]
public static bool PreventRemotePlayerEnter(object __instance, Collider hitCollider)
{
DebugLog.DebugWrite($"{__instance} funny prevent enter {hitCollider}");
// TODO: also do this with remote probes
return hitCollider.name is not ("REMOTE_PlayerDetector" or "REMOTE_CameraDetector");
}
=> hitCollider.name is not ("REMOTE_PlayerDetector" or "REMOTE_CameraDetector" or "REMOTE_ProbeDetector");
}

0 comments on commit 3d68206

Please sign in to comment.