mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
Add random defaults 1.7.2, some other internal stuff
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user