Preparation for Happy Hour

This commit is contained in:
Dogan 2019-06-02 23:21:17 +02:00
parent 583e4b5fcd
commit 71eab6d7a4

View File

@ -1,5 +1,5 @@
#include <cstrike>
#include <loghelper>
#include <hlstatsx_loghelper>
#include <sourcemod>
#include <zombiereloaded>
@ -65,15 +65,6 @@ public void OnPluginStart()
}
AutoExecConfig();
GetTeams();
}
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------
public void OnMapStart()
{
GetTeams();
}
//----------------------------------------------------------------------------------------------------
@ -155,14 +146,14 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
{
if (iAliveHumans == 1)
{
LogPlayerEvent(client, "triggered", "ze_h_win_solo");
LH_LogPlayerEvent(client, "triggered", "ze_h_win_solo", true);
}
else
{
char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_win_%d", g_cvarDifficultyHuman.IntValue);
LogPlayerEvent(client, "triggered", sPlayerEvent);
LH_LogPlayerEvent(client, "triggered", sPlayerEvent, true);
}
}
else if (bAwardZombies && g_bIsZombie[client])
@ -170,21 +161,21 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
if (iAliveZombies == 1)
{
LogPlayerEvent(client, "triggered", "ze_z_win_solo");
LH_LogPlayerEvent(client, "triggered", "ze_z_win_solo", true);
}
else if (g_bMotherZM[client])
{
char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_m_win_%d", g_cvarDifficultyZombie.IntValue);
LogPlayerEvent(client, "triggered", sPlayerEvent);
LH_LogPlayerEvent(client, "triggered", sPlayerEvent, true);
}
else
{
char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_z_win_%d", g_cvarDifficultyZombie.IntValue);
LogPlayerEvent(client, "triggered", sPlayerEvent);
LH_LogPlayerEvent(client, "triggered", sPlayerEvent);
}
}
@ -234,7 +225,7 @@ public void EndKillStreak(int client)
char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_kill_streak_%d", RoundToFloor(float(g_iKillCount[client]) / float(g_cvarStreakInterval.IntValue)) * g_cvarStreakInterval.IntValue);
LogPlayerEvent(client, "triggered", sPlayerEvent);
LH_LogPlayerEvent(client, "triggered", sPlayerEvent, true);
}
else if (g_bIsZombie[client])
{
@ -243,14 +234,14 @@ public void EndKillStreak(int client)
char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_m_kill_streak_%d", RoundToFloor(float(g_iKillCount[client]) / float(g_cvarStreakInterval.IntValue)) * g_cvarStreakInterval.IntValue);
LogPlayerEvent(client, "triggered", sPlayerEvent);
LH_LogPlayerEvent(client, "triggered", sPlayerEvent, true);
}
else
{
char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_z_kill_streak_%d", RoundToFloor(float(g_iKillCount[client]) / float(g_cvarStreakInterval.IntValue)) * g_cvarStreakInterval.IntValue);
LogPlayerEvent(client, "triggered", sPlayerEvent);
LH_LogPlayerEvent(client, "triggered", sPlayerEvent, true);
}
}
}