2023-03-03 18:52:31 +00:00
|
|
|
|
using System;
|
2023-06-21 13:43:15 +03:00
|
|
|
|
using Aki.Common;
|
2024-01-03 16:06:50 +00:00
|
|
|
|
using Aki.Debugging.BTR.Patches;
|
2023-03-03 18:52:31 +00:00
|
|
|
|
using Aki.Debugging.Patches;
|
|
|
|
|
using BepInEx;
|
|
|
|
|
|
|
|
|
|
namespace Aki.Debugging
|
|
|
|
|
{
|
2023-06-21 13:43:15 +03:00
|
|
|
|
[BepInPlugin("com.spt-aki.debugging", "AKI.Debugging", AkiPluginInfo.PLUGIN_VERSION)]
|
2023-03-03 18:52:31 +00:00
|
|
|
|
public class AkiDebuggingPlugin : BaseUnityPlugin
|
|
|
|
|
{
|
2023-11-14 18:49:42 +00:00
|
|
|
|
public void Awake()
|
2023-03-03 18:52:31 +00:00
|
|
|
|
{
|
|
|
|
|
Logger.LogInfo("Loading: Aki.Debugging");
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
2023-10-10 10:58:33 +00:00
|
|
|
|
new EndRaidDebug().Enable();
|
2023-12-28 15:15:54 +00:00
|
|
|
|
// new CoordinatesPatch().Enable();
|
2024-01-03 16:06:50 +00:00
|
|
|
|
// new StaticLootDumper().Enable();
|
2024-01-04 08:51:06 +00:00
|
|
|
|
new BTRPathLoadPatch().Enable();
|
2024-01-05 08:58:15 +00:00
|
|
|
|
new BTRActivateTraderDialogPatch().Enable();
|
2024-01-04 08:51:06 +00:00
|
|
|
|
new BTRInteractionPatch().Enable();
|
2024-01-05 08:58:15 +00:00
|
|
|
|
new BTRExtractPassengersPatch().Enable();
|
2024-01-03 16:06:50 +00:00
|
|
|
|
new BTRBotAttachPatch().Enable();
|
|
|
|
|
new BTRBotInitPatch().Enable();
|
2024-01-12 08:54:12 +00:00
|
|
|
|
new BTRReceiveDamageInfoPatch().Enable();
|
|
|
|
|
new BTRTurretCanShootPatch().Enable();
|
|
|
|
|
new BTRTurretDefaultAimingPositionPatch().Enable();
|
2024-01-04 08:51:06 +00:00
|
|
|
|
new BTRIsDoorsClosedPath().Enable();
|
2024-01-05 08:58:15 +00:00
|
|
|
|
new BTRPatch().Enable();
|
2024-01-08 08:53:35 +00:00
|
|
|
|
new BTRTransferItemsPatch().Enable();
|
|
|
|
|
new BTREndRaidItemDeliveryPatch().Enable();
|
|
|
|
|
|
|
|
|
|
// Debug command patches, can be disabled later
|
|
|
|
|
new BTRDebugCommandPatch().Enable();
|
|
|
|
|
new BTRDebugDataPatch().Enable();
|
2024-01-18 14:35:59 +00:00
|
|
|
|
|
2024-01-20 20:29:02 +00:00
|
|
|
|
//new PMCBotSpawnLocationPatch().Enable();
|
2023-03-03 18:52:31 +00:00
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
Logger.LogError($"{GetType().Name}: {ex}");
|
|
|
|
|
throw;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Logger.LogInfo("Completed: Aki.Debugging");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|