Spring break cleanup.

Cleaning up all useless tabs, spaces, indents, you name it.
This commit is contained in:
zaCade
2018-07-23 17:06:03 +02:00
parent 0e8490f32f
commit c8b3433700
17 changed files with 925 additions and 962 deletions
+19 -19
View File
@@ -27,11 +27,11 @@ char g_sStats[4096];
public Plugin myinfo =
{
name = "AntiBhopCheat",
author = "BotoX",
description = "Detect all kinds of bhop cheats",
version = "0.0",
url = ""
name = "AntiBhopCheat",
autho = "BotoX",
description = "Detect all kinds of bhop cheats",
version = "0.0",
url = ""
};
@@ -51,7 +51,7 @@ public void OnPluginStart()
OnClientPutInServer(client);
}
}
// Api
g_hOnClientDetected = CreateGlobalForward("AntiBhopCheat_OnClientDetected", ET_Ignore, Param_Cell, Param_String, Param_String);
}
@@ -364,7 +364,7 @@ NotifyAdmins(int client, const char[] sReason)
PrintStreak(i, client, -1, true);
}
}
Forward_OnDetected(client, sReason, g_sStats)
}
@@ -421,7 +421,7 @@ void PrintStats(int client, int iTarget)
PrintToConsole(client, "Global jumps: %d | Hyper?: %.1f%% | Hack?: %.1f%%",
iGlobalJumps, HyperRatio * 100.0, HackRatio * 100.0);
int aGlobalJumps[3];
Player.GetJumps(aGlobalJumps);
@@ -430,7 +430,7 @@ void PrintStats(int client, int iTarget)
(aGlobalJumps[1] / float(iGlobalJumps)) * 100.0,
(aGlobalJumps[2] / float(iGlobalJumps)) * 100.0);
PrintToConsole(client, "more to come...");
}
@@ -475,9 +475,9 @@ public Action Command_Streak(int client, int argc)
void PrintStreak(int client, int iTarget, int iStreak, bool bDetected=false)
{
g_sStats = "";
PrintToConsole(client, "[SM] Bunnyhop streak %d for %L", iStreak, iTarget);
if (bDetected)
Format(g_sStats, sizeof(g_sStats), "%sBunnyhop streak %d for %L\n",
g_sStats, iStreak, iTarget);
@@ -517,7 +517,7 @@ void PrintStreak(int client, int iTarget, int iStreak, bool bDetected=false)
PrintToConsole(client, "Streak jumps: %d | Hyper?: %.1f%% | Hack?: %.1f%%",
iStreakJumps, HyperRatio * 100.0, HackRatio * 100.0);
if (bDetected)
Format(g_sStats, sizeof(g_sStats), "%sStreak jumps: %d | Hyper?: %.1f%% | Hack?: %.1f%%\n",
g_sStats, iStreakJumps, HyperRatio * 100.0, HackRatio * 100.0);
@@ -529,17 +529,17 @@ void PrintStreak(int client, int iTarget, int iStreak, bool bDetected=false)
(aStreakJumps[0] / float(iStreakJumps)) * 100.0,
(aStreakJumps[1] / float(iStreakJumps)) * 100.0,
(aStreakJumps[2] / float(iStreakJumps)) * 100.0);
if (bDetected)
Format(g_sStats, sizeof(g_sStats), "%sStreak jumps perf group (1 2 +): %1.f%% %1.f%% %1.f%%\n",
g_sStats,
g_sStats,
(aStreakJumps[0] / float(iStreakJumps)) * 100.0,
(aStreakJumps[1] / float(iStreakJumps)) * 100.0,
(aStreakJumps[2] / float(iStreakJumps)) * 100.0);
PrintToConsole(client, "#%2s %5s %7s %7s %5s %5s %8s %4s %6s %s",
"id", " diff", " invel", " outvel", " gain", " comb", " avgdist", " num", " avg+-", "pattern");
if (bDetected)
Format(g_sStats, sizeof(g_sStats), "%s#%2s %5s %7s %7s %5s %5s %8s %4s %6s %s\n",
g_sStats, "id", " diff", " invel", " outvel", " gain", " comb", " avgdist", " num", " avg+-", "pattern");
@@ -624,10 +624,10 @@ void PrintStreak(int client, int iTarget, int iStreak, bool bDetected=false)
iPresses,
fAvgDownUp,
sPattern);
if (bDetected)
Format(g_sStats, sizeof(g_sStats), "%s#%2d %4d%% %7.1f %7.1f %4d%% %4d%% %8.2f %4d %6.2f %s\n",
g_sStats,
g_sStats,
i,
fPrevVel == 0.0 ? 100 : RoundFloat((fInVel / fPrevVel) * 100.0 - 100.0),
fInVel,
@@ -651,6 +651,6 @@ bool Forward_OnDetected(int client, const char[] reason, const char[] stats)
Call_PushString(reason);
Call_PushString(stats);
Call_Finish();
g_sStats = "";
}