Skip to content
Permalink
Browse files

Merge PR #2412: plugins/rl: update plugin to work with version 1.21

  • Loading branch information...
mkrautz committed Jul 9, 2016
2 parents f241782 + 4f565c6 commit 6a782176ff0f9de7d42f023b96d7b49c3c08dc65
Showing with 8 additions and 8 deletions.
  1. +8 −8 plugins/rl/rl.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 + 0x017085A4);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x016FD5B4);
if (!avatar_base) return false;
procptr32_t avatar_offset_0 = peekProc<procptr32_t>(avatar_base + 0x448);
if (!avatar_offset_0) return false;
@@ -25,11 +25,11 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
if (!avatar_offset) return false;

// 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 + 0x017087E0, 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 + 0x017087C8, camera_front, 12) && // Camera Front Vector values (X, Y and -Z).
peekProc(pModule + 0x017087D4, camera_top, 12); // Camera Top Vector values (X, Y and -Z).
ok = peekProc(avatar_offset + 0x0, avatar_pos, 12) && // Avatar Position values (X, Y and Z).
peekProc(pModule + 0x016FD7F0, 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 + 0x016FD7D8, camera_front, 12) && // Camera Front Vector values (X, Y and Z).
peekProc(pModule + 0x016FD7E4, 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.20 without context or identity support yet."); // Plugin long description
return std::wstring(L"Supports Rocket League version 1.21 without context or identity support yet."); // Plugin long description
}

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

static int trylock1() {

0 comments on commit 6a78217

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