Fix cheat window not working on dedicated game server (when using netimgui)

Also add cheat commands: Cog.Cheat <CheatName> -Allies -Enemies -Controlled
This commit is contained in:
Arnaud Jamin
2025-01-07 00:38:44 -05:00
parent 28f0bead74
commit af565bf70d
5 changed files with 88 additions and 33 deletions
@@ -149,6 +149,7 @@ void FCogWindow::SetIsVisible(const bool Value)
OnWindowVisibilityChanged(Value);
}
//--------------------------------------------------------------------------------------------------------------------------
APawn* FCogWindow::GetLocalPlayerPawn() const
{
const APlayerController* LocalPlayerController = GetLocalPlayerController();
@@ -14,7 +14,6 @@
#include "HAL/IConsoleManager.h"
#include "imgui_internal.h"
#include "Misc/CoreMisc.h"
#include "Misc/EngineVersionComparison.h"
#include "NetImgui_Api.h"
FString UCogWindowManager::ToggleInputCommand = TEXT("Cog.ToggleInput");