mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Configurable shock speeds
This commit is contained in:
parent
4069a21684
commit
7c981b32a4
@ -27,6 +27,8 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
ShockLayerRuleset shockLayerRuleset = planetGO.GetComponentInChildren<PlanetoidRuleset>().gameObject.AddComponent<ShockLayerRuleset>();
|
||||
shockLayerRuleset._type = ShockLayerRuleset.ShockType.Atmospheric;
|
||||
shockLayerRuleset._radialCenter = airGO.transform;
|
||||
shockLayerRuleset._minShockSpeed = config.Atmosphere.minShockSpeed;
|
||||
shockLayerRuleset._maxShockSpeed = config.Atmosphere.maxShockSpeed;
|
||||
|
||||
if (config.Atmosphere.clouds != null)
|
||||
{
|
||||
|
||||
10
NewHorizons/External/Modules/AtmosphereModule.cs
vendored
10
NewHorizons/External/Modules/AtmosphereModule.cs
vendored
@ -86,6 +86,16 @@ namespace NewHorizons.External.Modules
|
||||
/// </summary>
|
||||
public bool useAtmosphereShader;
|
||||
|
||||
/// <summary>
|
||||
/// Minimum speed that your ship can go in the atmosphere where flames will appear.
|
||||
/// </summary>
|
||||
[DefaultValue(100f)] public float minShockSpeed = 100f;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum speed that your ship can go in the atmosphere where flames will appear at their brightest.
|
||||
/// </summary>
|
||||
[DefaultValue(300f)] public float maxShockSpeed = 300f;
|
||||
|
||||
[JsonObject]
|
||||
public class CloudInfo
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user