From 70021429ea7ae379f9f7a4aa3d80ecd49543f909 Mon Sep 17 00:00:00 2001 From: Gray <84999745+Milxnor@users.noreply.github.com> Date: Mon, 15 Jan 2024 13:41:41 -0500 Subject: [PATCH] kilfeed --- Project Reboot 3.0/FortPlayerController.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/FortPlayerController.cpp b/Project Reboot 3.0/FortPlayerController.cpp index b2a3582..b040ccc 100644 --- a/Project Reboot 3.0/FortPlayerController.cpp +++ b/Project Reboot 3.0/FortPlayerController.cpp @@ -1346,6 +1346,18 @@ void AFortPlayerController::ClientOnPawnDiedHook(AFortPlayerController* PlayerCo DeathCause = ToDeathCause(Tags, false, DeadPawn); // DeadPawn->IsDBNO() ?? + FGameplayTagContainer CopyTags; + + for (int i = 0; i < Tags.GameplayTags.Num(); ++i) + { + CopyTags.GameplayTags.Add(Tags.GameplayTags.at(i)); + } + + for (int i = 0; i < Tags.ParentTags.Num(); ++i) + { + CopyTags.ParentTags.Add(Tags.ParentTags.at(i)); + } + LOG_INFO(LogDev, "DeathCause: {}", (int)DeathCause); LOG_INFO(LogDev, "DeadPawn->IsDBNO(): {}", DeadPawn->IsDBNO()); LOG_INFO(LogDev, "KillerPlayerState: {}", __int64(KillerPlayerState)); @@ -1358,7 +1370,7 @@ void AFortPlayerController::ClientOnPawnDiedHook(AFortPlayerController* PlayerCo *(FVector*)(__int64(DeathInfo) + MemberOffsets::DeathInfo::DeathLocation) = DeathLocation; if (MemberOffsets::DeathInfo::DeathTags != -1) - *(FGameplayTagContainer*)(__int64(DeathInfo) + MemberOffsets::DeathInfo::DeathTags) = Tags; + *(FGameplayTagContainer*)(__int64(DeathInfo) + MemberOffsets::DeathInfo::DeathTags) = CopyTags; if (MemberOffsets::DeathInfo::bInitialized != -1) *(bool*)(__int64(DeathInfo) + MemberOffsets::DeathInfo::bInitialized) = true;