forked from CWX/CWX-mods
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using BepInEx;
|
|
using EFT.Weather;
|
|
|
|
namespace CWX_WeatherPatcher
|
|
{
|
|
[BepInPlugin("com.CWX.WeatherPatcher", "CWX-WeatherPatcher", "2.6.0")]
|
|
public class WeatherPatcher : BaseUnityPlugin
|
|
{
|
|
private void Awake()
|
|
{
|
|
new WeatherClassPatch().Enable();
|
|
new CustomGlobalFogPatch().Enable();
|
|
new LevelSettingsPatch().Enable();
|
|
new TodScatteringPatch().Enable();
|
|
new GameWorldPatch().Enable();
|
|
}
|
|
|
|
public static void Fix()
|
|
{
|
|
var instance = WeatherController.Instance;
|
|
if (instance != null)
|
|
{
|
|
instance.RainController.enabled = false;
|
|
instance.LightningController.enabled = false;
|
|
|
|
var debug = WeatherController.Instance.WeatherDebug;
|
|
debug.Enabled = true;
|
|
debug.CloudDensity = -1f;
|
|
debug.Fog = 0f;
|
|
debug.Rain = 0f;
|
|
debug.LightningThunderProbability = 0f;
|
|
debug.WindMagnitude = 0f;
|
|
}
|
|
}
|
|
}
|
|
}
|