perforamce + fix chapter 2 match starting

This commit is contained in:
Milxnor
2023-03-22 14:04:08 -04:00
parent 4913d64719
commit d5bbca9add
21 changed files with 264 additions and 95 deletions

View File

@@ -262,8 +262,7 @@ void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg)
try { Health = std::stof(Arguments[1]); }
catch (...) {}
static auto SetHealthFn = FindObject<UFunction>("/Script/FortniteGame.FortPawn.SetHealth");
Pawn->ProcessEvent(SetHealthFn, &Health);
Pawn->SetHealth(Health);
SendMessageToConsole(PlayerController, L"Set health!\n");
}
else if (Command == "testspawn")