fix restarting, add cheat teleport and help, build free and infinite ammo, fix restarting on c1,  fix some gui issues.
This commit is contained in:
Milxnor
2023-04-17 21:05:08 -04:00
parent d308c9ad91
commit 6daab8d5a2
28 changed files with 352 additions and 208 deletions

View File

@@ -54,6 +54,7 @@
#define FUN_PLAYERTAB 5
static inline int SecondsUntilTravel = 5;
static bool bSwitchedInitialLevel = false;
// THE BASE CODE IS FROM IMGUI GITHUB
@@ -215,6 +216,9 @@ static int playerTabTab = MAIN_PLAYERTAB;
void StaticUI()
{
ImGui::Checkbox("Infinite Ammo", &Globals::bInfiniteAmmo);
ImGui::Checkbox("Infinite Materials", &Globals::bInfiniteMaterials);
ImGui::Checkbox("No MCP (Don't change unless you know what this is)", &Globals::bNoMCP);
if (Addresses::ApplyGadgetData && Addresses::RemoveGadgetData)
@@ -634,7 +638,9 @@ void PregameUI()
ImGui::Checkbox("Play Event", &Globals::bGoingToPlayEvent);
}
ImGui::SliderInt("Seconds until load into map", &SecondsUntilTravel, 1, 100);
if (!bSwitchedInitialLevel)
ImGui::SliderInt("Seconds until load into map", &SecondsUntilTravel, 1, 100);
ImGui::InputText("Playlist", &PlaylistName);
}