mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-27 09:53:35 +00:00
Added Back
This commit is contained in:
parent
a75eba1536
commit
ccf01e22f5
2 changed files with 19 additions and 0 deletions
|
|
@ -2012,6 +2012,7 @@ function LakRabbitGame::gameOver(%game)
|
|||
|
||||
//Put everyone in observer
|
||||
//Mainly for switching to CTF
|
||||
%client.team = 0;
|
||||
%client.lastTeam = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ function DefaultGame::setupClientTeams(%game)
|
|||
%client = ClientGroup.getObject(%i);
|
||||
|
||||
//Put everyone in observer
|
||||
%client.team = 0;
|
||||
%client.lastTeam = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -114,6 +115,23 @@ function serverCmdClientJoinTeam(%client, %team, %admin)
|
|||
}
|
||||
}
|
||||
|
||||
// So flag snatch sound wont play at the end of the match
|
||||
function CTFGame::playerTouchEnemyFlag(%game, %player, %flag)
|
||||
{
|
||||
if(!$missionRunning)
|
||||
return;
|
||||
|
||||
parent::playerTouchEnemyFlag(%game, %player, %flag);
|
||||
}
|
||||
|
||||
function SCtFGame::playerTouchEnemyFlag(%game, %player, %flag)
|
||||
{
|
||||
if(!$missionRunning)
|
||||
return;
|
||||
|
||||
parent::playerTouchEnemyFlag(%game, %player, %flag);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Prevent package from being activated if it is already
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue