added spawning stuff to tool, new option 4

This commit is contained in:
CWXDEV 2024-01-12 14:33:05 +00:00
parent be199850d1
commit 478b503af3
3 changed files with 23 additions and 15 deletions

View File

@ -1,7 +1,6 @@
using Comfort.Common;
using EFT;
using EFT.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
@ -83,7 +82,7 @@ namespace CWX_DebuggingTool
_playerRoleAndDiff.Add(player.ProfileId, GetBotRoleAndDiffClass(player.Profile.Info));
};
// Sub to event to gget and remove Bot when they despawn
// Sub to event to get and remove Bot when they despawn
_botGame.BotsController.BotSpawner.OnBotRemoved += owner =>
{
var player = owner.GetPlayer;
@ -117,12 +116,19 @@ namespace CWX_DebuggingTool
if (_guiContent == null)
{
_guiContent = new GUIContent();
_content = string.Empty;
}
if (Mode >= BotMonitorMode.DelayedSpawn)
{
_content += $"Alive & Loading = {_botGame.BotsController.BotSpawner.AliveAndLoadingBotsCount}\n";
_content += $"Delayed Bots = {_botGame.BotsController.BotSpawner.BotsDelayed}\n";
_content += $"All Bots With Delayed = {_botGame.BotsController.BotSpawner.AllBotsWithDelayed}\n";
}
// If Mode Greater than or equal to Total show total
if (Mode >= BotMonitorMode.Total)
{
_content = string.Empty;
_content += $"Total = {_gameWorld.AllAlivePlayersList.Count - 1}\n";
}

View File

@ -8,39 +8,39 @@
<ItemGroup>
<Reference Include="Aki.Common">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Aki.Common.dll</HintPath>
<HintPath>..\shared\Aki.Common.dll</HintPath>
</Reference>
<Reference Include="Aki.Reflection">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Aki.Reflection.dll</HintPath>
<HintPath>..\shared\Aki.Reflection.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>..\shared\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\..\BepInEx\Core\BepInEx.dll</HintPath>
<HintPath>..\shared\BepInEx.dll</HintPath>
</Reference>
<Reference Include="bsg.console.core">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\bsg.console.core.dll</HintPath>
<HintPath>..\shared\bsg.console.core.dll</HintPath>
</Reference>
<Reference Include="Comfort">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Comfort.dll</HintPath>
<HintPath>..\shared\Comfort.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\shared\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<HintPath>..\shared\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
<HintPath>..\shared\UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
<HintPath>..\shared\UnityEngine.TextRenderingModule.dll</HintPath>
</Reference>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy &quot;$(TargetPath)&quot; &quot;$(ProjectDir)\..\..\BepInEx\plugins\$(TargetFileName)&quot;" />
<Exec Command="copy &quot;$(TargetPath)&quot; &quot;$(ProjectDir)\Build\$(TargetFileName)&quot;" />
</Target>
</Project>

View File

@ -16,6 +16,8 @@ namespace CWX_DebuggingTool.Models
[Description("Total and Per Zone Total")]
PerZoneTotal = 2,
[Description("Total, Per Zone Total, and Bot List")]
FullList = 3
FullList = 3,
[Description("Total, Per Zone Total, bot list, with delayed spawns")]
DelayedSpawn = 4
}
}