CWX-mods/Old/CWX_WeatherPatcher/WeatherPatcher.cs

37 lines
1.1 KiB
C#
Raw Permalink Normal View History

2022-05-14 19:53:00 +01:00
using BepInEx;
using EFT.Weather;
namespace CWX_WeatherPatcher
{
2023-08-08 19:34:27 +01:00
[BepInPlugin("com.CWX.WeatherPatcher", "CWX-WeatherPatcher", "2.6.0")]
public class WeatherPatcher : BaseUnityPlugin
2022-05-14 19:53:00 +01:00
{
private void Awake()
{
2023-08-08 19:34:27 +01:00
new WeatherClassPatch().Enable();
new CustomGlobalFogPatch().Enable();
new LevelSettingsPatch().Enable();
new TodScatteringPatch().Enable();
new GameWorldPatch().Enable();
2022-05-14 19:53:00 +01:00
}
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;
2024-01-24 21:08:06 +00:00
// debug.Fog = 0f;
// debug.Rain = 0f;
// debug.LightningThunderProbability = 0f;
debug.WindMagnitude = 0f;
2022-05-14 19:53:00 +01:00
}
}
}
}