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

@@ -2,6 +2,7 @@
#include "Class.h"
#include "Controller.h"
#include "CheatManager.h"
#include "Rotator.h"
@@ -32,6 +33,13 @@ public:
return this->Get<class APawn*>(PawnOffset);
}
UCheatManager*& GetCheatManager()
{
static auto CheatManagerOffset = this->GetOffset("CheatManager");
return this->Get<UCheatManager*>(CheatManagerOffset);
}
UCheatManager*& SpawnCheatManager(UClass* CheatManagerClass);
FRotator GetControlRotation();
void Possess(class APawn* Pawn);
void ServerRestartPlayer();