artificial intelligence

proper *****, work on ai, organize some things
This commit is contained in:
Milxnor
2023-05-14 13:51:58 -04:00
parent a94005805c
commit ec30c7ecf8
25 changed files with 422 additions and 68 deletions

View File

@@ -69,6 +69,7 @@ extern inline bool bEnableBotTick = false;
extern inline bool bEnableCombinePickup = false;
extern inline int AmountOfBotsToSpawn = 0;
extern inline bool bEnableRebooting = false;
extern inline bool bEngineDebugLogs = false;
// THE BASE CODE IS FROM IMGUI GITHUB
@@ -515,6 +516,22 @@ static inline void MainUI()
}
*/
if (ImGui::Button("aaa"))
{
static auto Clasda = FindObject<UClass>(L"/Script/FortniteGame.FortMission_RiftSpawners");
auto AllMissions = UGameplayStatics::GetAllActorsOfClass(GetWorld(), Clasda);
LOG_INFO(LogDev, "AllMissions.Num(): {}", AllMissions.Num());
for (int i = 0; i < AllMissions.Num(); i++)
{
auto Mission = AllMissions.at(i);
static auto bCalendarAllowsSpawningOffset = Mission->GetOffset("bCalendarAllowsSpawning");
Mission->Get<bool>(bCalendarAllowsSpawningOffset) = true;
}
}
if (!bIsInAutoRestart && (Engine_Version < 424 && ImGui::Button("Restart")))
{
if (Engine_Version < 424)
@@ -983,6 +1000,7 @@ static inline void MainUI()
{
ImGui::Checkbox("Looting Debug Log", &bDebugPrintLooting);
ImGui::Checkbox("Swapping Debug Log", &bDebugPrintSwapping);
ImGui::Checkbox("Engine Debug Log", &bEngineDebugLogs);
}
else if (Tab == SETTINGS_TAB)
{