Protocol version changes

This commit is contained in:
momo5502 2015-12-29 16:38:36 +01:00
parent ecf6e5bf9c
commit f4469089f9
3 changed files with 15 additions and 1 deletions

View File

@ -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()

View File

@ -10,6 +10,17 @@ namespace Components
QuickPatch::QuickPatch()
{
// protocol version (workaround for hacks)
Utils::Hook::Set<int>(0x4FB501, PROTOCOL);
// protocol command
Utils::Hook::Set<int>(0x4D36A9, PROTOCOL);
Utils::Hook::Set<int>(0x4D36AE, PROTOCOL);
Utils::Hook::Set<int>(0x4D36B3, PROTOCOL);
// internal version is 99, most servers should accept it
Utils::Hook::Set<int>(0x463C61, 208);
// remove system pre-init stuff (improper quit, disk full)
Utils::Hook::Set<BYTE>(0x411350, 0xC3);

View File

@ -1,3 +1,5 @@
#define PROTOCOL 0x92
namespace Game
{
typedef enum