I do not have a github account so I need someone else to help push these patches upstream to SirPlease github
what these patches does is remove all the printtoserver with all the escaped hex control codes which is not really needed to show on the server as it is sent to all the clients
the code below is in git diff format for easy import into a branch or fork
Code:
diff --git a/addons/sourcemod/scripting/1v1_skeetstats.sp b/addons/sourcemod/scripting/1v1_skeetstats.sp
index a65ac3c..da2edbf 100644
--- a/addons/sourcemod/scripting/1v1_skeetstats.sp
+++ b/addons/sourcemod/scripting/1v1_skeetstats.sp
@@ -785,7 +785,7 @@ String: PrintSkeetStats(toClient)
StrCat(printBuffer, sizeof(printBuffer), tmpBuffer);
if (!toClient) {
- PrintToServer("\x01%s", printBuffer);
+ //PrintToServer("\x01%s", printBuffer);
PrintToChatAll("\x01%s", printBuffer);
} else if (IsClientAndInGame(toClient)) {
PrintToChat(toClient, "\x01%s", printBuffer);
@@ -799,7 +799,7 @@ String: PrintSkeetStats(toClient)
StrCat(printBuffer, sizeof(printBuffer), tmpBuffer);
if (!toClient) {
- PrintToServer("\x01%s", printBuffer);
+ //PrintToServer("\x01%s", printBuffer);
PrintToChatAll("\x01%s", printBuffer);
} else if (IsClientAndInGame(toClient)) {
PrintToChat(toClient, "\x01%s", printBuffer);
@@ -831,7 +831,7 @@ String: PrintSkeetStats(toClient)
StrCat(printBuffer, sizeof(printBuffer), tmpBuffer);
if (!toClient) {
- PrintToServer("\x01%s", printBuffer);
+ //PrintToServer("\x01%s", printBuffer);
PrintToChatAll("\x01%s", printBuffer);
} else if (IsClientAndInGame(toClient)) {
PrintToChat(toClient, "\x01%s", printBuffer);
diff --git a/addons/sourcemod/scripting/l4d2_penalty_bonus.sp b/addons/sourcemod/scripting/l4d2_penalty_bonus.sp
index ef9ed97..f845182 100644
--- a/addons/sourcemod/scripting/l4d2_penalty_bonus.sp
+++ b/addons/sourcemod/scripting/l4d2_penalty_bonus.sp
@@ -398,7 +398,7 @@ stock DisplayBonus(client=-1)
} else if (client) {
PrintToChat(client, "\x01%s: %s", msgPartHdr, msgPartBon);
} else {
- PrintToServer("\x01%s: %s", msgPartHdr, msgPartBon);
+ //PrintToServer("\x01%s: %s", msgPartHdr, msgPartBon);
}
}
}
@@ -424,7 +424,7 @@ stock ReportChange(bonusChange, client=-1, absoluteSet=false)
} else if (client) {
PrintToChat(client, "\x01%s", msgPartBon);
} else {
- PrintToServer("\x01%s", msgPartBon);
+ //PrintToServer("\x01%s", msgPartBon);
}
}
diff --git a/addons/sourcemod/scripting/l4d2_playstats.sp b/addons/sourcemod/scripting/l4d2_playstats.sp
index 3227d73..0d77d63 100644
--- a/addons/sourcemod/scripting/l4d2_playstats.sp
+++ b/addons/sourcemod/scripting/l4d2_playstats.sp
@@ -3135,7 +3135,7 @@ stock DisplayStatsMVPChat( client, bool:bRound = true, bool:bTeam = true, iTeam
printBuffer = GetMVPChatString( bRound, bTeam, iTeam );
if ( client == -1 ) {
- PrintToServer("\x01%s", printBuffer);
+ //PrintToServer("\x01%s", printBuffer);
}
// PrintToChatAll has a max length. Split it in to individual lines to output separately
@@ -3147,7 +3147,7 @@ stock DisplayStatsMVPChat( client, bool:bRound = true, bool:bTeam = true, iTeam
}
else if ( client == 0 ) {
for ( i = 0; i < intPieces; i++ ) {
- PrintToServer("\x01%s", strLines[i]);
+ //PrintToServer("\x01%s", strLines[i]);
}
}
else {
@@ -3718,7 +3718,7 @@ stock DisplayStatsFunFactChat( client, bool:bRound = true, bool:bTeam = true, iT
if ( !strlen(printBuffer) ) { return; }
if ( client == -1 ) {
- PrintToServer("\x01%s", printBuffer);
+ //PrintToServer("\x01%s", printBuffer);
}
// PrintToChatAll has a max length. Split it in to individual lines to output separately
@@ -3731,7 +3731,7 @@ stock DisplayStatsFunFactChat( client, bool:bRound = true, bool:bTeam = true, iT
}
else if ( client == 0 ) {
for ( i = 0; i < intPieces; i++ ) {
- PrintToServer("\x01%s", strLines[i]);
+ //PrintToServer("\x01%s", strLines[i]);
}
}
else {
diff --git a/addons/sourcemod/scripting/survivor_mvp.sp b/addons/sourcemod/scripting/survivor_mvp.sp
index 46af861..868f25e 100644
--- a/addons/sourcemod/scripting/survivor_mvp.sp
+++ b/addons/sourcemod/scripting/survivor_mvp.sp
@@ -557,7 +557,7 @@ public Action:SurvivorMVP_Cmd(client, args)
}
else
{
- PrintToServer("\x01%s", printBuffer);
+ //PrintToServer("\x01%s", printBuffer);
}
PrintLoserz(true, client);
}
@@ -573,7 +573,7 @@ public Action:delayedMVPPrint(Handle:timer)
new String:strLines[8][192];
printBuffer = GetMVPString();
- PrintToServer("\x01%s", printBuffer);
+ //PrintToServer("\x01%s", printBuffer);
// PrintToChatAll has a max length. Split it in to individual lines to output separately
new intPieces = ExplodeString(printBuffer, "\n", strLines, sizeof(strLines), sizeof(strLines[]));