From 9a38642f95d5d1aa2bb00eff2daa276b9db076df Mon Sep 17 00:00:00 2001 From: Altair Sossai Date: Thu, 25 Jul 2024 09:14:05 -0300 Subject: [PATCH] chore: Refactor l4d2_playstats_sync.sp to use RoundStart_Event instead of Event_RoundStart --- .../plugins/optional/l4d2_playstats_sync.smx | Bin 11932 -> 12071 bytes .../scripting/l4d2_playstats_sync.sp | 60 +++++++++--------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/addons/sourcemod/plugins/optional/l4d2_playstats_sync.smx b/addons/sourcemod/plugins/optional/l4d2_playstats_sync.smx index b4bbd291251658d39befe34f2afb6e35a48d82d4..a02ed359f9f6177ade3f6cf587512e7ec9ff523d 100644 GIT binary patch delta 11868 zcmXY#1yCGK*R~f41OhA?B)CJ6;0_7y?wa5P3(jH#4-nifxVyWvOM(+1KycgO&f*Rq z?_Yn_+;v~mb-GViS9Q;v&N3-A#g>&-*Fr`@V&VjWB%%|r)c`qc5QqZ=0+ri=K+MP> zkl+hX+Jit2FD&!IVoo4X6A}od`NF5pAW-xRo4l~U3kXE`;xD0~gcqiNamb6BU)b-( z!(YVZ3IbKVc=C%@UYPpDb6@oM!fh{kD?lJ7P;(#%g!|Ii^rHS3#(GK6`@)k!AkfJR zkH0W1I0+eP8z3C^uxX{2HOI>{>7)Jl0|_-893wj=|GF#o6FytRZG1wi6-DBgB2qi+ z^xAC7`YFTM1s?HH@kHEArEryiZNJUv3Bgr*V`aY%Hcx)87KLa>@{P_IDTl-@at<1< zmfPz7<43dZ{p03N*|rt%1ZPWTfng2*rX6@7zqAQa%u)b(7?z) z68-_*g|O0c5e1|uJ?8x_jYdeb{_Q7sj-;Gpii9izVSh{_#o~? zy~9MkA>dUm@G1s))egKW1YUgwUS$BU5`kAez^m-wRWY!sOu8J@7x6&Zm51(JiS7&w zCcXyXD&7cHZ^XC{g2M+<NZ+CgB2J4M9ICLO+Q{Kj}h0DL_AIKtIVqKlzS+ z5{s^usgt3%(`%1_zxsdio<0aPQQ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3SF3)~ z@-o>u+|^i_VN2~=!CZfxFwog87P8y=FjXdmC)t}(%GX?M(F=^6AwCM!flrl_E&GIM zJLQJM|6rGYiXT$gv;C%6!%GK?PD$9j`KjP^UF>Tj#Wj4AQ0J~$ZR12*X4qjsLS~rh zcf-Y8>bJnu@^6WjG|*J=+#XlrGi%MlnJca&dXBTj zSH|jT>V!yh>uLZyQF4kpfj+{#qbMo*a%n6^NF!H!-%73sOjH0it)26_1h1Ev=dz86 z{w?U#AGYX#zaV&PhDT<&K~hOcM%lVzF!o^yc)CgxNI>5{J))FZ*4TPOB&DM@`hUQM B6{-LL diff --git a/addons/sourcemod/scripting/l4d2_playstats_sync.sp b/addons/sourcemod/scripting/l4d2_playstats_sync.sp index 311199b9b..c31f5e0af 100644 --- a/addons/sourcemod/scripting/l4d2_playstats_sync.sp +++ b/addons/sourcemod/scripting/l4d2_playstats_sync.sp @@ -37,17 +37,11 @@ public void OnPluginStart() RegConsoleCmd("sm_rmix", RankingMixCmd); RegConsoleCmd("sm_localhost", LocalHostCmd); - HookEvent("round_start", Event_RoundStart, EventHookMode_PostNoCopy); + HookEvent("round_start", RoundStart_Event, EventHookMode_PostNoCopy); CreateTimer(200.0, DisplayStatsUrlTick, _, TIMER_REPEAT); } -public void Event_RoundStart(Event hEvent, const char[] eName, bool dontBroadcast) -{ - ClearMixVotes(); - Sync(); -} - public void OnRoundIsLive() { BlockMixVotes(); @@ -63,37 +57,43 @@ public void OnClientPutInServer(int client) CreateTimer(60.0, ShowRankingTick, client); } -public Action SyncStatsCmd(int client, int args) +Action SyncStatsCmd(int client, int args) { Sync(); return Plugin_Handled; } -public Action ShowRankingCmd(int client, int args) +Action ShowRankingCmd(int client, int args) { ShowRanking(client); return Plugin_Handled; } -public Action LastMatchCmd(int client, int args) +Action LastMatchCmd(int client, int args) { LastMatch(client); return Plugin_Handled; } -public Action RankingMixCmd(int client, int args) +Action RankingMixCmd(int client, int args) { RankingMix(client); return Plugin_Handled; } -public Action LocalHostCmd(int client, int args) +Action LocalHostCmd(int client, int args) { ShowMOTDPanel(client, "localhost", "http://localhost:5000", MOTDPANEL_TYPE_URL); return Plugin_Handled; } -public Action DisplayStatsUrlTick(Handle timer) +void RoundStart_Event(Event hEvent, const char[] eName, bool dontBroadcast) +{ + ClearMixVotes(); + Sync(); +} + +Action DisplayStatsUrlTick(Handle timer) { if (!IsInReady() || GameInProgress()) return Plugin_Continue; @@ -105,7 +105,7 @@ public Action DisplayStatsUrlTick(Handle timer) return Plugin_Continue; } -public Action ShowRankingTick(Handle timer, int client) +Action ShowRankingTick(Handle timer, int client) { if (!IsInReady() || GameInProgress()) return Plugin_Continue; @@ -115,7 +115,7 @@ public Action ShowRankingTick(Handle timer, int client) return Plugin_Handled; } -public void Sync() +void Sync() { char logsPath[128] = "logs/"; BuildPath(Path_SM, logsPath, PLATFORM_MAX_PATH, logsPath); @@ -133,7 +133,7 @@ public void Sync() } } -public void SyncFile(String:fileName[]) +void SyncFile(String:fileName[]) { char filePath[128]; FormatEx(filePath, sizeof(filePath), "%s%s", "logs/", fileName); @@ -178,7 +178,7 @@ void SyncFileResponse(HTTPResponse httpResponse, any value) DeleteFile(filePath); } -public void ClearCache() +void ClearCache() { new String:web_url[100]; GetConVarString(cvar_playstats_web_url, web_url, sizeof(web_url)); @@ -196,7 +196,7 @@ void ClearCacheResponse(HTTPResponse httpResponse, any value) { } -public void ShowRanking(int client) +void ShowRanking(int client) { new String:web_url[100]; GetConVarString(cvar_playstats_web_url, web_url, sizeof(web_url)); @@ -207,7 +207,7 @@ public void ShowRanking(int client) ShowMOTDPanel(client, "L4D2 | Players Ranking", path, MOTDPANEL_TYPE_URL); } -public void LastMatch(int client) +void LastMatch(int client) { new String:web_url[100]; GetConVarString(cvar_playstats_web_url, web_url, sizeof(web_url)); @@ -364,7 +364,7 @@ void RankingMixResponse(HTTPResponse httpResponse, int any) PrintToChatAll(infectedTeam); } -public void MoveAllPlayersToSpectated() +void MoveAllPlayersToSpectated() { for (int client = 1; client <= MaxClients; client++) { @@ -375,12 +375,12 @@ public void MoveAllPlayersToSpectated() } } -public void MovePlayerToSpectator(int client) +void MovePlayerToSpectator(int client) { ChangeClientTeam(client, L4D2_TEAM_SPECTATOR); } -public void MovePlayerToSurvivor(int client) +void MovePlayerToSurvivor(int client) { int bot = FindSurvivorBot(); if (bot <= 0) @@ -392,12 +392,12 @@ public void MovePlayerToSurvivor(int client) SetCommandFlags("sb_takecontrol", flags); } -public void MovePlayerToInfected(int client) +void MovePlayerToInfected(int client) { ChangeClientTeam(client, L4D2_TEAM_INFECTED); } -public int FindSurvivorBot() +int FindSurvivorBot() { for (int client = 1; client <= MaxClients; client++) if(IsClientInGame(client) && IsFakeClient(client) && GetClientTeam(client) == L4D2_TEAM_SURVIVOR) @@ -406,14 +406,14 @@ public int FindSurvivorBot() return -1; } -public bool SurvivorOrInfected(int client) +bool SurvivorOrInfected(int client) { int clientTeam = GetClientTeam(client); return clientTeam == L4D2_TEAM_SURVIVOR || clientTeam == L4D2_TEAM_INFECTED; } -public bool GameInProgress() +bool GameInProgress() { int teamAScore = L4D2Direct_GetVSCampaignScore(0); int teamBScore = L4D2Direct_GetVSCampaignScore(1); @@ -421,7 +421,7 @@ public bool GameInProgress() return teamAScore != 0 || teamBScore != 0; } -public int NumberOfPlayersInTeams() +int NumberOfPlayersInTeams() { int count = 0; @@ -436,7 +436,7 @@ public int NumberOfPlayersInTeams() return count; } -public bool CanRunMix(int client) +bool CanRunMix(int client) { bool admin = GetAdminFlag(GetUserAdmin(client), Admin_Changemap); if (admin) @@ -445,13 +445,13 @@ public bool CanRunMix(int client) return mixVotes >= NEEDED_FOR_THE_MIX; } -public void ClearMixVotes() +void ClearMixVotes() { mixVotes = 0; mixBlocked = false; } -public void BlockMixVotes() +void BlockMixVotes() { mixVotes = 0; mixBlocked = true;