mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
fix 2.3 and 2.4 and 3.5
This commit is contained in:
@@ -12,16 +12,30 @@ public:
|
||||
return Get<UFortAthenaAIBotCharacterCustomization*>(CharacterCustomizationOffset);
|
||||
}
|
||||
|
||||
/* static void ApplyOverrideCharacterCustomizationHook(UFortAthenaAIBotCustomizationData* InBotData, AFortPlayerPawn* NewBot, __int64 idk)
|
||||
static void ApplyOverrideCharacterCustomizationHook(UFortAthenaAIBotCustomizationData* InBotData, AFortPlayerPawn* NewBot, __int64 idk)
|
||||
{
|
||||
LOG_INFO(LogDev, "ApplyOverrideCharacterCustomizationHook!");
|
||||
|
||||
auto CharacterCustomization = InBotData->GetCharacterCustomization();
|
||||
|
||||
NewBot->GetCosmeticLoadout()->GetCharacter() = CharacterCustomization->GetCustomizationLoadout()->GetCharacter();
|
||||
auto Controller = NewBot->GetController();
|
||||
|
||||
NewBot->Get<bool>(0x1B30) = true; // idk this is like a initialize check
|
||||
} */
|
||||
LOG_INFO(LogDev, "Controller: {}", Controller->IsValidLowLevel() ? Controller->GetPathName() : "BadRead");
|
||||
|
||||
static auto CosmeticLoadoutBCOffset = Controller->GetOffset("CosmeticLoadoutBC");
|
||||
Controller->GetPtr<FFortAthenaLoadout>(CosmeticLoadoutBCOffset)->GetCharacter() = CharacterCustomization->GetCustomizationLoadout()->GetCharacter();
|
||||
|
||||
auto PlayerStateAsFort = Cast<AFortPlayerState>(Controller->GetPlayerState());
|
||||
|
||||
static auto UpdatePlayerCustomCharacterPartsVisualizationFn = FindObject<UFunction>(L"/Script/FortniteGame.FortKismetLibrary.UpdatePlayerCustomCharacterPartsVisualization");
|
||||
PlayerStateAsFort->ProcessEvent(UpdatePlayerCustomCharacterPartsVisualizationFn, &PlayerStateAsFort);
|
||||
|
||||
PlayerStateAsFort->ForceNetUpdate();
|
||||
NewBot->ForceNetUpdate();
|
||||
Controller->ForceNetUpdate();
|
||||
|
||||
// NewBot->GetCosmeticLoadout()->GetCharacter() = CharacterCustomization->GetCustomizationLoadout()->GetCharacter();
|
||||
}
|
||||
|
||||
static UClass* StaticClass()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user