From 2b62e1543a53f40e8dca44f7989fbc03a7c41948 Mon Sep 17 00:00:00 2001 From: Ravid-A <72127473+Ravid-A@users.noreply.github.com> Date: Fri, 22 Dec 2023 14:53:05 +0200 Subject: [PATCH 1/2] Change TerroristsPlanned to TerroristsPlanted in RoundEndReason I think the reason is to indicate that the terrorists planted the bomb and it exploded no Planned the explotion --- .../Modules/Entities/Constants/RoundEndReason.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/managed/CounterStrikeSharp.API/Modules/Entities/Constants/RoundEndReason.cs b/managed/CounterStrikeSharp.API/Modules/Entities/Constants/RoundEndReason.cs index 3cd5ecb70..0f1fe2486 100644 --- a/managed/CounterStrikeSharp.API/Modules/Entities/Constants/RoundEndReason.cs +++ b/managed/CounterStrikeSharp.API/Modules/Entities/Constants/RoundEndReason.cs @@ -36,9 +36,9 @@ public enum RoundEndReason : uint TerroristsSurrender = 0x11u, // this also triggers match cancelled CTsSurrender = 0x12u, // this also triggers match cancelled - TerroristsPlanned = 0x13u, + TerroristsPlanted = 0x13u, CTsReachedHostage = 0x14u, SurvivalWin = 0x15u, SurvivalDraw = 0x16u } -} \ No newline at end of file +} From e795114ec3af3b95f00c3a5d045798e2bc79e2c5 Mon Sep 17 00:00:00 2001 From: B3none <24966460+B3none@users.noreply.github.com> Date: Fri, 19 Jan 2024 20:05:39 +0000 Subject: [PATCH 2/2] Re-implement RoundEndReason.TerroristsPlanned and mark it as Obsolete --- .../Modules/Entities/Constants/RoundEndReason.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/managed/CounterStrikeSharp.API/Modules/Entities/Constants/RoundEndReason.cs b/managed/CounterStrikeSharp.API/Modules/Entities/Constants/RoundEndReason.cs index 0f1fe2486..2e7e81375 100644 --- a/managed/CounterStrikeSharp.API/Modules/Entities/Constants/RoundEndReason.cs +++ b/managed/CounterStrikeSharp.API/Modules/Entities/Constants/RoundEndReason.cs @@ -1,4 +1,4 @@ -/* +/* * This file is part of CounterStrikeSharp. * CounterStrikeSharp is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,6 +39,9 @@ public enum RoundEndReason : uint TerroristsPlanted = 0x13u, CTsReachedHostage = 0x14u, SurvivalWin = 0x15u, - SurvivalDraw = 0x16u + SurvivalDraw = 0x16u, + + [Obsolete("Use RoundEndReason.TerroristsPlanted instead.")] + TerroristsPlanned = 0x13u } }