From 2e4b832642e894326f59b8775c1eda61789ec976 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Mon, 7 Mar 2022 14:08:41 -0500 Subject: [PATCH] MapChange Centerprint Message Centerprint between mapchanges --- Classic/prefs/serverPrefs.cs | 3 +++ Classic/scripts/autoexec/MissionTypeOptions.cs | 7 +++++++ Classic/scripts/serverDefaults.cs | 7 +++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Classic/prefs/serverPrefs.cs b/Classic/prefs/serverPrefs.cs index 0ac2c09..e532699 100644 --- a/Classic/prefs/serverPrefs.cs +++ b/Classic/prefs/serverPrefs.cs @@ -13,6 +13,7 @@ $Host::AllowPlayerVoteSkipMission = 1; $Host::AllowPlayerVoteTeamDamage = 0; $Host::AllowPlayerVoteTimeLimit = 1; $Host::AllowPlayerVoteTournamentMode = 0; +$Host::AllowPlayerTournamentModeVotekick = 0; $Host::AnimateWithTransitions = 1; $Host::AntiPackEnable = 1; $Host::AntiPackPlayerCount = 6; @@ -139,6 +140,8 @@ $Host::LoadScreenShowLogo = 0; $Host::LoadScreenShowLogoName = "dpub/DPUB_logo"; $Host::LogIntentionalQuit = 1; $Host::Map = "VaubanLak"; +$Host::MapChangeMSG = 0; +$Host::MapChangeMSGContent = "Pickup Night\nSaturday, March 5th\nJoin discord for details"; $Host::MarkDnDObjectives = 1; $Host::MaxBotDifficulty = 0; $Host::MaxMessageLen = 140; diff --git a/Classic/scripts/autoexec/MissionTypeOptions.cs b/Classic/scripts/autoexec/MissionTypeOptions.cs index e5bf44d..baf682e 100644 --- a/Classic/scripts/autoexec/MissionTypeOptions.cs +++ b/Classic/scripts/autoexec/MissionTypeOptions.cs @@ -11,6 +11,10 @@ // $Host::PUGPassword = "pickup"; // PUG Password is always on no matter what // $Host::$PUGpasswordAlwaysOn = 1; +// Enable a center print between map changes +// $Host::MapChangeMSG = 0; +// Message Content +// $Host::MapChangeMSGContent = "Pickup Night\nSaturday, March 5th\nJoin discord for details"; package MissionTypeOptions { @@ -62,6 +66,9 @@ function loadMissionStage2() deactivatePackage(LockedTeams); parent::loadMissionStage2(); + + if($Host::MapChangeMSG) + centerPrintAll($Host::MapChangeMSGContent, 12, 3); } }; diff --git a/Classic/scripts/serverDefaults.cs b/Classic/scripts/serverDefaults.cs index 3154496..c4a395f 100755 --- a/Classic/scripts/serverDefaults.cs +++ b/Classic/scripts/serverDefaults.cs @@ -186,8 +186,9 @@ $Host::AllowAdminVotes = 1; $Host::AllowPlayerVoteChangeMission = 1; $Host::AllowPlayerVoteSkipMission = 1; $Host::AllowPlayerVoteTimeLimit = 1; -$Host::AllowPlayerVoteTournamentMode = 0; -$Host::AllowPlayerVoteTeamDamage = 0; +$Host::AllowPlayerVoteTournamentMode = 1; +$Host::AllowPlayerVoteTeamDamage = 1; +$Host::AllowPlayerTournamentModeVotekick = 1; $Host::NoBaseRapeEnabled = 1; //Enable or Disable No Base Rape $Host::NoBaseRapePlayerCount = 14; //Min number players the turn off No Base Rape $Host::AveragePings = 1; //Show Average ping in F2 menu @@ -209,6 +210,8 @@ $Host::ClassicDailyHardRestart = 0; $Host::ClassicDailyHardRestartTime = "10\t00\tam"; //Hard Restart Server Time Ex:10am $Host::LoadScreenShowLogo = 0; //Special Logo on LoadScreen $Host::LoadScreenShowLogoName = "dpub/DPUB_logo"; //Logo location Filename +$Host::MapChangeMSG = 0; //Center Print between mapchanges +$Host::MapChangeMSGContent = "Pickup Night\nSaturday, March 5th\nJoin discord for details"; //LakRabbit $Host::LakRabbitUnlimitedDJ = 1; //Unlimited disc-jumps if enabled