Preparation for Happy Hour
This commit is contained in:
parent
583e4b5fcd
commit
71eab6d7a4
@ -1,5 +1,5 @@
|
|||||||
#include <cstrike>
|
#include <cstrike>
|
||||||
#include <loghelper>
|
#include <hlstatsx_loghelper>
|
||||||
#include <sourcemod>
|
#include <sourcemod>
|
||||||
#include <zombiereloaded>
|
#include <zombiereloaded>
|
||||||
|
|
||||||
@ -65,15 +65,6 @@ public void OnPluginStart()
|
|||||||
}
|
}
|
||||||
|
|
||||||
AutoExecConfig();
|
AutoExecConfig();
|
||||||
GetTeams();
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
|
||||||
// Purpose:
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
|
||||||
public void OnMapStart()
|
|
||||||
{
|
|
||||||
GetTeams();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
@ -155,14 +146,14 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
|
|||||||
{
|
{
|
||||||
if (iAliveHumans == 1)
|
if (iAliveHumans == 1)
|
||||||
{
|
{
|
||||||
LogPlayerEvent(client, "triggered", "ze_h_win_solo");
|
LH_LogPlayerEvent(client, "triggered", "ze_h_win_solo", true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char sPlayerEvent[32];
|
char sPlayerEvent[32];
|
||||||
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_win_%d", g_cvarDifficultyHuman.IntValue);
|
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])
|
else if (bAwardZombies && g_bIsZombie[client])
|
||||||
@ -170,21 +161,21 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
|
|||||||
|
|
||||||
if (iAliveZombies == 1)
|
if (iAliveZombies == 1)
|
||||||
{
|
{
|
||||||
LogPlayerEvent(client, "triggered", "ze_z_win_solo");
|
LH_LogPlayerEvent(client, "triggered", "ze_z_win_solo", true);
|
||||||
}
|
}
|
||||||
else if (g_bMotherZM[client])
|
else if (g_bMotherZM[client])
|
||||||
{
|
{
|
||||||
char sPlayerEvent[32];
|
char sPlayerEvent[32];
|
||||||
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_m_win_%d", g_cvarDifficultyZombie.IntValue);
|
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_m_win_%d", g_cvarDifficultyZombie.IntValue);
|
||||||
|
|
||||||
LogPlayerEvent(client, "triggered", sPlayerEvent);
|
LH_LogPlayerEvent(client, "triggered", sPlayerEvent, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char sPlayerEvent[32];
|
char sPlayerEvent[32];
|
||||||
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_z_win_%d", g_cvarDifficultyZombie.IntValue);
|
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];
|
char sPlayerEvent[32];
|
||||||
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_kill_streak_%d", RoundToFloor(float(g_iKillCount[client]) / float(g_cvarStreakInterval.IntValue)) * g_cvarStreakInterval.IntValue);
|
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])
|
else if (g_bIsZombie[client])
|
||||||
{
|
{
|
||||||
@ -243,14 +234,14 @@ public void EndKillStreak(int client)
|
|||||||
char sPlayerEvent[32];
|
char sPlayerEvent[32];
|
||||||
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_m_kill_streak_%d", RoundToFloor(float(g_iKillCount[client]) / float(g_cvarStreakInterval.IntValue)) * g_cvarStreakInterval.IntValue);
|
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
|
else
|
||||||
{
|
{
|
||||||
char sPlayerEvent[32];
|
char sPlayerEvent[32];
|
||||||
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_z_kill_streak_%d", RoundToFloor(float(g_iKillCount[client]) / float(g_cvarStreakInterval.IntValue)) * g_cvarStreakInterval.IntValue);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user