i am just going to assume it logs correctly to console

This commit is contained in:
jenz 2026-07-13 23:11:35 +02:00
parent e3e5945e77
commit b6e7443448

View File

@ -1,7 +1,6 @@
#include <sourcemod>
#include <BossHP>
#include <zombiereloaded>
#include <hlstatsx_loghelper>
ArrayList g_hStats[MAXPLAYERS+1];
@ -208,19 +207,16 @@ public void OnBossKilled(CBoss Boss, CConfig Config, int reason)
{
Format(sBuffer, sizeof(sBuffer), "%s\n1. %N - %d %s", sBuffer, iSortedList[0][0], iSortedList[0][1], sType);
LH_LogPlayerEvent(iSortedList[0][0], "triggered", "ze_boss_damage_first", true);
}
if (iSortedList[1][0])
{
Format(sBuffer, sizeof(sBuffer), "%s\n2. %N - %d %s", sBuffer, iSortedList[1][0], iSortedList[1][1], sType);
LH_LogPlayerEvent(iSortedList[1][0], "triggered", "ze_boss_damage_second", true);
}
if (iSortedList[2][0])
{
Format(sBuffer, sizeof(sBuffer), "%s\n3. %N - %d %s", sBuffer, iSortedList[2][0], iSortedList[2][1], sType);
LH_LogPlayerEvent(iSortedList[2][0], "triggered", "ze_boss_damage_third", true);
}
Format(sBuffer, sizeof(sBuffer), "%s\n*************************", sBuffer);
@ -280,6 +276,36 @@ public void OnBossKilled(CBoss Boss, CConfig Config, int reason)
}
else
PrintToChatAll(sBuffer);
char sBuffer_rest[8192];
for (int i = 0; i <= MaxClients; i++)
{
if (iSortedList[i][0])
{
Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n%i. %N - %d %s", sBuffer_rest, i, iSortedList[i][0], iSortedList[i][1], sType);
}
}
for (int i = 0; i <= MaxClients; i++)
{
if (IsValidClient(i) && ZR_IsClientHuman(i))
{
bool inlist = false;
for (int j = 0; j <= MaxClients; j++)
{
if (iSortedList[j][0] == i)
{
inlist = true;
break;
}
}
if (!inlist)
{
Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n-1. %N - Did not shoot.", sBuffer_rest, i);
}
}
}
//printing all damage output to console
PrintToConsoleAll(sBuffer_rest);
}
}
}