hlstats: add extra points for a nade kill

This commit is contained in:
dogan 2020-07-19 00:08:48 +02:00
parent 01d9a20a5c
commit 611b95c505

View File

@ -208,6 +208,20 @@ public void OnClientDeath(Event hEvent, const char[] sEvent, bool bDontBroadcast
{ {
g_iKillCount[killer] += 1; g_iKillCount[killer] += 1;
} }
char sWepName[64];
GetEventString(hEvent, "weapon", sWepName, sizeof(sWepName));
if (!IsValidClient(client) && !IsValidClient(killer))
return;
if(client != killer && GetClientTeam(client) == CS_TEAM_T && StrEqual(sWepName, "hegrenade"))
{
char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_kill_nade");
LH_LogPlayerEvent(client, "triggered", sPlayerEvent, true);
}
} }
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------