Skip to content

Commit

Permalink
added scroll wheel bunny hop (bunnyhop2). CURRENTLY NOT WORKING
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr0go1 committed Oct 11, 2023
1 parent 9cbb217 commit 0aa2f0f
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1 deletion.
1 change: 0 additions & 1 deletion CS2_External/AimBot.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,5 @@ namespace AimControl
}

gGame.SetViewAngle(Yaw, Pitch);
//mouse_event(MOUSEEVENTF_MOVE, Yaw, Pitch, 0, 0);
}
}
23 changes: 23 additions & 0 deletions CS2_External/Bunnyhop.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once
#include "Game.h"
#include "Entity.h"
#include <Windows.h>

namespace Bunnyhop
{
Expand All @@ -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));
}
}
}
5 changes: 5 additions & 0 deletions CS2_External/Cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
{
Expand Down
1 change: 1 addition & 0 deletions CS2_External/MenuConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions CS2_External/Utils/ConfigMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,6 @@ namespace ConfigMenu {
MenuConfig::AimFovRangeColor = ImColor(230, 230, 230, 255);
MenuConfig::OBSBypass = true;
MenuConfig::BunnyHop = false;
MenuConfig::BunnyHop2 = false;
}
}
2 changes: 2 additions & 0 deletions CS2_External/Utils/ConfigSaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 0aa2f0f

Please sign in to comment.