From 7f384d0ccff133cfb80032534fb9ca5d1ec0e357 Mon Sep 17 00:00:00 2001 From: x3rt Date: Fri, 13 Dec 2024 23:44:25 -0700 Subject: [PATCH 1/3] Stop indefinitely granting the reward --- mod/Jailbreak.RTD/Rewards/ColorReward.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/mod/Jailbreak.RTD/Rewards/ColorReward.cs b/mod/Jailbreak.RTD/Rewards/ColorReward.cs index 14efbc5..b725c38 100644 --- a/mod/Jailbreak.RTD/Rewards/ColorReward.cs +++ b/mod/Jailbreak.RTD/Rewards/ColorReward.cs @@ -45,7 +45,6 @@ public bool CanGrantReward(CCSPlayerController player) { public bool GrantReward(CCSPlayerController player) { player.SetColor(color); - Server.RunOnTick(Server.TickCount + 2, () => GrantReward(player)); return true; } } \ No newline at end of file From cb5a6cc1d004780dd7871ae11a21b4d886ad47ed Mon Sep 17 00:00:00 2001 From: MSWS Date: Sun, 15 Dec 2024 15:49:40 -0800 Subject: [PATCH 2/3] Re-enable transparent reward --- mod/Jailbreak.RTD/Rewards/TransparentReward.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/Jailbreak.RTD/Rewards/TransparentReward.cs b/mod/Jailbreak.RTD/Rewards/TransparentReward.cs index 9c5739f..8cf8ea0 100644 --- a/mod/Jailbreak.RTD/Rewards/TransparentReward.cs +++ b/mod/Jailbreak.RTD/Rewards/TransparentReward.cs @@ -9,5 +9,5 @@ public class TransparentReward() public override string Description => "You will spawn transparent next round."; - public override bool Enabled => false; + public override bool Enabled => true; } \ No newline at end of file From 4d92075524eb51164e4edc026d6a2e4000d6d652 Mon Sep 17 00:00:00 2001 From: MSWS Date: Sun, 15 Dec 2024 15:50:04 -0800 Subject: [PATCH 3/3] Remove manual set-colors --- mod/Jailbreak.RTD/RTDRewarder.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/mod/Jailbreak.RTD/RTDRewarder.cs b/mod/Jailbreak.RTD/RTDRewarder.cs index 2478bd8..02d17f0 100644 --- a/mod/Jailbreak.RTD/RTDRewarder.cs +++ b/mod/Jailbreak.RTD/RTDRewarder.cs @@ -38,8 +38,6 @@ public HookResult OnSpawn(EventPlayerSpawn @event, GameEventInfo info) { if (reward == null) return HookResult.Continue; if (!reward.CanGrantReward(player)) return HookResult.Continue; - player.SetColor(Color.White); - Server.RunOnTick(Server.TickCount + 2, () => { if (!player.IsValid) return; if (reward.Name != "Nothing")