Fix Outsider/Codec signal incompat

This commit is contained in:
xen-42 2024-10-09 20:45:53 -04:00
parent 61b8bb883e
commit c844bafac3
2 changed files with 10 additions and 2 deletions

View File

@ -171,7 +171,15 @@ namespace NewHorizons.Builder.Props.Audio
audioSignal._onlyAudibleToScope = info.onlyAudibleToScope; audioSignal._onlyAudibleToScope = info.onlyAudibleToScope;
audioSignal._identificationDistance = info.identificationRadius; audioSignal._identificationDistance = info.identificationRadius;
audioSignal._canBePickedUpByScope = true; audioSignal._canBePickedUpByScope = true;
// The outsider adds outer fog warp volumes to Bramble which break any signals NH places there
if (Main.Instance.ModHelper.Interaction.ModExists("SBtT.TheOutsider") && planetGO.GetComponent<AstroObject>()._name == AstroObject.Name.DarkBramble)
{
audioSignal._outerFogWarpVolume = null;
}
else
{
audioSignal._outerFogWarpVolume = planetGO.GetComponentInChildren<OuterFogWarpVolume>(); // shouldn't break non-bramble signals audioSignal._outerFogWarpVolume = planetGO.GetComponentInChildren<OuterFogWarpVolume>(); // shouldn't break non-bramble signals
}
// If it can be heard regularly then we play it immediately // If it can be heard regularly then we play it immediately
owAudioSource.playOnAwake = !info.onlyAudibleToScope; owAudioSource.playOnAwake = !info.onlyAudibleToScope;

View File

@ -4,7 +4,7 @@
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends", "author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends",
"name": "New Horizons", "name": "New Horizons",
"uniqueName": "xen.NewHorizons", "uniqueName": "xen.NewHorizons",
"version": "1.23.2", "version": "1.23.3",
"owmlVersion": "2.12.1", "owmlVersion": "2.12.1",
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ], "dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "PacificEngine.OW_CommonResources" ], "conflicts": [ "PacificEngine.OW_CommonResources" ],