mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-22 12:05:21 +00:00
Various Tournament mode fixes
-Issues with antipack not turning off in tournament mode -No teamkill warnings in tournament mode
This commit is contained in:
parent
7063b5f09d
commit
4f5b21dc6c
3 changed files with 23 additions and 5 deletions
|
|
@ -14,18 +14,22 @@ function DefaultGame::testTeamKill(%game, %victimID, %killerID, %damageType)
|
|||
return false; // is not a tk
|
||||
|
||||
// No Bots
|
||||
if(%killerID.isAIcontrolled() || %victimID.isAIcontrolled())
|
||||
return true;
|
||||
//if(%killerID.isAIcontrolled() || %victimID.isAIcontrolled())
|
||||
// return true;
|
||||
|
||||
// Log TeamKill
|
||||
teamkillLog(%victimID, %killerID, %damageType);
|
||||
|
||||
//No warnings in tournament mode
|
||||
if($Host::TournamentMode)
|
||||
return true;
|
||||
|
||||
// No Admins
|
||||
if(%killerID.isAdmin)
|
||||
return true;
|
||||
|
||||
// Ignore this map
|
||||
if($CurrentMission $= "Mac_FlagArena" || $CurrentMission $= "Machineeggs" || $CurrentMission $= "DMP_SimpleFlagArena")
|
||||
if($CurrentMission $= "Mac_FlagArena" || $CurrentMission $= "Machineeggs")
|
||||
return true;
|
||||
|
||||
// warn the player of the imminent kick vote
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue