added spawning stuff to tool, new option 4
This commit is contained in:
parent
be199850d1
commit
478b503af3
@ -1,7 +1,6 @@
|
|||||||
using Comfort.Common;
|
using Comfort.Common;
|
||||||
using EFT;
|
using EFT;
|
||||||
using EFT.UI;
|
using EFT.UI;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@ -83,7 +82,7 @@ namespace CWX_DebuggingTool
|
|||||||
_playerRoleAndDiff.Add(player.ProfileId, GetBotRoleAndDiffClass(player.Profile.Info));
|
_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 =>
|
_botGame.BotsController.BotSpawner.OnBotRemoved += owner =>
|
||||||
{
|
{
|
||||||
var player = owner.GetPlayer;
|
var player = owner.GetPlayer;
|
||||||
@ -117,12 +116,19 @@ namespace CWX_DebuggingTool
|
|||||||
if (_guiContent == null)
|
if (_guiContent == null)
|
||||||
{
|
{
|
||||||
_guiContent = new GUIContent();
|
_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 Greater than or equal to Total show total
|
||||||
if (Mode >= BotMonitorMode.Total)
|
if (Mode >= BotMonitorMode.Total)
|
||||||
{
|
{
|
||||||
_content = string.Empty;
|
|
||||||
_content += $"Total = {_gameWorld.AllAlivePlayersList.Count - 1}\n";
|
_content += $"Total = {_gameWorld.AllAlivePlayersList.Count - 1}\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,39 +8,39 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Aki.Common">
|
<Reference Include="Aki.Common">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Aki.Common.dll</HintPath>
|
<HintPath>..\shared\Aki.Common.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Aki.Reflection">
|
<Reference Include="Aki.Reflection">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Aki.Reflection.dll</HintPath>
|
<HintPath>..\shared\Aki.Reflection.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Assembly-CSharp">
|
<Reference Include="Assembly-CSharp">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Assembly-CSharp.dll</HintPath>
|
<HintPath>..\shared\Assembly-CSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="BepInEx">
|
<Reference Include="BepInEx">
|
||||||
<HintPath>..\..\BepInEx\Core\BepInEx.dll</HintPath>
|
<HintPath>..\shared\BepInEx.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="bsg.console.core">
|
<Reference Include="bsg.console.core">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\bsg.console.core.dll</HintPath>
|
<HintPath>..\shared\bsg.console.core.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Comfort">
|
<Reference Include="Comfort">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Comfort.dll</HintPath>
|
<HintPath>..\shared\Comfort.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine">
|
<Reference Include="UnityEngine">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\UnityEngine.dll</HintPath>
|
<HintPath>..\shared\UnityEngine.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.CoreModule">
|
<Reference Include="UnityEngine.CoreModule">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
<HintPath>..\shared\UnityEngine.CoreModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.IMGUIModule">
|
<Reference Include="UnityEngine.IMGUIModule">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
|
<HintPath>..\shared\UnityEngine.IMGUIModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.TextRenderingModule">
|
<Reference Include="UnityEngine.TextRenderingModule">
|
||||||
<HintPath>..\..\EscapeFromTarkov_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
|
<HintPath>..\shared\UnityEngine.TextRenderingModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||||
<Exec Command="copy "$(TargetPath)" "$(ProjectDir)\..\..\BepInEx\plugins\$(TargetFileName)"" />
|
<Exec Command="copy "$(TargetPath)" "$(ProjectDir)\Build\$(TargetFileName)"" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -16,6 +16,8 @@ namespace CWX_DebuggingTool.Models
|
|||||||
[Description("Total and Per Zone Total")]
|
[Description("Total and Per Zone Total")]
|
||||||
PerZoneTotal = 2,
|
PerZoneTotal = 2,
|
||||||
[Description("Total, Per Zone Total, and Bot List")]
|
[Description("Total, Per Zone Total, and Bot List")]
|
||||||
FullList = 3
|
FullList = 3,
|
||||||
|
[Description("Total, Per Zone Total, bot list, with delayed spawns")]
|
||||||
|
DelayedSpawn = 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user