mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-11 14:14:33 +00:00
TeamKill Logging
This commit is contained in:
parent
aea38be3b5
commit
e6af4d968b
4 changed files with 32 additions and 3 deletions
13
Classic/scripts/autoexec/TKwarn.cs
Normal file → Executable file
13
Classic/scripts/autoexec/TKwarn.cs
Normal file → Executable 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue