mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add allowShipAutoroll to Atmosphere and Water modules #935
This commit is contained in:
parent
72b7a86294
commit
51ea50ac68
@ -22,7 +22,7 @@ namespace NewHorizons.Builder.Atmosphere
|
|||||||
sfv._priority = 0;
|
sfv._priority = 0;
|
||||||
sfv._density = 1.2f;
|
sfv._density = 1.2f;
|
||||||
sfv._fluidType = FluidVolume.Type.AIR;
|
sfv._fluidType = FluidVolume.Type.AIR;
|
||||||
sfv._allowShipAutoroll = true;
|
sfv._allowShipAutoroll = config.Atmosphere.allowShipAutoroll;
|
||||||
sfv._disableOnStart = false;
|
sfv._disableOnStart = false;
|
||||||
|
|
||||||
if (config.Atmosphere.hasShockLayer)
|
if (config.Atmosphere.hasShockLayer)
|
||||||
|
|||||||
@ -147,7 +147,7 @@ namespace NewHorizons.Builder.Atmosphere
|
|||||||
fluidCLFV._priority = 1;
|
fluidCLFV._priority = 1;
|
||||||
fluidCLFV._density = 1.2f;
|
fluidCLFV._density = 1.2f;
|
||||||
fluidCLFV._fluidType = atmo.clouds.fluidType.ConvertToOW(FluidVolume.Type.CLOUD);
|
fluidCLFV._fluidType = atmo.clouds.fluidType.ConvertToOW(FluidVolume.Type.CLOUD);
|
||||||
fluidCLFV._allowShipAutoroll = true;
|
fluidCLFV._allowShipAutoroll = atmo.allowShipAutoroll;
|
||||||
fluidCLFV._disableOnStart = false;
|
fluidCLFV._disableOnStart = false;
|
||||||
|
|
||||||
// Fix the rotations once the rest is done
|
// Fix the rotations once the rest is done
|
||||||
|
|||||||
@ -129,7 +129,7 @@ namespace NewHorizons.Builder.Body
|
|||||||
fluidVolume._density = module.density;
|
fluidVolume._density = module.density;
|
||||||
fluidVolume._layer = 5;
|
fluidVolume._layer = 5;
|
||||||
fluidVolume._priority = 3;
|
fluidVolume._priority = 3;
|
||||||
fluidVolume._allowShipAutoroll = true;
|
fluidVolume._allowShipAutoroll = module.allowShipAutoroll;
|
||||||
fluidVolume._disableOnStart = false;
|
fluidVolume._disableOnStart = false;
|
||||||
|
|
||||||
var fogGO = Object.Instantiate(_oceanFog, waterGO.transform);
|
var fogGO = Object.Instantiate(_oceanFog, waterGO.transform);
|
||||||
|
|||||||
@ -107,6 +107,12 @@ namespace NewHorizons.External.Modules
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[DefaultValue(300f)] public float maxShockSpeed = 300f;
|
[DefaultValue(300f)] public float maxShockSpeed = 300f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Will the ship automatically try to orient itself to face upwards while in this volume?
|
||||||
|
/// </summary>
|
||||||
|
[DefaultValue(true)]
|
||||||
|
public bool allowShipAutoroll = true;
|
||||||
|
|
||||||
[JsonObject]
|
[JsonObject]
|
||||||
public class CloudInfo
|
public class CloudInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@ -26,5 +26,11 @@ namespace NewHorizons.External.Modules.VariableSize
|
|||||||
/// Tint of the water
|
/// Tint of the water
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MColor tint;
|
public MColor tint;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Will the ship automatically try to orient itself to face upwards while in this volume?
|
||||||
|
/// </summary>
|
||||||
|
[DefaultValue(true)]
|
||||||
|
public bool allowShipAutoroll = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user