Add random defaults 1.7.2, some other internal stuff

This commit is contained in:
Milxnor
2023-04-26 23:22:22 -04:00
parent be0873d5d7
commit 4c19144b0f
10 changed files with 139 additions and 89 deletions

View File

@@ -123,7 +123,7 @@ void AFortPlayerController::ApplyCosmeticLoadout()
return;
}
auto CosmeticLoadout = this->GetCosmeticLoadout();
auto CosmeticLoadout = GetCosmeticLoadoutOffset() != -1 ? this->GetCosmeticLoadout() : nullptr;
if (CosmeticLoadout)
{
@@ -168,6 +168,11 @@ void AFortPlayerController::ApplyCosmeticLoadout()
}
}
}
else
{
static auto HeroTypeOffset = PlayerStateAsFort->GetOffset("HeroType");
ApplyHID(PawnAsFort, PlayerStateAsFort->Get(HeroTypeOffset));
}
PlayerStateAsFort->ForceNetUpdate();
PawnAsFort->ForceNetUpdate();