diff --git a/afk/afk.sp b/afk/afk.sp index fdbd506..b843013 100644 --- a/afk/afk.sp +++ b/afk/afk.sp @@ -25,6 +25,9 @@ Release notes: - Fixed unnecessary tournament restart when server is almost empty +---- 1.2.0 (13/07/2026) ---- +- Treat matches lasting more than one minute as completed instead of reset + */ #pragma semicolon 1 @@ -37,7 +40,7 @@ Release notes: #undef REQUIRE_PLUGIN #include -#define PLUGIN_VERSION "1.1.3" +#define PLUGIN_VERSION "1.2.0" #define UPDATE_URL "https://sourcemod.krus.dk/afk/update.txt" diff --git a/afk/update.txt b/afk/update.txt index ee3c55a..22bd400 100644 --- a/afk/update.txt +++ b/afk/update.txt @@ -4,11 +4,11 @@ { "Version" { - "Latest" "1.1.3" + "Latest" "1.2.0" } - "Notes" "Changes in 1.1.3:" - "Notes" "- Fixed unnecessary tournament restart when server is almost empty" + "Notes" "Changes in 1.2.0:" + "Notes" "- Treat matches lasting more than one minute as completed instead of reset" } "Files" diff --git a/classwarning/classwarning.sp b/classwarning/classwarning.sp index 53fa5c2..aa3883e 100644 --- a/classwarning/classwarning.sp +++ b/classwarning/classwarning.sp @@ -22,6 +22,10 @@ Release notes: ---- 1.1.3 (27/07/2025) ---- - Fixed unnecessary tournament restart when server is almost empty + +---- 1.2.0 (13/07/2026) ---- +- Treat matches lasting more than one minute as completed instead of reset + */ #pragma semicolon 1 @@ -36,7 +40,7 @@ Release notes: #undef REQUIRE_PLUGIN #include -#define PLUGIN_VERSION "1.1.3" +#define PLUGIN_VERSION "1.2.0" #define UPDATE_URL "https://sourcemod.krus.dk/classwarning/update.txt" diff --git a/classwarning/update.txt b/classwarning/update.txt index ff599e4..bc843ae 100644 --- a/classwarning/update.txt +++ b/classwarning/update.txt @@ -4,11 +4,11 @@ { "Version" { - "Latest" "1.1.3" + "Latest" "1.2.0" } - "Notes" "Changes in 1.1.3:" - "Notes" "- Fixed unnecessary tournament restart when server is almost empty" + "Notes" "Changes in 1.2.0:" + "Notes" "- Treat matches lasting more than one minute as completed instead of reset" } "Files" diff --git a/includes/match.inc b/includes/match.inc index b7a78ec..670a14a 100644 --- a/includes/match.inc +++ b/includes/match.inc @@ -305,24 +305,7 @@ void Match_ResetMatch() { g_bIsBonusRoundTime = false; - bool wasReset = true; - int timeleft = GetTimeLeft(); - int winlimit = match_hCvarWinlimit.IntValue; - int windiff = match_hCvarWindiff.IntValue; - int maxrounds = match_hCvarMaxRounds.IntValue; - int blueScore = GetTeamScore(view_as(TFTeam_Blue)); - int redScore = GetTeamScore(view_as(TFTeam_Red)); - - if (GetEngineTime() - g_fMatchStartTime <= 30) - wasReset = true; - else if (timeleft != -1 && timeleft < 9 * 60) // Less than 9 minutes left - wasReset = false; - else if (winlimit > 1 && ((winlimit - blueScore) <= 1 || (winlimit - redScore) <= 1)) - wasReset = false; - else if (windiff > 1 && windiff - Math_Abs(redScore - blueScore) <= 1) - wasReset = false; - else if (maxrounds > 1 && (maxrounds - g_iRoundsPlayed) <= 1) - wasReset = false; + bool wasReset = GetEngineTime() - g_fMatchStartTime <= 60.0; if (!wasReset) { EndMatch(true); diff --git a/logstf/logstf.sp b/logstf/logstf.sp index 463a8f0..4531d1f 100644 --- a/logstf/logstf.sp +++ b/logstf/logstf.sp @@ -142,6 +142,10 @@ Release notes: - Use HTTPS for log uploads - by Arie +---- 3.0.0 (13/07/2026) ---- +- Treat matches lasting more than one minute as completed instead of reset + + TODO: - Some people run multiple instances of the same server (located in the same directory). This is a problem, because they all write to the same logstf.log file. Make the logstf.log and -partial files have dynamic names, and don't forget to clean them up. - Sanitize names for < and >, since logs.tf doesn't like those @@ -163,7 +167,7 @@ TODO: #undef REQUIRE_PLUGIN #include -#define PLUGIN_VERSION "2.9.0" +#define PLUGIN_VERSION "3.0.0" #define UPDATE_URL "https://sourcemod.krus.dk/logstf/update.txt" #define LOG_PATH "logstf.log" diff --git a/logstf/update.txt b/logstf/update.txt index 20f62fb..6c0e74f 100644 --- a/logstf/update.txt +++ b/logstf/update.txt @@ -4,12 +4,11 @@ { "Version" { - "Latest" "2.9.0" + "Latest" "3.0.0" } - "Notes" "Changes in 2.9.0:" - "Notes" "- Scrub IPs from logs - by Arie" - "Notes" "- Use HTTPS for log uploads - by Arie" + "Notes" "Changes in 3.0.0:" + "Notes" "- Treat matches lasting more than one minute as completed instead of reset" } "Files" diff --git a/recordstv/recordstv.sp b/recordstv/recordstv.sp index 874e9b0..42f1baa 100644 --- a/recordstv/recordstv.sp +++ b/recordstv/recordstv.sp @@ -23,6 +23,10 @@ Release notes: - Fixed unnecessary tournament restart when server is almost empty +---- 1.2.0 (13/07/2026) ---- +- Treat matches lasting more than one minute as completed instead of reset + + TODO: - Automatic zipping of match*.dem files @@ -40,7 +44,7 @@ TODO: #include -#define PLUGIN_VERSION "1.1.3" +#define PLUGIN_VERSION "1.2.0" #define UPDATE_URL "https://sourcemod.krus.dk/recordstv/update.txt" diff --git a/recordstv/update.txt b/recordstv/update.txt index 03b9b74..b1efb28 100644 --- a/recordstv/update.txt +++ b/recordstv/update.txt @@ -4,11 +4,11 @@ { "Version" { - "Latest" "1.1.3" + "Latest" "1.2.0" } - "Notes" "Changes in 1.1.3:" - "Notes" "- Fixed unnecessary tournament restart when server is almost empty" + "Notes" "Changes in 1.2.0:" + "Notes" "- Treat matches lasting more than one minute as completed instead of reset" } "Files"