mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
fix restarting, add cheat teleport and help, build free and infinite ammo, fix restarting on c1, fix some gui issues.
36 lines
970 B
C++
36 lines
970 B
C++
#include "PlayerController.h"
|
|
#include "GameplayStatics.h"
|
|
|
|
#include "reboot.h"
|
|
|
|
UCheatManager*& APlayerController::SpawnCheatManager(UClass* CheatManagerClass)
|
|
{
|
|
GetCheatManager() = UGameplayStatics::SpawnObject<UCheatManager>(CheatManagerClass, this, true);
|
|
return GetCheatManager();
|
|
}
|
|
|
|
FRotator APlayerController::GetControlRotation()
|
|
{
|
|
static auto fn = FindObject<UFunction>(L"/Script/Engine.Controller.GetControlRotation");
|
|
FRotator rot;
|
|
this->ProcessEvent(fn, &rot);
|
|
return rot;
|
|
}
|
|
|
|
void APlayerController::Possess(class APawn* Pawn)
|
|
{
|
|
static auto fn = FindObject<UFunction>(L"/Script/Engine.Controller.Possess");
|
|
this->ProcessEvent(fn, &Pawn);
|
|
}
|
|
|
|
void APlayerController::ServerRestartPlayer()
|
|
{
|
|
static auto fn = FindObject<UFunction>(L"/Script/Engine.PlayerController.ServerRestartPlayer");
|
|
this->ProcessEvent(fn);
|
|
}
|
|
|
|
UClass* APlayerController::StaticClass()
|
|
{
|
|
static auto Class = FindObject<UClass>(L"/Script/Engine.PlayerController");
|
|
return Class;
|
|
} |