mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
preload, starting shield
This commit is contained in:
@@ -390,6 +390,8 @@ void AFortPlayerControllerAthena::ServerTeleportToPlaygroundLobbyIslandHook(AFor
|
||||
void AFortPlayerControllerAthena::ServerAcknowledgePossessionHook(APlayerController* Controller, APawn* Pawn)
|
||||
{
|
||||
static auto AcknowledgedPawnOffset = Controller->GetOffset("AcknowledgedPawn");
|
||||
|
||||
const APawn* OldAcknowledgedPawn = Controller->Get<APawn*>(AcknowledgedPawnOffset);
|
||||
Controller->Get<APawn*>(AcknowledgedPawnOffset) = Pawn;
|
||||
|
||||
auto ControllerAsFort = Cast<AFortPlayerController>(Controller);
|
||||
@@ -399,6 +401,11 @@ void AFortPlayerControllerAthena::ServerAcknowledgePossessionHook(APlayerControl
|
||||
if (!PawnAsFort)
|
||||
return;
|
||||
|
||||
if (OldAcknowledgedPawn != PawnAsFort)
|
||||
{
|
||||
PawnAsFort->SetShield(StartingShield);
|
||||
}
|
||||
|
||||
if (Globals::bNoMCP)
|
||||
{
|
||||
static auto CustomCharacterPartClass = FindObject<UClass>("/Script/FortniteGame.CustomCharacterPart");
|
||||
|
||||
Reference in New Issue
Block a user