TeamKill Logging

This commit is contained in:
ChocoTaco 2021-09-13 17:33:21 -04:00
parent aea38be3b5
commit e6af4d968b
4 changed files with 32 additions and 3 deletions

13
Classic/scripts/autoexec/TKwarn.cs Normal file → Executable file
View file

@ -3,15 +3,22 @@
package TKwarn
{
// From Evo
function DefaultGame::testTeamKill(%game, %victimID, %killerID)
{
{
%tk = Parent::testTeamKill(%game, %victimID, %killerID);
if(!%tk)
return false; // is not a tk
// No Bots
if(%killerID.isAIcontrolled() || %victimID.isAIcontrolled())
return true;
// Log TeamKill
teamkillLog(%victimID, %killerID);
if($Host::TournamentMode || %killerID.isAdmin || %killerID.isAIcontrolled() || %victimID.isAIcontrolled())
// No Admins
if(%killerID.isAdmin)
return true;
// Ignore this map