Skip to content
Permalink
Browse files

plugins/rl: update plugin to work with version 1.24

  • Loading branch information...
davidebeatrici committed Oct 4, 2016
1 parent 2d6e099 commit 89b0f31c044224aeea45a8e29634bae3ab4bb31e
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 + 0x301E810);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x3020DD0);
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 + 0x301EDD8, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(pModule + 0x3021398, 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 + 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).
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).

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

static std::wstring description(L"Rocket League (v1.23)"); // Plugin short description
static std::wstring description(L"Rocket League (v1.24)"); // 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 + 0x17199AC);
procptr32_t avatar_base = peekProc<procptr32_t>(pModule + 0x171A9BC);
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 + 0x1719BE8, camera_pos, 12) && // Camera Position values (X, Y and Z).
peekProc(pModule + 0x171ABF8, 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 + 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).
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).

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

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

static int trylock1() {

0 comments on commit 89b0f31

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