From af9c0f0cc147cb91b32ac74d8d70e8d3d4c97b03 Mon Sep 17 00:00:00 2001 From: Jonah Seiler <154778902+CactusJoan@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:57:19 -0400 Subject: [PATCH 1/2] Update MuteSystem.cs Change the initial warden mute time to baseTime / 2 from baseTime This will make rounds more fun :) Ts can talk after 15-30 secs instead 30-60 secs --- mod/Jailbreak.Mute/MuteSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/Jailbreak.Mute/MuteSystem.cs b/mod/Jailbreak.Mute/MuteSystem.cs index 20890aef..cf898d0b 100644 --- a/mod/Jailbreak.Mute/MuteSystem.cs +++ b/mod/Jailbreak.Mute/MuteSystem.cs @@ -173,7 +173,7 @@ private int GetPeaceDuration(MuteReason reason) { MuteReason.ADMIN => baseTime, MuteReason.WARDEN_TAKEN => baseTime / 5, - MuteReason.INITIAL_WARDEN => baseTime, + MuteReason.INITIAL_WARDEN => baseTime / 2, MuteReason.WARDEN_INVOKED => baseTime / 2, _ => baseTime }; @@ -254,4 +254,4 @@ private bool BypassMute(CCSPlayerController player) { return player.IsReal() && AdminManager.PlayerHasPermissions(player, "@css/chat"); } -} \ No newline at end of file +} From 43eae7083866cf75a7ee6056bd6f5aac3e4eb55e Mon Sep 17 00:00:00 2001 From: Jonah Seiler <154778902+CactusJoan@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:52:06 -0400 Subject: [PATCH 2/2] Update MuteSystem.cs --- mod/Jailbreak.Mute/MuteSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/Jailbreak.Mute/MuteSystem.cs b/mod/Jailbreak.Mute/MuteSystem.cs index cf898d0b..2bea9036 100644 --- a/mod/Jailbreak.Mute/MuteSystem.cs +++ b/mod/Jailbreak.Mute/MuteSystem.cs @@ -173,7 +173,7 @@ private int GetPeaceDuration(MuteReason reason) { MuteReason.ADMIN => baseTime, MuteReason.WARDEN_TAKEN => baseTime / 5, - MuteReason.INITIAL_WARDEN => baseTime / 2, + MuteReason.INITIAL_WARDEN => (int) Math.Ceiling(baseTime / 2.0), MuteReason.WARDEN_INVOKED => baseTime / 2, _ => baseTime };