mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-11 14:14:33 +00:00
Allow TKlogs to know damageType
This commit is contained in:
parent
f371025ff8
commit
4e039dd195
4 changed files with 10 additions and 7 deletions
|
|
@ -4,7 +4,7 @@ package TKwarn
|
|||
{
|
||||
|
||||
// From Evo
|
||||
function DefaultGame::testTeamKill(%game, %victimID, %killerID)
|
||||
function DefaultGame::testTeamKill(%game, %victimID, %killerID, %damageType)
|
||||
{
|
||||
if(!$countdownStarted && !$MatchStarted)
|
||||
return;
|
||||
|
|
@ -18,7 +18,7 @@ function DefaultGame::testTeamKill(%game, %victimID, %killerID)
|
|||
return true;
|
||||
|
||||
// Log TeamKill
|
||||
teamkillLog(%victimID, %killerID);
|
||||
teamkillLog(%victimID, %killerID, %damageType);
|
||||
|
||||
// No Admins
|
||||
if(%killerID.isAdmin)
|
||||
|
|
@ -92,7 +92,7 @@ function TKkick( %client, %admin, %guid )
|
|||
if ( isObject( %cl ) )
|
||||
{
|
||||
%client.setDisconnectReason( "You have been kicked out of the game for teamkilling." ); // z0dd - ZOD, 7/13/03. Tell who kicked
|
||||
%cl.schedule(700, "delete");
|
||||
%cl.schedule(700, "delete");
|
||||
}
|
||||
// ban by IP as well
|
||||
BanList::add( %guid, %client.getAddress(), $Host::KickBanTime );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue