From 5040f584a2c3a7c4a7fb5cfb146cb774e9106a9f Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Tue, 3 Dec 2019 02:35:28 -0500 Subject: [PATCH] PUG password always on option --- Classic/prefs/serverPrefs.cs | 1 + Classic/scripts/autoexec/MissionTypeOptions.cs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Classic/prefs/serverPrefs.cs b/Classic/prefs/serverPrefs.cs index f8e3a32..173bd0e 100644 --- a/Classic/prefs/serverPrefs.cs +++ b/Classic/prefs/serverPrefs.cs @@ -1441,6 +1441,7 @@ $Host::PlayerRespawnTimeout = 60; $Host::Port = 28000; $Host::PUGautoPassword = 0; $Host::PUGPassword = "pickup"; +$Host::PUGpasswordAlwaysOn = 0; $Host::PureServer = 0; $Host::SCtFProMode = 0; $Host::ShowEndingPlayerScores = 1; diff --git a/Classic/scripts/autoexec/MissionTypeOptions.cs b/Classic/scripts/autoexec/MissionTypeOptions.cs index 32baadc..7972e8b 100644 --- a/Classic/scripts/autoexec/MissionTypeOptions.cs +++ b/Classic/scripts/autoexec/MissionTypeOptions.cs @@ -9,7 +9,8 @@ // $Host::PUGautoPassword = 1; // The PUG password you want // $Host::PUGPassword = "pickup"; -// +// PUG Password is always on no matter what +// $Host::$PUGpasswordAlwaysOn = 1; package MissionTypeOptions { @@ -35,6 +36,9 @@ function loadMissionStage2() $Host::HiVisibility = "1"; } + if( $Host::PUGpasswordAlwaysOn ) + $Host::Password = $Host::PUGPassword; + //Start MapRepetitionChecker schedule(20000, 0, "MapRepetitionChecker", %game);