probably good enough for displaying in console who shot and who did not

This commit is contained in:
jenz 2026-07-25 23:35:46 +02:00
parent fd32ddc101
commit 921ae4e136

View File

@ -277,35 +277,21 @@ 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])
{
char sBuffer_rest[512];
Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n%i. %N - %d %s", sBuffer_rest, i, iSortedList[i][0], iSortedList[i][1], sType);
PrintToConsoleAll(sBuffer_rest);
}
}
for (int i = 0; i <= MaxClients; i++)
{
if (IsValidClient(i) && IsPlayerAlive(i) && ZR_IsClientHuman(i))
else
{
bool inlist = false;
for (int j = 0; j <= MaxClients; j++)
{
if (iSortedList[i][0] && 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);
}
char sBuffer_rest[512];
Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n-1. %N - Did not shoot.", sBuffer_rest, i);
PrintToConsoleAll(sBuffer_rest);
}
}
//printing all damage output to console
PrintToConsoleAll(sBuffer_rest);
}
}
}