2022-05-06 15:17:35 +08:00
|
|
|
|
using Aki.Reflection.Patching;
|
|
|
|
|
using Aki.Reflection.Utils;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using EFT;
|
|
|
|
|
|
|
|
|
|
namespace SkinHide.Patches
|
|
|
|
|
{
|
|
|
|
|
public class BotOwnerPatch : ModulePatch
|
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
|
|
|
|
return typeof(BotOwner).GetMethod("method_4", PatchConstants.PrivateFlags);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[PatchPostfix]
|
|
|
|
|
private static void PatchPostfix(BotOwner __instance)
|
|
|
|
|
{
|
2022-07-16 02:51:13 +08:00
|
|
|
|
SkinHidePlugin.Bot.Add(__instance.gameObject.GetComponentInChildren<PlayerBody>());
|
2022-05-06 15:17:35 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|