From 8a26a40e907a3a39eb4cee29d8b3bb7f8d2617d8 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sun, 14 May 2023 02:34:29 +0300 Subject: [PATCH 1/2] force show up chat box --- CVC/Classes/CVC_RepInfo.uc | 1 + 1 file changed, 1 insertion(+) diff --git a/CVC/Classes/CVC_RepInfo.uc b/CVC/Classes/CVC_RepInfo.uc index d69436d..1932b9b 100644 --- a/CVC/Classes/CVC_RepInfo.uc +++ b/CVC/Classes/CVC_RepInfo.uc @@ -38,6 +38,7 @@ public reliable client function WriteToChat(String Message, optional String HexC if (KFPC.MyGFxManager.PartyWidget != None && KFPC.MyGFxManager.PartyWidget.PartyChatWidget != None) { + KFPC.MyGFxManager.PartyWidget.PartyChatWidget.SetVisible(true); KFPC.MyGFxManager.PartyWidget.PartyChatWidget.AddChatMessage(Message, HexColor); } From afadeba04c88dd97f21e0817d2d19189fe92f586 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Thu, 29 Jun 2023 02:09:01 +0300 Subject: [PATCH 2/2] dont show notifications if there is one player on server --- CVC/Classes/CVC_VoteCollector.uc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CVC/Classes/CVC_VoteCollector.uc b/CVC/Classes/CVC_VoteCollector.uc index f38ade7..ceed6b3 100644 --- a/CVC/Classes/CVC_VoteCollector.uc +++ b/CVC/Classes/CVC_VoteCollector.uc @@ -37,6 +37,7 @@ var private String KickeeName; var private String YesVotesPlayers, NoVotesPlayers; var private bool AllowHudNotification; +var private bool AllowSTPNotification; // SkipTrader and Pause replication { @@ -646,6 +647,8 @@ public function ServerStartVoteSkipTrader(PlayerReplicationInfo PRI) KFPRI.ShowSkipTraderVote(PRI, CurrentVoteTime, !(KFPRI == PRI) && PRI.GetTeamNum() != 255); } + AllowSTPNotification = KFPRIs.Length > 1; + KFGI.BroadcastLocalized(KFGI, class'KFLocalMessage', LMT_SkipTraderVoteStarted, CurrentSkipTraderVote.PlayerPRI); SetTimer(CurrentVoteTime, false, nameof(ConcludeVoteSkipTrader), Self); SetTimer(1, true, nameof(UpdateTimer), Self); @@ -692,7 +695,7 @@ public reliable server function RecieveVoteSkipTrader(PlayerReplicationInfo PRI, `Log_Trace(); - MustNotify = (PlayersThatHaveVoted.Find(PRI) == INDEX_NONE); + MustNotify = (PlayersThatHaveVoted.Find(PRI) == INDEX_NONE && AllowSTPNotification); Super.RecieveVoteSkipTrader(PRI, bSkip); @@ -807,6 +810,8 @@ public function ServerStartVotePauseGame(PlayerReplicationInfo PRI) KFPRI.ShowPauseGameVote(PRI, CurrentVoteTime, !(KFPRI == PRI)); } + AllowSTPNotification = KFPRIs.Length > 1; + KFGI.BroadcastLocalized(KFGI, class'KFLocalMessage', bIsEndlessPaused ? LMT_ResumeVoteStarted : LMT_PauseVoteStarted, CurrentPauseGameVote.PlayerPRI); SetTimer(CurrentVoteTime, false, nameof(ConcludeVotePauseGame), Self); SetTimer(1, true, nameof(UpdatePauseGameTimer), Self); @@ -853,7 +858,7 @@ public reliable server function ReceiveVotePauseGame(PlayerReplicationInfo PRI, `Log_Trace(); - MustNotify = (PlayersThatHaveVoted.Find(PRI) == INDEX_NONE); + MustNotify = (PlayersThatHaveVoted.Find(PRI) == INDEX_NONE && AllowSTPNotification); Super.ReceiveVotePauseGame(PRI, bSkip); @@ -1118,4 +1123,5 @@ public function int GetNextMap() defaultproperties { AllowHudNotification = true; + AllowSTPNotification = true; }