mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
Todo: * Make the UI notifications for BTR-related stuff appear, e.g. when BTR is about to depart * Prevent player from entering BTR when it is hostile to the player * Implement cover fire trader service * Finish implementation of taxi service * Finetune the turret machine gun shooting (it might need some pauses as it will shoot nonstop if it is aiming at you) Co-authored-by: Nympfonic <arys.steam@gmail.com> Reviewed-on: SPT-AKI/Modules#56 Co-authored-by: Arys <arys@noreply.dev.sp-tarkov.com> Co-committed-by: Arys <arys@noreply.dev.sp-tarkov.com>
25 lines
582 B
C#
25 lines
582 B
C#
using Aki.Reflection.Patching;
|
|
using EFT.Vehicle;
|
|
using HarmonyLib;
|
|
using System.Reflection;
|
|
using UnityEngine;
|
|
|
|
namespace Aki.Debugging.BTR.Patches
|
|
{
|
|
public class BTRTurretDefaultAimingPositionPatch : ModulePatch
|
|
{
|
|
protected override MethodBase GetTargetMethod()
|
|
{
|
|
return AccessTools.Method(typeof(BTRTurretServer), "Start");
|
|
}
|
|
|
|
[PatchPrefix]
|
|
public static bool PatchPrefix(BTRTurretServer __instance)
|
|
{
|
|
__instance.defaultAimingPosition = Vector3.zero;
|
|
|
|
return false;
|
|
}
|
|
}
|
|
}
|