Skip to content
Permalink
Browse files

Merge PR #2378: plugins/rl: Plugin update for game's latest version

  • Loading branch information...
mkrautz committed Jun 29, 2016
2 parents c9814ae + e1b80c0 commit 68606feebf909805706babbf3572413ecc689514
Showing with 6 additions and 6 deletions.
  1. +6 −6 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 + 0x0170B5A4);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x017085A4);
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 + 0x0170B7E0, camera_pos, 12) && // Camera 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 + 0x0170B7C8, camera_front, 12) && // Camera Front Vector values (X, Y and -Z).
peekProc(pModule + 0x0170B7D4, camera_top, 12); // Camera Top Vector 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).

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

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

static int trylock1() {

0 comments on commit 68606fe

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