mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
Removed unnecessary BTR patch (!70)
Reviewed-on: SPT-AKI/Modules#70 Co-authored-by: Arys <arys@noreply.dev.sp-tarkov.com> Co-committed-by: Arys <arys@noreply.dev.sp-tarkov.com>
This commit is contained in:
parent
f2ddc36d88
commit
2d2b4fb78f
@ -61,7 +61,6 @@ namespace Aki.Custom
|
|||||||
new BTRTurretDefaultAimingPositionPatch().Enable();
|
new BTRTurretDefaultAimingPositionPatch().Enable();
|
||||||
new BTRIsDoorsClosedPath().Enable();
|
new BTRIsDoorsClosedPath().Enable();
|
||||||
new BTRPatch().Enable();
|
new BTRPatch().Enable();
|
||||||
new BTRSpawnBotAtRaidStartPatch().Enable();
|
|
||||||
new BTRTransferItemsPatch().Enable();
|
new BTRTransferItemsPatch().Enable();
|
||||||
new BTREndRaidItemDeliveryPatch().Enable();
|
new BTREndRaidItemDeliveryPatch().Enable();
|
||||||
new BTRDestroyAtRaidEndPatch().Enable();
|
new BTRDestroyAtRaidEndPatch().Enable();
|
||||||
|
@ -161,6 +161,7 @@ namespace Aki.Custom.BTR
|
|||||||
var botsController = Singleton<IBotGame>.Instance.BotsController;
|
var botsController = Singleton<IBotGame>.Instance.BotsController;
|
||||||
btrBotService = botsController.BotTradersServices.BTRServices;
|
btrBotService = botsController.BotTradersServices.BTRServices;
|
||||||
btrController.method_3(); // spawns server-side BTR game object
|
btrController.method_3(); // spawns server-side BTR game object
|
||||||
|
botsController.BotSpawner.SpawnBotBTR(); // spawns the scav bot which controls the BTR's turret
|
||||||
|
|
||||||
// Initial BTR configuration
|
// Initial BTR configuration
|
||||||
btrServerSide = btrController.BtrVehicle;
|
btrServerSide = btrController.BtrVehicle;
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
using Aki.Reflection.Patching;
|
|
||||||
using Comfort.Common;
|
|
||||||
using EFT;
|
|
||||||
using HarmonyLib;
|
|
||||||
using System.Reflection;
|
|
||||||
|
|
||||||
namespace Aki.Custom.BTR.Patches
|
|
||||||
{
|
|
||||||
public class BTRSpawnBotAtRaidStartPatch : ModulePatch
|
|
||||||
{
|
|
||||||
protected override MethodBase GetTargetMethod()
|
|
||||||
{
|
|
||||||
return AccessTools.Method(typeof(GameWorld), nameof(GameWorld.OnGameStarted));
|
|
||||||
}
|
|
||||||
|
|
||||||
[PatchPostfix]
|
|
||||||
private static void PatchPostfix(GameWorld __instance)
|
|
||||||
{
|
|
||||||
var btrManager = __instance.GetComponent<BTRManager>();
|
|
||||||
if (btrManager == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var botGame = Singleton<IBotGame>.Instance;
|
|
||||||
if (botGame == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
botGame.BotsController.BotSpawner.SpawnBotBTR();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user