Skip to content

Commit 2dc116c

Browse files
committed
v2.52 offsets
1 parent 86ea0c4 commit 2dc116c

5 files changed

Lines changed: 58 additions & 5 deletions

File tree

AntiInvisibleHacker.zip

201 KB
Binary file not shown.

AntiInvisibleHacker/AntiInvisibleHacker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "RenderingTools/RenderingTools.h"
55

66

7-
BAKKESMOD_PLUGIN(AntiInvisibleHacker, "AntiInvisibleHacker v1.1", plugin_version, PLUGINTYPE_FREEPLAY)
7+
BAKKESMOD_PLUGIN(AntiInvisibleHacker, "AntiInvisibleHacker v1.2", plugin_version, PLUGINTYPE_FREEPLAY)
88

99
std::shared_ptr<CVarManagerWrapper> _globalCvarManager;
1010
std::shared_ptr<GameWrapper> _globalGameWrapper;

AntiInvisibleHacker/AntiInvisibleHacker.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ class AntiInvisibleHacker: public BakkesMod::Plugin::BakkesModPlugin, public Bak
2626
//Utils
2727
void ShowBakkesmodNotification(std::string title, std::string text, float timeout = 3.5f, std::string texture = "default", uint8_t toastType = 0, float width = 290.f, float height = 60.f);
2828

29+
30+
void RenderLink(std::string link);
31+
void RenderUnderLine(ImColor col_);
32+
std::wstring s2ws(const std::string& s);
33+
2934
//Boilerplate
3035
virtual void onLoad();
3136
virtual void onUnload();

AntiInvisibleHacker/AntiInvisibleHackerGUI.cpp

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
#include "AntiInvisibleHacker.h"
33

44
#include "IMGUI/imgui_internal.h"
5+
#include <shellapi.h> //for ShellExecute
56

67
std::string AntiInvisibleHacker::GetPluginName()
78
{
8-
return "AntiInvisibleHacker v1.1";
9+
return "AntiInvisibleHacker v1.2";
910
}
1011

1112
void AntiInvisibleHacker::SetImGuiContext(uintptr_t ctx)
@@ -69,13 +70,60 @@ void AntiInvisibleHacker::RenderSettings()
6970
ImGui::Separator();
7071

7172
ImGui::Text("Important note :");
72-
ImGui::Text("This plugin will only work for the Rocket League version v2.51.\nSo I recommend you to remove the plugin from your plugins folder once Psyonix releases a new Rocket League update, as it might crash your game due to the changes\nPsyonix will make to the game.");
73+
RenderUnderLine(ImColor(255, 255, 252, 170));
74+
ImGui::Text("This plugin will only work for the Rocket League version v2.52.\nSo I recommend you to remove the plugin from your plugins folder once Psyonix releases a new Rocket League update, as it might crash your game due to the changes\nPsyonix will make to the game.");
7375
}
7476
else
7577
{
76-
ImGui::Text("This plugin has been made to only work for the Rocket League version v2.51 and won't work for the current version you are playing on.");
78+
ImGui::Text("This plugin has been made to only work for the Rocket League version v2.52 and won't work for the current version you are playing on.");
7779
ImGui::Text("I recommend you to remove the plugin from your plugins folder.");
7880
}
81+
82+
ImGui::NewLine();
83+
ImGui::NewLine();
84+
85+
ImGui::Text("Plugin made by");
86+
ImGui::SameLine();
87+
RenderLink("https://x.com/Vync5");
88+
}
89+
90+
void AntiInvisibleHacker::RenderLink(std::string link)
91+
{
92+
std::wstring w_LINK = s2ws(link);
93+
LPCWSTR L_LINK = w_LINK.c_str();
94+
95+
ImGui::TextColored(ImColor(3, 94, 252, 255), link.c_str());
96+
RenderUnderLine(ImColor(3, 94, 252, 255));
97+
if (ImGui::IsItemHovered())
98+
{
99+
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);
100+
if (ImGui::IsMouseClicked(0))
101+
{
102+
ShellExecute(0, 0, L_LINK, 0, 0, SW_SHOW); //open link in web browser
103+
}
104+
RenderUnderLine(ImGui::GetStyle().Colors[ImGuiCol_ButtonHovered]);
105+
}
106+
}
107+
108+
//https://gist.github.com/dougbinks/ef0962ef6ebe2cadae76c4e9f0586c69
109+
void AntiInvisibleHacker::RenderUnderLine(ImColor col_)
110+
{
111+
ImVec2 min = ImGui::GetItemRectMin();
112+
ImVec2 max = ImGui::GetItemRectMax();
113+
min.y = max.y;
114+
ImGui::GetWindowDrawList()->AddLine(min, max, col_, 1.0f);
115+
}
116+
117+
std::wstring AntiInvisibleHacker::s2ws(const std::string& s)
118+
{
119+
int len;
120+
int slength = (int)s.length() + 1;
121+
len = MultiByteToWideChar(CP_ACP, 0, s.c_str(), slength, 0, 0);
122+
wchar_t* buf = new wchar_t[len];
123+
MultiByteToWideChar(CP_ACP, 0, s.c_str(), slength, buf, len);
124+
std::wstring r(buf);
125+
delete[] buf;
126+
return r;
79127
}
80128

81129
/*

AntiInvisibleHacker/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define VERSION_MAJOR 1
33
#define VERSION_MINOR 0
44
#define VERSION_PATCH 0
5-
#define VERSION_BUILD 191
5+
#define VERSION_BUILD 197
66

77
#define stringify(a) stringify_(a)
88
#define stringify_(a) #a

0 commit comments

Comments
 (0)