mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-10 13:44:34 +00:00
Added Anouncer sounds back, Added Pugpasswordcheck
This commit is contained in:
parent
1043178532
commit
f2a83c6ac5
4 changed files with 51 additions and 31 deletions
|
|
@ -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
19
autoexec/PUGpasscheck.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue