CWX-mods/Live/CWX_WeatherPatcher/TOD_ScatteringPatch.cs
2022-08-19 17:27:56 +01:00

21 lines
577 B
C#

using Aki.Reflection.Patching;
using System.Reflection;
namespace CWX_WeatherPatcher
{
class TOD_ScatteringPatch : ModulePatch // MAKES CHANGES TO TOD_SCATTERING FOG
{
protected override MethodBase GetTargetMethod()
{
return typeof(TOD_Scattering).GetMethod("Start", BindingFlags.NonPublic | BindingFlags.Instance);
}
[PatchPostfix]
private static void PostFixPatch(ref TOD_Scattering __instance)
{
__instance.GlobalDensity = 0f;
__instance.HeightFalloff = 0f;
}
}
}