mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
dispatch request
This commit is contained in:
@@ -9,6 +9,21 @@
|
||||
|
||||
struct FCreateBuildingActorData { uint32_t BuildingClassHandle; FVector BuildLoc; FRotator BuildRot; bool bMirrored; };
|
||||
|
||||
struct FFortAthenaLoadout
|
||||
{
|
||||
UObject*& GetCharacter()
|
||||
{
|
||||
static auto CharacterOffset = FindOffsetStruct("/Script/FortniteGame.FortAthenaLoadout", "Character");
|
||||
return *(UObject**)(__int64(this) + CharacterOffset);
|
||||
}
|
||||
|
||||
UObject*& GetPickaxe()
|
||||
{
|
||||
static auto PickaxeOffset = FindOffsetStruct("/Script/FortniteGame.FortAthenaLoadout", "Pickaxe");
|
||||
return *(UObject**)(__int64(this) + PickaxeOffset);
|
||||
}
|
||||
};
|
||||
|
||||
class AFortPlayerController : public APlayerController
|
||||
{
|
||||
public:
|
||||
@@ -32,6 +47,18 @@ public:
|
||||
return Class;
|
||||
}
|
||||
|
||||
FFortAthenaLoadout* GetCosmeticLoadout()
|
||||
{
|
||||
static auto CosmeticLoadoutPCOffset = this->GetOffset("CosmeticLoadoutPC", false);
|
||||
|
||||
if (CosmeticLoadoutPCOffset == 0)
|
||||
CosmeticLoadoutPCOffset = this->GetOffset("CustomizationLoadout");
|
||||
|
||||
auto CosmeticLoadout = this->GetPtr<FFortAthenaLoadout>(CosmeticLoadoutPCOffset);
|
||||
|
||||
return CosmeticLoadout;
|
||||
}
|
||||
|
||||
static void ServerExecuteInventoryItemHook(AFortPlayerController* PlayerController, FGuid ItemGuid);
|
||||
|
||||
static void ServerAttemptAircraftJumpHook(AFortPlayerController* PC, FRotator ClientRotation);
|
||||
|
||||
Reference in New Issue
Block a user