Various Tournament mode fixes

-Issues with antipack not turning off in tournament mode
-No teamkill warnings in tournament mode
This commit is contained in:
ChocoTaco 2022-01-19 12:46:10 -05:00
parent 7063b5f09d
commit 4f5b21dc6c
3 changed files with 23 additions and 5 deletions

View file

@ -37,7 +37,7 @@ function connectLog(%client, %isDisconnect)
{
// get the client info
%authInfo = %client.getAuthInfo();
%ip = getField(strreplace(%client.getAddress(),":","\t"),1);
%ip = getField(strreplace(%client.getAddress(),":","\t"),1);
// net tournament client present?
if (!%client.t2csri_sentComCertDone)
@ -177,7 +177,7 @@ function teamkillLog(%victimID, %killerID, %damageType)
//Stage in warnings
%s = "";
if(!%killerID.isAdmin) //Admins dont get warnings
if(!%killerID.isAdmin && !$Host::TournamentMode) //Admins dont get warnings. No warnings in Tournament Mode
{
if(%ktk >= $Host::TKWarn1 && %ktk < $Host::TKWarn2)
%s = "[Warned] ";