mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
2.4.2 & zone times proper
This commit is contained in:
@@ -6,52 +6,6 @@
|
||||
#include "globals.h"
|
||||
#include "GameplayStatics.h"
|
||||
|
||||
void ApplyCID(AFortPlayerPawn* Pawn, UObject* CID)
|
||||
{
|
||||
if (!CID)
|
||||
return;
|
||||
|
||||
static auto HeroDefinitionOffset = CID->GetOffset("HeroDefinition");
|
||||
auto HeroDefinition = CID->Get(HeroDefinitionOffset);
|
||||
|
||||
using UFortHeroSpecialization = UObject;
|
||||
|
||||
static auto SpecializationsOffset = HeroDefinition->GetOffset("Specializations");
|
||||
auto& Specializations = HeroDefinition->Get<TArray<TSoftObjectPtr<UFortHeroSpecialization>>>(SpecializationsOffset);
|
||||
|
||||
auto PlayerState = Pawn->GetPlayerState();
|
||||
|
||||
for (int i = 0; i < Specializations.Num(); i++)
|
||||
{
|
||||
auto& SpecializationSoft = Specializations.at(i);
|
||||
|
||||
auto Specialization = SpecializationSoft.Get();
|
||||
|
||||
if (Specialization)
|
||||
{
|
||||
static auto Specialization_CharacterPartsOffset = Specialization->GetOffset("CharacterParts");
|
||||
auto& CharacterParts = Specialization->Get<TArray<TSoftObjectPtr<UObject>>>(Specialization_CharacterPartsOffset);
|
||||
|
||||
bool aa;
|
||||
|
||||
TArray<UObject*> CharacterPartsaa;
|
||||
|
||||
for (int z = 0; z < CharacterParts.Num(); z++)
|
||||
{
|
||||
auto& CharacterPartSoft = CharacterParts.at(z);
|
||||
auto CharacterPart = CharacterPartSoft.Get();
|
||||
|
||||
CharacterPartsaa.Add(CharacterPart);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
UFortKismetLibrary::ApplyCharacterCosmetics(GetWorld(), CharacterPartsaa, PlayerState, &aa);
|
||||
CharacterPartsaa.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void AFortPlayerControllerAthena::ServerGiveCreativeItemHook(AFortPlayerControllerAthena* Controller, FFortItemEntry CreativeItem)
|
||||
{
|
||||
// Don't worry, the validate has a check if it is a creative enabled mode or not, but we need to add a volume check.
|
||||
|
||||
Reference in New Issue
Block a user