Preparation for Happy Hour
This commit is contained in:
parent
9a137e6d4a
commit
1f1844185c
@ -1,8 +1,7 @@
|
||||
#include <sourcemod>
|
||||
#include <BossHP>
|
||||
#include <zombiereloaded>
|
||||
|
||||
#include "loghelper.inc"
|
||||
#include <hlstatsx_loghelper>
|
||||
|
||||
#include <basic>
|
||||
#include "CConfig.inc"
|
||||
@ -210,19 +209,19 @@ public void OnBossKilled(any Boss, any Config, int reason)
|
||||
{
|
||||
Format(sBuffer, sizeof(sBuffer), "%s\n1. %N - %d %s", sBuffer, iSortedList[0][0], iSortedList[0][1], sType);
|
||||
|
||||
LogPlayerEvent(iSortedList[0][0], "triggered", "ze_boss_damage_first");
|
||||
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);
|
||||
|
||||
LogPlayerEvent(iSortedList[1][0], "triggered", "ze_boss_damage_second");
|
||||
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);
|
||||
|
||||
LogPlayerEvent(iSortedList[2][0], "triggered", "ze_boss_damage_third");
|
||||
LH_LogPlayerEvent(iSortedList[2][0], "triggered", "ze_boss_damage_third");
|
||||
}
|
||||
|
||||
Format(sBuffer, sizeof(sBuffer), "%s\n*************************", sBuffer);
|
||||
|
@ -1,8 +1,7 @@
|
||||
#pragma semicolon 1
|
||||
|
||||
#include <sourcemod>
|
||||
|
||||
#include "loghelper.inc"
|
||||
#include <hlstatsx_loghelper>
|
||||
|
||||
#pragma newdecls required
|
||||
|
||||
@ -28,11 +27,6 @@ public void OnPluginEnd()
|
||||
UnhookEvent("player_disconnect", EventHook_PlayerDisconnect, EventHookMode_Post);
|
||||
}
|
||||
|
||||
public void OnMapStart()
|
||||
{
|
||||
GetTeams();
|
||||
}
|
||||
|
||||
public void EventHook_PlayerDisconnect(Event hEvent, const char[] sName, bool bDontBroadcast)
|
||||
{
|
||||
bool bIsBot = view_as<bool>(hEvent.GetInt("bot"));
|
||||
@ -66,7 +60,7 @@ public Action Timer_CheckConnectionTime(Handle hThis)
|
||||
char sPlayerEvent[32];
|
||||
Format(sPlayerEvent, sizeof(sPlayerEvent), "staying_server_%d", iConnectionTimeClamped / 60);
|
||||
|
||||
LogPlayerEvent(i, "triggered", sPlayerEvent);
|
||||
LH_LogPlayerEvent(i, "triggered", sPlayerEvent, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <sdkhooks>
|
||||
#include <zombiereloaded>
|
||||
#include <morecolors.inc>
|
||||
#include "loghelper.inc"
|
||||
#include <hlstatsx_loghelper>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma newdecls required
|
||||
@ -38,14 +38,6 @@ public void OnPluginStart()
|
||||
HookEntityOutput("func_button", "OnPressed", OnPressed);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
public void OnMapStart()
|
||||
{
|
||||
GetTeams();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
@ -74,7 +66,7 @@ public void OnStartTouch(const char[] sOutput, int iCaller, int iActivator, floa
|
||||
|
||||
CreateTimer(g_cCD.FloatValue, ResetCD);
|
||||
|
||||
LogPlayerEvent(iActivator, "triggered", "trigger");
|
||||
LH_LogPlayerEvent(iActivator, "triggered", "trigger", true);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
@ -106,7 +98,7 @@ public void OnPressed(const char[] sOutput, int iCaller, int iActivator, float f
|
||||
|
||||
CreateTimer(g_cCD.FloatValue, ResetCD);
|
||||
|
||||
LogPlayerEvent(iActivator, "triggered", "trigger");
|
||||
LH_LogPlayerEvent(iActivator, "triggered", "trigger", true);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user