From b2b077d6db72161235770cb203f49ae4ab1aba81 Mon Sep 17 00:00:00 2001 From: Kevin Poretti Date: Mon, 16 Jan 2023 20:31:49 -0500 Subject: [PATCH] Actually show which player won during post match --- GravityStomp/Content/Core/BP_GSDefaultGameMode.uasset | 4 ++-- GravityStomp/Content/UI/InGame/WBP_PostMatchMenu.uasset | 4 ++-- .../Source/GravityStompGame/GameModes/GSGameModeBase.cpp | 2 +- .../Source/GravityStompGame/GameModes/GSGameModeBase.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/GravityStomp/Content/Core/BP_GSDefaultGameMode.uasset b/GravityStomp/Content/Core/BP_GSDefaultGameMode.uasset index f1dea48..517c60b 100644 --- a/GravityStomp/Content/Core/BP_GSDefaultGameMode.uasset +++ b/GravityStomp/Content/Core/BP_GSDefaultGameMode.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c9eb0322900b84c3182df90f894d86da2bcc58de9c7f9ffc6de75ac487d36c83 -size 100861 +oid sha256:180289c24c97d3a2c5ae519684d03c4665c3ef2fb118233a178247608c0b85ac +size 104590 diff --git a/GravityStomp/Content/UI/InGame/WBP_PostMatchMenu.uasset b/GravityStomp/Content/UI/InGame/WBP_PostMatchMenu.uasset index abc3cf4..90c175f 100644 --- a/GravityStomp/Content/UI/InGame/WBP_PostMatchMenu.uasset +++ b/GravityStomp/Content/UI/InGame/WBP_PostMatchMenu.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:78aa3748741e25a6ed7002925796a1e5852907956e6b9266f75c3872d6f8b325 -size 133208 +oid sha256:6c2d05fb798da7300f2caf96e296e7add7f9692f52b8fe518f8553a13b9e3b51 +size 129546 diff --git a/GravityStomp/Source/GravityStompGame/GameModes/GSGameModeBase.cpp b/GravityStomp/Source/GravityStompGame/GameModes/GSGameModeBase.cpp index 1e29af7..7e9513b 100644 --- a/GravityStomp/Source/GravityStompGame/GameModes/GSGameModeBase.cpp +++ b/GravityStomp/Source/GravityStompGame/GameModes/GSGameModeBase.cpp @@ -207,7 +207,7 @@ void AGSGameModeBase::FinishMatch() GetWorldTimerManager().ClearTimer(TimerHandle_DefaultTimer); GS->ResetTeamScores(); - OnMatchFinished(); + OnMatchFinished(WinningTeamIdx); } } diff --git a/GravityStomp/Source/GravityStompGame/GameModes/GSGameModeBase.h b/GravityStomp/Source/GravityStompGame/GameModes/GSGameModeBase.h index 28f29d1..e4e6303 100644 --- a/GravityStomp/Source/GravityStompGame/GameModes/GSGameModeBase.h +++ b/GravityStomp/Source/GravityStompGame/GameModes/GSGameModeBase.h @@ -81,7 +81,7 @@ public: void FinishMatch(); UFUNCTION(BlueprintImplementableEvent) - void OnMatchFinished(); + void OnMatchFinished(int32 WinningTeamIdx); /** * If the match is in the post match state calling this restarts the game