fixed dying not working on some versions + fixed teams

This commit is contained in:
Milxnor
2023-03-28 19:19:37 -04:00
parent a5b5eb0e6e
commit 65668f8235
3 changed files with 26 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ void AFortPlayerController::ServerExecuteInventoryItemHook(AFortPlayerController
if (!ItemDefinition)
return;
LOG_INFO(LogDev, "ItemDefinition: {}", ItemDefinition->GetFullName());
// LOG_INFO(LogDev, "ItemDefinition: {}", ItemDefinition->GetFullName());
static auto FortGadgetItemDefinitionClass = FindObject<UClass>("/Script/FortniteGame.FortGadgetItemDefinition");
@@ -637,7 +637,7 @@ void AFortPlayerController::ClientOnPawnDiedHook(AFortPlayerController* PlayerCo
// LOG_INFO(LogDev, "Tags: {}", Tags.ToStringSimple(true));
auto DeathCause = ToDeathCause(Tags, false);
auto DeathCause = ToDeathCause(Tags, false); // DeadPawn->IsDBNO() ??
LOG_INFO(LogDev, "DeathCause: {}", (int)DeathCause);