Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion afk/afk.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,7 +40,7 @@ Release notes:
#undef REQUIRE_PLUGIN
#include <updater>

#define PLUGIN_VERSION "1.1.3"
#define PLUGIN_VERSION "1.2.0"
#define UPDATE_URL "https://sourcemod.krus.dk/afk/update.txt"


Expand Down
6 changes: 3 additions & 3 deletions afk/update.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion classwarning/classwarning.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -36,7 +40,7 @@ Release notes:
#undef REQUIRE_PLUGIN
#include <updater>

#define PLUGIN_VERSION "1.1.3"
#define PLUGIN_VERSION "1.2.0"
#define UPDATE_URL "https://sourcemod.krus.dk/classwarning/update.txt"


Expand Down
6 changes: 3 additions & 3 deletions classwarning/update.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
19 changes: 1 addition & 18 deletions includes/match.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(TFTeam_Blue));
int redScore = GetTeamScore(view_as<int>(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);
Expand Down
6 changes: 5 additions & 1 deletion logstf/logstf.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -163,7 +167,7 @@ TODO:
#undef REQUIRE_PLUGIN
#include <updater>

#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"
Expand Down
7 changes: 3 additions & 4 deletions logstf/update.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion recordstv/recordstv.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -40,7 +44,7 @@ TODO:
#include <updater>


#define PLUGIN_VERSION "1.1.3"
#define PLUGIN_VERSION "1.2.0"
#define UPDATE_URL "https://sourcemod.krus.dk/recordstv/update.txt"


Expand Down
6 changes: 3 additions & 3 deletions recordstv/update.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down