mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
removed scaling for nodes and dimensions
This commit is contained in:
parent
6c38bba6c3
commit
9a3d01bc10
@ -15,9 +15,6 @@ namespace NewHorizons.Builder.Body
|
||||
{
|
||||
public static readonly float BASE_DIMENSION_RADIUS = 1705f;
|
||||
|
||||
// put node here
|
||||
// "position": {"x": 65.2428, "y": -137.305, "z": 198.1078}, "normal": {"x": 0.303696, "y": -0.5609235, "z": 0.7701519}
|
||||
|
||||
// location of all vanilla bramble dimensions
|
||||
//-9116.795 -19873.44 2480.327
|
||||
//-8460.688 -19873.44 6706.444
|
||||
@ -55,10 +52,6 @@ namespace NewHorizons.Builder.Body
|
||||
ao.transform.position = new Vector3(6904.48f, 17048.44f, 5574.479f) + new Vector3(0, 3000, 0)*DIMENSION_COUNTER;
|
||||
DIMENSION_COUNTER++;
|
||||
|
||||
// radius
|
||||
//if (body.Config.Bramble.dimension.radius != null)
|
||||
ao.transform.localScale = Vector3.one * (body.Config.Bramble.dimension.radius/BASE_DIMENSION_RADIUS);
|
||||
|
||||
// fix children's names and remove base game props (mostly just bramble nodes that are children to Interactibles) and set up the OuterWarp child
|
||||
var dimensionSector = SearchUtilities.FindChild(dimension, "Sector_HubDimension");
|
||||
dimensionSector.name = "Sector";
|
||||
|
||||
@ -112,20 +112,12 @@ namespace NewHorizons.Builder.Props
|
||||
var brambleNodePrefabPath = "DB_HubDimension_Body/Sector_HubDimension/Interactables_HubDimension/InnerWarp_ToCluster";
|
||||
|
||||
var path = config.isSeed ? brambleSeedPrefabPath : brambleNodePrefabPath;
|
||||
var brambleNode = DetailBuilder.MakeDetail(go, sector, path, config.position, config.rotation, config.scale, false);
|
||||
var brambleNode = DetailBuilder.MakeDetail(go, sector, path, config.position, config.rotation, 1, false);
|
||||
brambleNode.name = "Bramble Node to " + config.linksTo;
|
||||
var warpController = brambleNode.GetComponent<InnerFogWarpVolume>();
|
||||
|
||||
// this node comes with Feldspar's signal, we don't want that though
|
||||
GameObject.Destroy(SearchUtilities.FindChild(brambleNode, "Signal_Harmonica"));
|
||||
|
||||
//
|
||||
// set scale
|
||||
//
|
||||
|
||||
brambleNode.transform.localScale = Vector3.one * config.scale;
|
||||
warpController._warpRadius *= config.scale;
|
||||
warpController._exitRadius *= config.scale;
|
||||
|
||||
//
|
||||
// change the colors
|
||||
|
||||
10
NewHorizons/External/Modules/BrambleModule.cs
vendored
10
NewHorizons/External/Modules/BrambleModule.cs
vendored
@ -27,11 +27,6 @@ namespace NewHorizons.External.Modules
|
||||
[JsonObject]
|
||||
public class BrambleDimensionInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the inner radius of this dimension. Leave blank for the default of
|
||||
/// </summary>
|
||||
[DefaultValue(1705f)] public float radius = 1705f;
|
||||
|
||||
/// <summary>
|
||||
/// The color of the fog inside this dimension. Leave blank for the default yellowish color
|
||||
/// </summary>
|
||||
@ -57,11 +52,6 @@ namespace NewHorizons.External.Modules
|
||||
/// </summary>
|
||||
public MVector3 rotation;
|
||||
|
||||
/// <summary>
|
||||
/// The physical scale of the node
|
||||
/// </summary>
|
||||
[DefaultValue(1f)] public float scale = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// The name of the planet that hosts the dimension this node links to
|
||||
/// </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user