This commit is contained in:
_nebula 2023-05-08 14:32:28 +01:00
parent 9b448e9cf5
commit 8ac95d27c2
2 changed files with 8 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class QuantumObjectPatches : QSBPatch
var worldObject = __instance.GetWorldObject<IQSBQuantumObject>();
var visibleToProbePlayers = worldObject.GetVisibleToProbePlayers();
__result = visibleToProbePlayers.Any(x => x.ProbeLauncherEquipped != default);
__result = visibleToProbePlayers.Any();
return false;
}
}

View File

@ -338,6 +338,13 @@ internal abstract class QSBQuantumObject<T> : WorldObject<T>, IQSBQuantumObject
}
label += $"VisibleInProbeSnapshot:{AttachedObject._visibleInProbeSnapshot}\r\n";
label += $"IsLockedByProbeSnapshot:{AttachedObject.IsLockedByProbeSnapshot()}\r\n";
label += "VisibleToProbePlayers:\r\n";
foreach (var player in GetVisibleToProbePlayers())
{
label += $" ID: {player.PlayerId}\r\n";
}
return label;
}