2.4.2 & zone times proper

This commit is contained in:
Milxnor
2023-03-21 15:20:11 -04:00
parent 6d14b42a4f
commit 97ab80fef0
36 changed files with 1237 additions and 270 deletions

View File

@@ -246,6 +246,25 @@ void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg)
else if (Command == "spawnaidata")
{
}
else if (Command == "sethealth")
{
auto Pawn = ReceivingController->GetMyFortPawn();
if (!Pawn)
{
SendMessageToConsole(PlayerController, L"No pawn!");
return;
}
float Health = 100.f;
try { Health = std::stof(Arguments[1]); }
catch (...) {}
static auto SetHealthFn = FindObject<UFunction>("/Script/FortniteGame.FortPawn.SetHealth");
Pawn->ProcessEvent(SetHealthFn, &Health);
SendMessageToConsole(PlayerController, L"Set health!\n");
}
else if (Command == "testspawn")
{