mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Always make reference frame even when enabled (fixes Cloak)
This commit is contained in:
parent
d395a002cd
commit
5dd7320566
@ -8,7 +8,13 @@ namespace NewHorizons.Builder.General
|
|||||||
{
|
{
|
||||||
public static GameObject Make(GameObject planetGO, OWRigidbody owrb, float sphereOfInfluence, ReferenceFrameModule module)
|
public static GameObject Make(GameObject planetGO, OWRigidbody owrb, float sphereOfInfluence, ReferenceFrameModule module)
|
||||||
{
|
{
|
||||||
if (!module.enabled) return null;
|
if (!module.enabled)
|
||||||
|
{
|
||||||
|
// We can't not build a reference frame volume, Cloak requires one to be there
|
||||||
|
module.maxTargetDistance = 0f;
|
||||||
|
module.hideInMap = true;
|
||||||
|
owrb.SetIsTargetable(false);
|
||||||
|
}
|
||||||
|
|
||||||
var rfGO = new GameObject("RFVolume");
|
var rfGO = new GameObject("RFVolume");
|
||||||
rfGO.transform.parent = planetGO.transform;
|
rfGO.transform.parent = planetGO.transform;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user