using SPT.Reflection.Patching; using EFT.Vehicle; using HarmonyLib; using System.Reflection; using UnityEngine; namespace SPT.Custom.BTR.Patches { public class BTRTurretDefaultAimingPositionPatch : ModulePatch { protected override MethodBase GetTargetMethod() { return AccessTools.Method(typeof(BTRTurretServer), nameof(BTRTurretServer.Start)); } [PatchPrefix] private static bool PatchPrefix(BTRTurretServer __instance) { __instance.defaultAimingPosition = Vector3.zero; return false; } } }