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

@@ -9,7 +9,16 @@ class UGameplayStatics : public UObject
public:
static TArray<AActor*> GetAllActorsOfClass(const UObject* WorldContextObject, UClass* ActorClass);
static float GetTimeSeconds(UObject* WorldContextObject);
static UObject* SpawnObject(UClass* ObjectClass, UObject* Outer);
template <typename ObjectType>
static ObjectType* SpawnObject(UClass* ObjectClass, UObject* Outer, bool bCheckType)
{
auto Object = SpawnObject(ObjectClass, Outer);
return bCheckType ? Cast<ObjectType>(Object) : (ObjectType*)Object;
}
// static void OpenLevel(UObject* WorldContextObject, FName LevelName, bool bAbsolute, const FString& Options);
static void RemovePlayer(class APlayerController* Player, bool bDestroyPawn);