From f4469089f939deefca12d0eb1a6cacb779675a3f Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 29 Dec 2015 16:38:36 +0100 Subject: [PATCH] Protocol version changes --- src/Components/Modules/Maps.cpp | 3 ++- src/Components/Modules/QuickPatch.cpp | 11 +++++++++++ src/Game/Structs.hpp | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/Maps.cpp b/src/Components/Modules/Maps.cpp index c1c4e580..ac1ea8dd 100644 --- a/src/Components/Modules/Maps.cpp +++ b/src/Components/Modules/Maps.cpp @@ -173,7 +173,8 @@ namespace Components // Dependencies Maps::AddDependency("oilrig", "mp_subbase"); Maps::AddDependency("gulag", "mp_subbase"); - Maps::AddDependency("^(?!mp_).*", "mp_subbase"); // All maps not starting with "mp_" + Maps::AddDependency("invasion", "mp_rust"); + //Maps::AddDependency("^(?!mp_).*", "mp_subbase"); // All maps not starting with "mp_" } Maps::~Maps() diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index c055cce4..c01a620c 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -10,6 +10,17 @@ namespace Components QuickPatch::QuickPatch() { + // protocol version (workaround for hacks) + Utils::Hook::Set(0x4FB501, PROTOCOL); + + // protocol command + Utils::Hook::Set(0x4D36A9, PROTOCOL); + Utils::Hook::Set(0x4D36AE, PROTOCOL); + Utils::Hook::Set(0x4D36B3, PROTOCOL); + + // internal version is 99, most servers should accept it + Utils::Hook::Set(0x463C61, 208); + // remove system pre-init stuff (improper quit, disk full) Utils::Hook::Set(0x411350, 0xC3); diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index e051dbf8..66b015e9 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -1,3 +1,5 @@ +#define PROTOCOL 0x92 + namespace Game { typedef enum