fix 14.60 + "cheat pausesafezone"

This commit is contained in:
Milxnor
2023-03-26 18:10:02 -04:00
parent 47126e9bac
commit f42c420486
8 changed files with 80 additions and 393 deletions

View File

@@ -2,6 +2,7 @@
#include "reboot.h"
#include "FortPlayerControllerAthena.h"
#include "KismetSystemLibrary.h"
bool IsOperator(APlayerState* PlayerState, AFortPlayerController* PlayerController)
{
@@ -265,6 +266,10 @@ void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg)
Pawn->SetHealth(Health);
SendMessageToConsole(PlayerController, L"Set health!\n");
}
else if (Command == "pausesafezone")
{
UKismetSystemLibrary::ExecuteConsoleCommand(GetWorld(), L"pausesafezone", nullptr);
}
else if (Command == "testspawn")
{
auto Pawn = Cast<APawn>(ReceivingController->GetPawn());