CWX-mods/Live/CWX_BushWhacker/BushWhackerPatch.cs
2022-11-18 19:45:42 +00:00

22 lines
531 B
C#

using Aki.Reflection.Patching;
using EFT;
using System.Reflection;
namespace CWX_BushWhacker
{
public class BushWhackerPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
}
[PatchPostfix]
public static void PatchPostFix()
{
BushWhacker bushWhacker = new BushWhacker();
bushWhacker.DisableBushes();
}
}
}