From 9f01412ca8a396fa61ad8db1d42e5b344f0ab277 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 12 Jan 2016 21:25:58 +0100 Subject: [PATCH] ^Don't rotate stuff. --- src/Components/Modules/Dedicated.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Components/Modules/Dedicated.cpp b/src/Components/Modules/Dedicated.cpp index 75f6d6c2..85d3639d 100644 --- a/src/Components/Modules/Dedicated.cpp +++ b/src/Components/Modules/Dedicated.cpp @@ -60,6 +60,12 @@ namespace Components void Dedicated::MapRotate() { + if (!Dedicated::IsDedicated() && Dvar::Var("sv_dontrotate").Get()) + { + Dvar::Var("sv_dontrotate").SetRaw(0); + return; + } + if (Dvar::Var("party_enable").Get() && Dvar::Var("party_host").Get()) { Logger::Print("Not performing map rotation as we are hosting a party!\n"); @@ -158,6 +164,7 @@ namespace Components { // Map rotation Utils::Hook::Set(0x4152E8, Dedicated::MapRotate); + Dvar::Register("sv_dontrotate", false, Game::dvar_flag::DVAR_FLAG_CHEAT, ""); if (Dedicated::IsDedicated() || ZoneBuilder::IsEnabled()) // Run zonebuilder as dedi :P {