CWX-mods/Live/CWX_BushWhacker/BushWhackerPatch.cs

22 lines
531 B
C#
Raw Normal View History

2022-05-14 19:53:00 +01:00
using Aki.Reflection.Patching;
using EFT;
using System.Reflection;
namespace CWX_BushWhacker
2022-05-14 19:53:00 +01:00
{
public class BushWhackerPatch : ModulePatch
2022-05-14 19:53:00 +01:00
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
2022-05-14 19:53:00 +01:00
}
2022-06-11 22:25:07 +01:00
2022-05-14 19:53:00 +01:00
[PatchPostfix]
public static void PatchPostFix()
{
2022-11-18 19:45:42 +00:00
BushWhacker bushWhacker = new BushWhacker();
bushWhacker.DisableBushes();
2022-05-14 19:53:00 +01:00
}
}
}