Skip to content

Commit

Permalink
plugins/gtav: update plugin to work with version 1.35
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebeatrici committed Jul 13, 2016
1 parent 72cd86c commit bfa9be7
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions plugins/gtav/gtav.cpp
Expand Up @@ -21,30 +21,30 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa


// Steam version // Steam version
if (peekProc(pModule + 0x17BE288, game_name) && VERSION_EQ(game_name, "Grand Theft Auto V")) { if (peekProc(pModule + 0x17BE288, game_name) && VERSION_EQ(game_name, "Grand Theft Auto V")) {
state_address = pModule + 0x267FD50; state_address = pModule + 0x268C370;
in_game_address = pModule + 0x1B6D757; in_game_address = pModule + 0x1B76454;
avatar_pos_address = pModule + 0x1EFBC00; avatar_pos_address = pModule + 0x1F05230;
camera_pos_address = pModule + 0x1BFEDA0; camera_pos_address = pModule + 0x1C08080;
avatar_base_address = pModule + 0x1B3D3F0; avatar_base_address = pModule + 0x1B463D0;
camera_front_address = pModule + 0x1C00860; camera_front_address = pModule + 0x1C09B40;
camera_top_address = pModule + 0x1ED0E30; camera_top_address = pModule + 0x1EDA440;
player_address = pModule + 0x268A4EC; player_address = pModule + 0x2696B0C;
vehicle_address = pModule + 0x2282400; vehicle_address = pModule + 0x228DDC0;
location_address = pModule + 0x2281DDB; location_address = pModule + 0x228D79B;
street_address = pModule + 0x227EBA0; street_address = pModule + 0x228A550;
// Retail version // Retail version
} else if (peekProc(pModule + 0x17BB1F8, game_name) && VERSION_EQ(game_name, "Grand Theft Auto V")) { } else if (peekProc(pModule + 0x17BB1F8, game_name) && VERSION_EQ(game_name, "Grand Theft Auto V")) {
state_address = pModule + 0x267CA00; state_address = pModule + 0x2688DB0;
in_game_address = pModule + 0x1B69A56; in_game_address = pModule + 0x1B73ED4;
avatar_pos_address = pModule + 0x1EF8A00; avatar_pos_address = pModule + 0x1F01E40;
camera_pos_address = pModule + 0x1BFBDF0; camera_pos_address = pModule + 0x1C06950;
avatar_base_address = pModule + 0x01B3A3D0; avatar_base_address = pModule + 0x1B433D0;
camera_front_address = pModule + 0x1BFD890; camera_front_address = pModule + 0x1C06960;
camera_top_address = pModule + 0x1ECDBA0; camera_top_address = pModule + 0x1ED6FF0;
player_address = pModule + 0x26870FC; player_address = pModule + 0x26934AC;
vehicle_address = pModule + 0x227F200; vehicle_address = pModule + 0x228A9A0;
location_address = pModule + 0x227EBDB; location_address = pModule + 0x228A38B;
street_address = pModule + 0x227B9A0; street_address = pModule + 0x22870C0;
// Unknown version // Unknown version
} else { } else {
generic_unlock(); generic_unlock();
Expand Down Expand Up @@ -205,10 +205,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 Grand Theft Auto V version 1.34 with identity support."); // Plugin long description return std::wstring(L"Supports Grand Theft Auto V version 1.35 with identity support."); // Plugin long description
} }


static std::wstring description(L"Grand Theft Auto V (v1.34)"); // Plugin short description static std::wstring description(L"Grand Theft Auto V (v1.35)"); // Plugin short description
static std::wstring shortname(L"Grand Theft Auto V"); // Plugin short name static std::wstring shortname(L"Grand Theft Auto V"); // Plugin short name


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

0 comments on commit bfa9be7

Please sign in to comment.