mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
a bit
fix pickup notifications, fix 1.11 crash, remove pickup notifications (to fix restarting and random crashes), fix s7 crash, add delay before switching level, fix some issues with gadgets, fix character parts being buggy.
This commit is contained in:
@@ -107,12 +107,17 @@ void AFortPlayerController::ApplyCosmeticLoadout()
|
||||
|
||||
if (!UpdatePlayerCustomCharacterPartsVisualizationFn)
|
||||
{
|
||||
/* if (Addresses::ApplyCharacterCustomization)
|
||||
if (Addresses::ApplyCharacterCustomization)
|
||||
{
|
||||
static void* (*ApplyCharacterCustomizationOriginal)(AFortPlayerState* a1, AFortPawn* a3) = decltype(ApplyCharacterCustomizationOriginal)(Addresses::ApplyCharacterCustomization);
|
||||
ApplyCharacterCustomizationOriginal(PlayerStateAsFort, PawnAsFort);
|
||||
|
||||
PlayerStateAsFort->ForceNetUpdate();
|
||||
PawnAsFort->ForceNetUpdate();
|
||||
this->ForceNetUpdate();
|
||||
|
||||
return;
|
||||
} */
|
||||
}
|
||||
|
||||
auto CosmeticLoadout = this->GetCosmeticLoadout();
|
||||
|
||||
@@ -160,12 +165,25 @@ void AFortPlayerController::ApplyCosmeticLoadout()
|
||||
}
|
||||
}
|
||||
|
||||
PlayerStateAsFort->ForceNetUpdate();
|
||||
PawnAsFort->ForceNetUpdate();
|
||||
this->ForceNetUpdate();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
UFortKismetLibrary::StaticClass()->ProcessEvent(UpdatePlayerCustomCharacterPartsVisualizationFn, &PlayerStateAsFort);
|
||||
}
|
||||
|
||||
void AFortPlayerController::ServerLoadingScreenDroppedHook(UObject* Context, FFrame* Stack, void* Ret)
|
||||
{
|
||||
auto PlayerController = (AFortPlayerController*)Context;
|
||||
|
||||
PlayerController->ApplyCosmeticLoadout();
|
||||
|
||||
return ServerLoadingScreenDroppedOriginal(Context, Stack, Ret);
|
||||
}
|
||||
|
||||
void AFortPlayerController::ServerRepairBuildingActorHook(AFortPlayerController* PlayerController, ABuildingSMActor* BuildingActorToRepair)
|
||||
{
|
||||
if (!BuildingActorToRepair)
|
||||
@@ -422,7 +440,7 @@ void AFortPlayerController::ServerAttemptInteractHook(UObject* Context, FFrame*
|
||||
|
||||
if (!VehicleWeaponDefinition)
|
||||
{
|
||||
LOG_INFO(LogDev, "Invlaid VehicleWeaponDefinition!");
|
||||
LOG_INFO(LogDev, "Invalid VehicleWeaponDefinition!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user