Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 6a78217
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions plugins/rl/rl.cpp
Expand Up @@ -13,7 +13,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
bool ok; bool ok;


// Avatar pointers // 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; if (!avatar_base) return false;
procptr32_t avatar_offset_0 = peekProc<procptr32_t>(avatar_base + 0x448); procptr32_t avatar_offset_0 = peekProc<procptr32_t>(avatar_base + 0x448);
if (!avatar_offset_0) return false; if (!avatar_offset_0) return false;
Expand All @@ -25,11 +25,11 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
if (!avatar_offset) return false; if (!avatar_offset) return false;


// Peekproc and assign game addresses to our containers, so we can retrieve positional data // 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). 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(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(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 + 0x016FD7D8, 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). 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. // This prevents the plugin from linking to the game in case something goes wrong during values retrieval from memory addresses.
if (! ok) if (! ok)
Expand Down Expand Up @@ -65,10 +65,10 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi
} }


static const std::wstring longdesc() { 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 std::wstring shortname(L"Rocket League"); // Plugin short name


static int trylock1() { static int trylock1() {
Expand Down

0 comments on commit 6a78217

Please sign in to comment.