mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
20 lines
478 B
C#
20 lines
478 B
C#
//To activate a password in certain gamemodes
|
|
//called in Getcounts.cs
|
|
function CheckPUGpassword()
|
|
{
|
|
if( $CurrentMissionType !$= "LakRabbit" ) {
|
|
|
|
if( $Host::TournamentMode )
|
|
$Host::Password = "pickup";
|
|
else if( ($AllPlayerCount < 10) && !$Host::TournamentMode )
|
|
$Host::Password = "";
|
|
|
|
if($AllPlayerCount >= 10) {
|
|
$Host::Password = "pickup";
|
|
}
|
|
}
|
|
else if( $CurrentMissionType $= "LakRabbit" ) {
|
|
$Host::Password = "";
|
|
$Host::TournamentMode = 0;
|
|
}
|
|
} |