diff --git a/CS2_External/AimBot.hpp b/CS2_External/AimBot.hpp index 2a2ef2a..6ba5f59 100644 --- a/CS2_External/AimBot.hpp +++ b/CS2_External/AimBot.hpp @@ -114,6 +114,5 @@ namespace AimControl } gGame.SetViewAngle(Yaw, Pitch); - //mouse_event(MOUSEEVENTF_MOVE, Yaw, Pitch, 0, 0); } } \ No newline at end of file diff --git a/CS2_External/Bunnyhop.hpp b/CS2_External/Bunnyhop.hpp index 9158e33..255344c 100644 --- a/CS2_External/Bunnyhop.hpp +++ b/CS2_External/Bunnyhop.hpp @@ -1,6 +1,7 @@ #pragma once #include "Game.h" #include "Entity.h" +#include namespace Bunnyhop { @@ -22,4 +23,26 @@ namespace Bunnyhop gGame.SetForceJump(256); } } +} + +namespace Bunnyhop2 +{ + inline void Run(const CEntity& Local) + { + const bool hasFlagInAir = Local.Pawn.HasFlag(PlayerPawn::Flags::IN_AIR); + if (GetAsyncKeyState(VK_SPACE)) + { + // scrolling up + INPUT inputScrollUp; + inputScrollUp.type = INPUT_MOUSE; + inputScrollUp.mi.dx = 0; + inputScrollUp.mi.dy = 0; + inputScrollUp.mi.mouseData = WHEEL_DELTA; + inputScrollUp.mi.dwFlags = MOUSEEVENTF_WHEEL; + inputScrollUp.mi.time = 0; + inputScrollUp.mi.dwExtraInfo = 0; + + SendInput(1, &inputScrollUp, sizeof(INPUT)); + } + } } \ No newline at end of file diff --git a/CS2_External/Cheats.cpp b/CS2_External/Cheats.cpp index 8681b23..cf08ee1 100644 --- a/CS2_External/Cheats.cpp +++ b/CS2_External/Cheats.cpp @@ -169,6 +169,8 @@ void Cheats::Menu() Gui.SliderScalarEx1("RadarRange", ImGuiDataType_Float, &MenuConfig::RadarRange, &RadarRangeMin, &RadarRangeMax, "%.1f", ImGuiSliderFlags_None); ImGui::Checkbox("Bunnyhop", &MenuConfig::BunnyHop); + ImGui::SameLine(); + ImGui::Checkbox("Bunnyhop 2", &MenuConfig::BunnyHop2); } else if (tabb == 3) { //triggerbot @@ -455,6 +457,9 @@ void Cheats::Run() if (MenuConfig::BunnyHop) Bunnyhop::Run(LocalEntity); + if (MenuConfig::BunnyHop2) + Bunnyhop2::Run(LocalEntity); + // TriggerBot if (MenuConfig::TriggerBot && GetAsyncKeyState(TriggerBot::HotKey)) { diff --git a/CS2_External/MenuConfig.hpp b/CS2_External/MenuConfig.hpp index d350759..92d4ba0 100644 --- a/CS2_External/MenuConfig.hpp +++ b/CS2_External/MenuConfig.hpp @@ -35,6 +35,7 @@ namespace MenuConfig inline bool ShowMenu = true; inline bool VisibleEsp = true; inline bool BunnyHop = true; + inline bool BunnyHop2 = true; inline bool ShowRadar = true; inline float RadarRange = 150; inline float RadarPointSizeProportion = 1.f; diff --git a/CS2_External/Utils/ConfigMenu.cpp b/CS2_External/Utils/ConfigMenu.cpp index 2705a54..f384d03 100644 --- a/CS2_External/Utils/ConfigMenu.cpp +++ b/CS2_External/Utils/ConfigMenu.cpp @@ -196,5 +196,6 @@ namespace ConfigMenu { MenuConfig::AimFovRangeColor = ImColor(230, 230, 230, 255); MenuConfig::OBSBypass = true; MenuConfig::BunnyHop = false; + MenuConfig::BunnyHop2 = false; } } \ No newline at end of file diff --git a/CS2_External/Utils/ConfigSaver.cpp b/CS2_External/Utils/ConfigSaver.cpp index 4644b70..e32d9a6 100644 --- a/CS2_External/Utils/ConfigSaver.cpp +++ b/CS2_External/Utils/ConfigSaver.cpp @@ -85,6 +85,7 @@ namespace MyConfigSaver { configFile << "BoneColorESP " << MenuConfig::BoneColorESP.Value.x << " " << MenuConfig::BoneColorESP.Value.y << " " << MenuConfig::BoneColorESP.Value.z << " " << MenuConfig::BoneColorESP.Value.w << std::endl; configFile << "OBSBypass " << MenuConfig::OBSBypass << std::endl; configFile << "BunnyHop " << MenuConfig::BunnyHop << std::endl; + configFile << "BunnyHop2 " << MenuConfig::BunnyHop2 << std::endl; configFile.close(); std::cout << "Configuration saved to " << filename << std::endl; } @@ -167,6 +168,7 @@ namespace MyConfigSaver { else if (key == "BoneColorESP") iss >> MenuConfig::BoneColorESP.Value.x >> MenuConfig::BoneColorESP.Value.y >> MenuConfig::BoneColorESP.Value.z >> MenuConfig::BoneColorESP.Value.w; else if (key == "OBSBypass") iss >> MenuConfig::OBSBypass; else if (key == "BunnyHop") iss >> MenuConfig::BunnyHop; + else if (key == "BunnyHop2") iss >> MenuConfig::BunnyHop2; } }