Skip to content
Permalink
Browse files

plugins/rl: update plugin to work with version 1.25

  • Loading branch information...
davidebeatrici committed Dec 8, 2016
1 parent 6ac0553 commit 6bad7ae4034d6991937ff4ed991949a85b6d2901
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 + 0x3020DD0);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x2FE16D0);
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 + 0x3021398, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(pModule + 0x2FE1C98, 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 + 0x3021380, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x302138C, camera_top, 12); // Camera Top Vector 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).

// 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.24 without context or identity support yet."); // Plugin long description
return std::wstring(L"Supports Rocket League version 1.25 without context or identity support yet."); // Plugin long description
}

static std::wstring description(L"Rocket League (v1.24)"); // Plugin short description
static std::wstring description(L"Rocket League (v1.25)"); // 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 + 0x171A9BC);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x1733B2C);
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 + 0x171ABF8, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(pModule + 0x1733D68, 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 + 0x171ABE0, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x171ABEC, camera_top, 12); // Camera Top Vector 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).

// 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.24 without context or identity support yet."); // Plugin long description
return std::wstring(L"Supports Rocket League version 1.25 without context or identity support yet."); // Plugin long description
}

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

static int trylock1() {

0 comments on commit 6bad7ae

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