Added Anouncer sounds back, Added Pugpasswordcheck

This commit is contained in:
ChocoTaco 2018-10-09 23:38:21 -04:00
parent 1043178532
commit f2a83c6ac5
4 changed files with 51 additions and 31 deletions

View file

@ -76,7 +76,8 @@ function GetTeamCounts( %game, %client, %respawn )
}
//Check pug pass
CheckPUGpassword();
//Call itself again. Every 5 seconds.
schedule(5000, 0, "GetTeamCounts");

19
autoexec/PUGpasscheck.cs Normal file
View file

@ -0,0 +1,19 @@
//To activate a password in certain gamemodes
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;
}
}