Skip to content
Permalink
Browse files

plugins/rl: update plugin to work with version 1.26

  • Loading branch information...
davidebeatrici committed Dec 14, 2016
1 parent 900803c commit e8849a4fb5113a56ddb6c7f74d77225c426ace6e
Showing with 12 additions and 12 deletions.
  1. +6 −6 plugins/rl/rl_linux.cpp
  2. +6 −6 plugins/rl/rl_win32.cpp
@@ -13,7 +13,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
bool ok;

// Avatar pointers
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x2FE16D0);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x2FE16F0);
if (!avatar_base) return false;
procptr32_t avatar_offset_0 = peekProc<procptr32_t>(avatar_base + 0x6c8);
if (!avatar_offset_0) return false;
@@ -24,10 +24,10 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa

// Peekproc and assign game addresses to our containers, so we can retrieve positional data
ok = peekProc(avatar_offset + 0x60, avatar_pos, 12) && // Avatar Position values (X, Y and Z).
peekProc(pModule + 0x2FE1C98, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(pModule + 0x2FE1CB8, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(avatar_offset + 0x6C, avatar_front, 12) && // Avatar Front values (X, Y and Z).
peekProc(pModule + 0x2FE1C80, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x2FE1C8C, camera_top, 12); // Camera Top Vector values (X, Y and Z).
peekProc(pModule + 0x2FE1CA0, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x2FE1CAC, camera_top, 12); // Camera Top Vector values (X, Y and Z).

// This prevents the plugin from linking to the game in case something goes wrong during values retrieval from memory addresses.
if (! ok)
@@ -63,10 +63,10 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi
}

static const std::wstring longdesc() {
return std::wstring(L"Supports Rocket League version 1.25 without context or identity support yet."); // Plugin long description
return std::wstring(L"Supports Rocket League version 1.26 without context or identity support yet."); // Plugin long description
}

static std::wstring description(L"Rocket League (v1.25)"); // Plugin short description
static std::wstring description(L"Rocket League (v1.26)"); // Plugin short description
static std::wstring shortname(L"Rocket League"); // Plugin short name

static int trylock1() {
@@ -13,7 +13,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
bool ok;

// Avatar pointers
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x1733B2C);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x1734B3C);
if (!avatar_base) return false;
procptr32_t avatar_offset_0 = peekProc<procptr32_t>(avatar_base + 0x448);
if (!avatar_offset_0) return false;
@@ -26,10 +26,10 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa

// Peekproc and assign game addresses to our containers, so we can retrieve positional data
ok = peekProc(avatar_offset + 0x0, avatar_pos, 12) && // Avatar Position values (X, Y and Z).
peekProc(pModule + 0x1733D68, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(pModule + 0x1734D78, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(avatar_offset + 0xC, avatar_front, 12) && // Avatar Front values (X, Y and Z).
peekProc(pModule + 0x1733D50, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x1733D5C, camera_top, 12); // Camera Top Vector values (X, Y and Z).
peekProc(pModule + 0x1734D60, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x1734D6C, camera_top, 12); // Camera Top Vector values (X, Y and Z).

// This prevents the plugin from linking to the game in case something goes wrong during values retrieval from memory addresses.
if (! ok)
@@ -65,10 +65,10 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi
}

static const std::wstring longdesc() {
return std::wstring(L"Supports Rocket League version 1.25 without context or identity support yet."); // Plugin long description
return std::wstring(L"Supports Rocket League version 1.26 without context or identity support yet."); // Plugin long description
}

static std::wstring description(L"Rocket League (v1.25)"); // Plugin short description
static std::wstring description(L"Rocket League (v1.26)"); // Plugin short description
static std::wstring shortname(L"Rocket League"); // Plugin short name

static int trylock1() {

0 comments on commit e8849a4

Please sign in to comment.
You can’t perform that action at this time.