This commit is contained in:
Milxnor
2023-03-05 22:30:29 -05:00
parent 472fbdb809
commit ae259f97eb
23 changed files with 982 additions and 54 deletions

View File

@@ -2,20 +2,28 @@
#include "reboot.h"
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>("/Script/Engine.Controller.Possess");
static auto fn = FindObject<UFunction>(L"/Script/Engine.Controller.Possess");
this->ProcessEvent(fn, &Pawn);
}
void APlayerController::ServerRestartPlayer()
{
static auto fn = FindObject<UFunction>("/Script/Engine.PlayerController.ServerRestartPlayer");
static auto fn = FindObject<UFunction>(L"/Script/Engine.PlayerController.ServerRestartPlayer");
this->ProcessEvent(fn);
}
UClass* APlayerController::StaticClass()
{
static auto Class = FindObject<UClass>("/Script/Engine.PlayerController");
static auto Class = FindObject<UClass>(L"/Script/Engine.PlayerController");
return Class;
}