Skip to content
Permalink
Browse files

plugins/rl: update plugin to work with version 1.23

  • Loading branch information...
davidebeatrici committed Sep 13, 2016
1 parent 0556b6c commit fe3ec08f25337793ebce44c4f7dfbc2e728b7f11
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 + 0x301E7F0);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x301E810);
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 + 0x301EDB8, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(pModule + 0x301EDD8, 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 + 0x301EDA0, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x301EDAC, camera_top, 12); // Camera Top Vector values (X, Y and Z).
peekProc(pModule + 0x301EDC0, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x301EDCC, 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.22 without context or identity support yet."); // Plugin long description
return std::wstring(L"Supports Rocket League version 1.23 without context or identity support yet."); // Plugin long description
}

static std::wstring description(L"Rocket League (v1.22)"); // Plugin short description
static std::wstring description(L"Rocket League (v1.23)"); // 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 + 0x17199C4);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x17199AC);
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 + 0x1719C00, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(pModule + 0x1719BE8, 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 + 0x1719BE8, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x1719BF4, camera_top, 12); // Camera Top Vector values (X, Y and Z).
peekProc(pModule + 0x1719BD0, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x1719BDC, 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.22 without context or identity support yet."); // Plugin long description
return std::wstring(L"Supports Rocket League version 1.23 without context or identity support yet."); // Plugin long description
}

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

static int trylock1() {

0 comments on commit fe3ec08

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