Brembo1926
Platinian
Old ModMenu Aimbot Bhoop Wallhack
C++:
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <GLFW/glfw3.h>
#include <fstream>
#include <iostream>
#include <string>
bool showMenu = false;
bool aimbotActive = false;
bool wallhackActive = false;
bool bhopActive = false;
float aimbotSensitivity = 0.5f;
int aimbotTargetPriority = 0;
ImVec4 wallhackColor = ImVec4(1.0f, 0.0f, 0.0f, 1.0f);
float wallhackRange = 100.0f;
bool bhopAutoJump = true;
float bhopSpeed = 1.0f;
int aimbotHotkey = GLFW_KEY_A;
int wallhackHotkey = GLFW_KEY_W;
int bhopHotkey = GLFW_KEY_B;
void loadSettings() {
std::ifstream settingsFile("settings.txt");
if (settingsFile.is_open()) {
std::string line;
while (std::getline(settingsFile, line)) {
if (line.find("aimbot") != std::string::npos) {
aimbotActive = line[6] == '1';
} else if (line.find("wallhack") != std::string::npos) {
wallhackActive = line[8] == '1';
} else if (line.find("bhop") != std::string::npos) {
bhopActive = line[5] == '1';
}
}
settingsFile.close();
}
}
void saveSettings() {
std::ofstream settingsFile("settings.txt");
if (settingsFile.is_open()) {
settingsFile << "aimbot=" << (aimbotActive ? 1 : 0) << "\n";
settingsFile << "wallhack=" << (wallhackActive ? 1 : 0) << "\n";
settingsFile << "bhop=" << (bhopActive ? 1 : 0) << "\n";
settingsFile.close();
}
}
void toggleAimbot() {
aimbotActive = !aimbotActive;
}
void toggleWallhack() {
wallhackActive = !wallhackActive;
}
void toggleBhop() {
bhopActive = !bhopActive;
}
void resetSettings() {
aimbotSensitivity = 0.5f;
aimbotTargetPriority = 0;
wallhackColor = ImVec4(1.0f, 0.0f, 0.0f, 1.0f);
wallhackRange = 100.0f;
bhopAutoJump = true;
bhopSpeed = 1.0f;
}
void renderMenu() {
if (showMenu) {
ImGui::Begin("PlatinMods Menu", &showMenu);
ImGui::Text("Mod By Brembo1926");
if (ImGui::CollapsingHeader("Aimbot")) {
ImGui::Checkbox("Enable Aimbot", &aimbotActive);
ImGui::SliderFloat("Aimbot Sensitivity", &aimbotSensitivity, 0.1f, 1.0f, "%.1f");
const char* targetPriorityOptions[] = { "Head", "Body", "Random" };
ImGui::Combo("Target Priority", &aimbotTargetPriority, targetPriorityOptions, IM_ARRAYSIZE(targetPriorityOptions));
}
if (ImGui::CollapsingHeader("Wallhack")) {
ImGui::Checkbox("Enable Wallhack", &wallhackActive);
ImGui::ColorEdit4("Wallhack Color", (float*)&wallhackColor);
ImGui::SliderFloat("Wallhack Range", &wallhackRange, 10.0f, 500.0f, "%.0f units");
}
if (ImGui::CollapsingHeader("Bunny Hop")) {
ImGui::Checkbox("Enable Bunny Hop", &bhopActive);
ImGui::Checkbox("Auto-Jump", &bhopAutoJump);
ImGui::SliderFloat("Bunny Hop Speed", &bhopSpeed, 0.5f, 2.0f, "%.1f");
}
if (ImGui::Button("Reset to Default")) {
resetSettings();
}
ImGui::Text("Hotkeys: ");
ImGui::Text("Aimbot: A | Wallhack: W | Bunny Hop: B");
ImGui::End();
}
}
void setupImGui(GLFWwindow* window) {
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO(); (void)io;
ImGui::StyleColorsDark();
ImGui_ImplGlfw_InitForOpenGL(window, true);
ImGui_ImplOpenGL3_Init("#version 130");
}
void drawIcon() {
ImGui::SetNextWindowBgAlpha(0.0f);
ImGui::SetNextWindowPos(ImVec2(10, 10), ImGuiCond_Once);
ImGui::Begin("Icon", NULL, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoInputs);
ImGui::Text("🔧");
ImGui::End();
}
void mainLoop(GLFWwindow* window) {
while (!glfwWindowShouldClose(window)) {
glfwPollEvents();
if (glfwGetKey(window, aimbotHotkey) == GLFW_PRESS) {
toggleAimbot();
}
if (glfwGetKey(window, wallhackHotkey) == GLFW_PRESS) {
toggleWallhack();
}
if (glfwGetKey(window, bhopHotkey) == GLFW_PRESS) {
toggleBhop();
}
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
drawIcon();
renderMenu();
ImGui::Render();
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
glfwSwapBuffers(window);
}
}
int main() {
if (!glfwInit())
return -1;
GLFWwindow* window = glfwCreateWindow(800, 600, "PlatinMods", NULL, NULL);
if (!window) {
glfwTerminate();
return -1;
}
glfwMakeContextCurrent(window);
setupImGui(window);
loadSettings();
mainLoop(window);
saveSettings();
ImGui_ImplOpenGL3_Shutdown();
ImGui_ImplGlfw_Shutdown();
ImGui::DestroyContext();
glfwDestroyWindow(window);
glfwTerminate();
return 0;
}