From 7b10d141bcefc3a6e3654175f7730456d2c462f4 Mon Sep 17 00:00:00 2001 From: DiamondCoder1000 <78707555+CheatMaker@users.noreply.github.com> Date: Sat, 28 Jan 2023 20:14:59 -0800 Subject: [PATCH] yes --- jvm-paper/skidware/CAimAssistModule.cpp | 2 +- jvm-paper/skidware/CAirJumpModule.cpp | 2 +- jvm-paper/skidware/CAntiKBModule.cpp | 28 ++++++++++--- jvm-paper/skidware/CAntiKBModule.hpp | 3 ++ jvm-paper/skidware/CAutoSprintModule.cpp | 2 +- jvm-paper/skidware/CClickGUIModule.cpp | 28 +++++++++---- jvm-paper/skidware/CClickGUIModule.hpp | 13 ++++++ jvm-paper/skidware/CClickerModule.cpp | 6 +-- jvm-paper/skidware/CClickerModule.hpp | 2 +- jvm-paper/skidware/CFlyModule.cpp | 9 ++--- jvm-paper/skidware/CHUDModule.cpp | 6 +-- jvm-paper/skidware/CIntelligentMappings.cpp | 4 +- jvm-paper/skidware/CJesusModule.cpp | 44 +++++++++++++++++++++ jvm-paper/skidware/CJesusModule.h | 17 ++++++++ jvm-paper/skidware/CKillauraModule.cpp | 2 +- jvm-paper/skidware/CModule.cpp | 3 +- jvm-paper/skidware/CModule.hpp | 3 +- jvm-paper/skidware/CModuleManager.cpp | 2 + jvm-paper/skidware/CNoFallModule.cpp | 21 ++++++++-- jvm-paper/skidware/CNoFallModule.hpp | 4 +- jvm-paper/skidware/CPlayer.cpp | 5 ++- jvm-paper/skidware/CPlayer.hpp | 2 +- jvm-paper/skidware/CSpeedModule.cpp | 5 ++- jvm-paper/skidware/CSpeedModule.hpp | 2 +- jvm-paper/skidware/CSpiderModule.cpp | 2 +- jvm-paper/skidware/CStrafeModule.cpp | 2 +- jvm-paper/skidware/dllmain.cpp | 26 +++++++++++- jvm-paper/skidware/skidware.vcxproj | 2 + jvm-paper/skidware/skidware.vcxproj.filters | 6 +++ 29 files changed, 207 insertions(+), 46 deletions(-) create mode 100644 jvm-paper/skidware/CJesusModule.cpp create mode 100644 jvm-paper/skidware/CJesusModule.h diff --git a/jvm-paper/skidware/CAimAssistModule.cpp b/jvm-paper/skidware/CAimAssistModule.cpp index 2c7e8a5..d71c5ec 100644 --- a/jvm-paper/skidware/CAimAssistModule.cpp +++ b/jvm-paper/skidware/CAimAssistModule.cpp @@ -1,6 +1,6 @@ #include "CAimAssistModule.hpp" -CAimAssistModule::CAimAssistModule() : CModule("Rotation", 'I', COMBAT) +CAimAssistModule::CAimAssistModule() : CModule("Rotation", 'I', COMBAT, "Silent Rotation test") { float yaw = 0.0; } diff --git a/jvm-paper/skidware/CAirJumpModule.cpp b/jvm-paper/skidware/CAirJumpModule.cpp index 8885d2e..21fc526 100644 --- a/jvm-paper/skidware/CAirJumpModule.cpp +++ b/jvm-paper/skidware/CAirJumpModule.cpp @@ -1,6 +1,6 @@ #include "CAirJumpModule.hpp" -CAirJumpModule::CAirJumpModule() : CModule("AirJump", 'F', MOVEMENT) { +CAirJumpModule::CAirJumpModule() : CModule("AirJump", 'F', MOVEMENT, "Jump in the air") { } void CAirJumpModule::onEvent(const CSimpleEvent* event) { diff --git a/jvm-paper/skidware/CAntiKBModule.cpp b/jvm-paper/skidware/CAntiKBModule.cpp index e4b9b72..b9fd86f 100644 --- a/jvm-paper/skidware/CAntiKBModule.cpp +++ b/jvm-paper/skidware/CAntiKBModule.cpp @@ -1,6 +1,6 @@ #include "CAntiKBModule.hpp" -CAntiKBModule::CAntiKBModule() : CModule("AntiKB", 'K', COMBAT) +CAntiKBModule::CAntiKBModule() : CModule("AntiKB", 'K', COMBAT, "(Broken) makes you not move") { } @@ -17,15 +17,33 @@ void CAntiKBModule::onDisable() void CAntiKBModule::onEvent(const CSimpleEvent*) { CMinecraft* mc = CCheat::theMinecraft; - if (mc->thePlayer->IsHurt()) { - mc->thePlayer->motionX = 0; - mc->thePlayer->motionX = 0; - mc->thePlayer->motionX = 0; + if (velo_current_mode == "Motion") { + if (mc->thePlayer->IsHurt()) { + mc->thePlayer->motionX = 0; + mc->thePlayer->motionX = 0; + mc->thePlayer->motionX = 0; + } + } + else if (velo_current_mode == "Jump") { + if (mc->thePlayer->IsHurt() > 7) + mc->thePlayer->jump(); } } void CAntiKBModule::renderSettings() { ImGui::Separator(); + if (ImGui::BeginCombo("##combo", velo_current_mode)) // The second parameter is the label previewed before opening the combo. + { + for (int n = 0; n < IM_ARRAYSIZE(velo_modes); n++) + { + bool is_selected = (velo_current_mode == velo_modes[n]); // You can store your selection however you want, outside or inside your objects + if (ImGui::Selectable(velo_modes[n], is_selected)) + velo_current_mode = velo_modes[n]; + if (is_selected) + ImGui::SetItemDefaultFocus(); // You may set the initial focus when opening the combo (scrolling + for keyboard navigation support) + } + ImGui::EndCombo(); + } } diff --git a/jvm-paper/skidware/CAntiKBModule.hpp b/jvm-paper/skidware/CAntiKBModule.hpp index e8bf786..ba8d622 100644 --- a/jvm-paper/skidware/CAntiKBModule.hpp +++ b/jvm-paper/skidware/CAntiKBModule.hpp @@ -16,4 +16,7 @@ typedef struct CAntiKBModule : CModule { virtual void renderSettings(); } CAntiKBModule; +static const char* velo_modes[] = { "Motion", "Jump" }; +static const char* velo_current_mode = "Jump"; + #endif // !ANTIKBMODULE_CGUARD \ No newline at end of file diff --git a/jvm-paper/skidware/CAutoSprintModule.cpp b/jvm-paper/skidware/CAutoSprintModule.cpp index dc8f8d7..34b6d43 100644 --- a/jvm-paper/skidware/CAutoSprintModule.cpp +++ b/jvm-paper/skidware/CAutoSprintModule.cpp @@ -1,7 +1,7 @@ #include "CAutoSprintModule.hpp" #include "wrapper.h" -CAutoSprintModule::CAutoSprintModule() : CModule("AutoSprint", '[', MOVEMENT) +CAutoSprintModule::CAutoSprintModule() : CModule("AutoSprint", '[', MOVEMENT, "Crashes after a couple hundred ticks. idk why") { } diff --git a/jvm-paper/skidware/CClickGUIModule.cpp b/jvm-paper/skidware/CClickGUIModule.cpp index 7507e41..4c6e42e 100644 --- a/jvm-paper/skidware/CClickGUIModule.cpp +++ b/jvm-paper/skidware/CClickGUIModule.cpp @@ -22,8 +22,11 @@ void ChromaticTab(char* label, int& tabhandler, int tab) } } + + CClickGUIModule::CClickGUIModule() : CModule("ClickGUI", VK_RSHIFT, RENDER) { //this->toggle(); + } void CClickGUIModule::onEnable() { @@ -38,12 +41,13 @@ void CClickGUIModule::onEnable() { Style->FrameRounding = 2; Style->ChildRounding = 0; Style->FrameBorderSize = 0; - Style->Colors[ImGuiCol_WindowBg] = ImColor(0, 128, 255); + Style->Colors[ImGuiCol_WindowBg] = ImColor(25, 25, 25); Style->Colors[ImGuiCol_ChildBg] = ImColor(25, 25, 25); Style->Colors[ImGuiCol_Button] = ImColor(35, 35, 35); + Style->Colors[ImGuiCol_Text] = ImColor(52, 247, 213); Style->Colors[ImGuiCol_ButtonHovered] = ImColor(gui::clear_col); Style->Colors[ImGuiCol_ButtonActive] = ImColor(35, 35, 35); - Style->Colors[ImGuiCol_CheckMark] = ImColor(gui::clear_col); + Style->Colors[ImGuiCol_Button] = ImColor(26, 29, 174); Style->Colors[ImGuiCol_FrameBg] = ImColor(35, 35, 35); Style->Colors[ImGuiCol_FrameBgActive] = ImColor(35, 35, 35); Style->Colors[ImGuiCol_FrameBgHovered] = ImColor(35, 35, 35); @@ -53,7 +57,7 @@ void CClickGUIModule::onEnable() { ImGui::GetStyle().ScrollbarRounding = 5.0f; Style->GrabMinSize = 15.0f; - Style->ScrollbarSize = 150.0f; + Style->ScrollbarSize = 50.0f; Style->Colors[ImGuiCol_Text] = ImColor(255, 255, 255); io.IniFilename = NULL; // GET RID OF IMGUI.INI @@ -77,7 +81,7 @@ void CClickGUIModule::onEvent(const CSimpleEvent* event) { ImGui_ImplOpenGL2_NewFrame(); ImGui_ImplWin32_NewFrame(); ImGui::NewFrame(); - ImGui::SetNextWindowSize(ImVec2(650 - 16, 400 - 39)); + ImGui::SetNextWindowSize(ImVec2(650, 400)); ImGui::Begin("Skidware", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings); ImGui::Text("Skidware b0.3"); @@ -92,26 +96,34 @@ void CClickGUIModule::onEvent(const CSimpleEvent* event) { //ImGui::Checkbox(module->name.c_str(), &module->state); if (gui::tab == 0) { if (module->catagory == COMBAT) { - if (ImGui::Button(module->name.c_str())) module->toggle(); + ImGui::Text(module->name.c_str()); ImGui::SameLine(); + if (ImGui::Button("Toggle")) module->toggle(); module->renderSettings(); + HelpMarker(module->desc); } } else if (gui::tab == 1) { if (module->catagory == MOVEMENT) { - if (ImGui::Button(module->name.c_str())) module->toggle(); + ImGui::Text(module->name.c_str()); ImGui::SameLine(); + if (ImGui::Button("Toggle")) module->toggle(); module->renderSettings(); + HelpMarker(module->desc); } } else if (gui::tab == 2) { if (module->catagory == RENDER) { - if (ImGui::Button(module->name.c_str())) module->toggle(); + ImGui::Text(module->name.c_str()); ImGui::SameLine(); + if (ImGui::Button("Toggle")) module->toggle(); module->renderSettings(); + HelpMarker(module->desc); } } else if (gui::tab == 3) { if (module->catagory == MISC) { - if (ImGui::Button(module->name.c_str())) module->toggle(); + ImGui::Text(module->name.c_str()); ImGui::SameLine(); + if (ImGui::Button("Toggle")) module->toggle(); module->renderSettings(); + HelpMarker(module->desc); } } /* diff --git a/jvm-paper/skidware/CClickGUIModule.hpp b/jvm-paper/skidware/CClickGUIModule.hpp index 72c8efa..f960526 100644 --- a/jvm-paper/skidware/CClickGUIModule.hpp +++ b/jvm-paper/skidware/CClickGUIModule.hpp @@ -12,6 +12,19 @@ typedef struct CClickGUIModule : CModule { virtual void renderSettings(); }; +static void HelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + namespace gui { static int tab; extern ImVec4 clear_col; diff --git a/jvm-paper/skidware/CClickerModule.cpp b/jvm-paper/skidware/CClickerModule.cpp index d5a96fa..5a6a6c9 100644 --- a/jvm-paper/skidware/CClickerModule.cpp +++ b/jvm-paper/skidware/CClickerModule.cpp @@ -1,6 +1,6 @@ #include "CClickerModule.hpp" -CClickerModule::CClickerModule() : CModule("Clicker", 'O', COMBAT) { +CClickerModule::CClickerModule() : CModule("RClicker", 'O', COMBAT, "Don't use") { } @@ -30,8 +30,8 @@ void CClickerModule::onEvent(const CSimpleEvent* event) { POINT pt; GetCursorPos(&pt); if (FindWindowA(("LWJGL"), nullptr) == GetForegroundWindow()) { - SendMessageW(GetForegroundWindow(), WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(0, 0)); - SendMessageW(GetForegroundWindow(), WM_LBUTTONUP, MK_LBUTTON, MAKELPARAM(0, 0)); + SendMessageW(GetForegroundWindow(), WM_RBUTTONDOWN, MK_RBUTTON, MAKELPARAM(0, 0)); + SendMessageW(GetForegroundWindow(), WM_RBUTTONUP, MK_RBUTTON, MAKELPARAM(0, 0)); Sleep(rand() % delay); // Sleep Delay Time } //swingItem(); diff --git a/jvm-paper/skidware/CClickerModule.hpp b/jvm-paper/skidware/CClickerModule.hpp index 3876066..96dba09 100644 --- a/jvm-paper/skidware/CClickerModule.hpp +++ b/jvm-paper/skidware/CClickerModule.hpp @@ -15,5 +15,5 @@ typedef struct CClickerModule : CModule { float m_delay = {}; float m_random = {}; -float f_cps = {}; +float f_cps = 15; #endif // !CCLICKERMODULE_HPP_GUARD \ No newline at end of file diff --git a/jvm-paper/skidware/CFlyModule.cpp b/jvm-paper/skidware/CFlyModule.cpp index 9654f1e..82984cd 100644 --- a/jvm-paper/skidware/CFlyModule.cpp +++ b/jvm-paper/skidware/CFlyModule.cpp @@ -2,7 +2,7 @@ #include "CCheat.hpp" #include "wrapper.h" -CFlyModule::CFlyModule() : CModule("Fly", 'V', MOVEMENT) { +CFlyModule::CFlyModule() : CModule("Fly", 'V', MOVEMENT, "Zoom") { } @@ -42,12 +42,9 @@ void CFlyModule::onEvent(const CSimpleEvent* event) { else if (fly_current_mode == "Keep-Y") { - mc->thePlayer->motionX = 0; + mc->thePlayer->motionX = mc->thePlayer->motionX * 0; mc->thePlayer->motionY = 0; - mc->thePlayer->motionZ = 0; - if (mc->gameSettings->isAnyKeyDown()) { - mc->thePlayer->strafe(mc->thePlayer->getSpeed()*1.05); - } + mc->thePlayer->motionZ = mc->thePlayer->motionZ * 0; } } diff --git a/jvm-paper/skidware/CHUDModule.cpp b/jvm-paper/skidware/CHUDModule.cpp index 32edebe..f683cc3 100644 --- a/jvm-paper/skidware/CHUDModule.cpp +++ b/jvm-paper/skidware/CHUDModule.cpp @@ -3,7 +3,7 @@ #include "CFlyModule.hpp" #include "CSpeedModule.hpp" -CHUDModule::CHUDModule() : CModule("HUD", 'H', RENDER) { +CHUDModule::CHUDModule() : CModule("HUD", 'H', RENDER, "yes") { this->toggle(); } @@ -197,11 +197,11 @@ void CHUDModule::onEvent(const CSimpleEvent* event) { glPopMatrix(); float yPos = 25; for (CModule* module : CCheat::moduleManager->modules) { - /* + if (module->state == false) { continue; } - */ + glPushMatrix(); glScalef(2, 2, 2); diff --git a/jvm-paper/skidware/CIntelligentMappings.cpp b/jvm-paper/skidware/CIntelligentMappings.cpp index 23de044..c32edbf 100644 --- a/jvm-paper/skidware/CIntelligentMappings.cpp +++ b/jvm-paper/skidware/CIntelligentMappings.cpp @@ -89,6 +89,8 @@ void CIntelligentMappings::init(Version ver) { CIntelligentMappedField movementInputField = make_field("movementInput", "Lnet/minecraft/util/MovementInput;", "field_71158_b", "e", "Lnet/minecraft/util/MovementInput;", "Lbub;"); + CIntelligentMappedField inWaterField = make_field("inWater", "Z", "field_70171_ac", "U", "Z", "Z"); + CIntelligentMappedMethod jumpMethod = make_method("jump", "()V", "func_70664_aZ", "cu", "()V", "()V"); @@ -100,7 +102,7 @@ void CIntelligentMappings::init(Version ver) { CIntelligentMappedClass playerKlass = make_klass("net.minecraft.client.entity.EntityPlayerSP", "net.minecraft.client.entity.EntityPlayerSP", "bud", std::vector({ onGroundField, moveForwardField, - moveStrafingField, headRotationYawField, speedInAirField, motionXField, motionYField, motionZField, hurttimeField, rotationYawField, movementInputField, theWorldField}), + moveStrafingField, headRotationYawField, inWaterField, speedInAirField, motionXField, motionYField, motionZField, hurttimeField, rotationYawField, movementInputField, theWorldField}), std::vector({ jumpMethod, setSprintMethod })); _klasses.push_back(playerKlass); diff --git a/jvm-paper/skidware/CJesusModule.cpp b/jvm-paper/skidware/CJesusModule.cpp new file mode 100644 index 0000000..b8dcfb4 --- /dev/null +++ b/jvm-paper/skidware/CJesusModule.cpp @@ -0,0 +1,44 @@ +#include "CJesusModule.h" +#include "CCheat.hpp" + +CJesusModule::CJesusModule() : CModule("Jesus", 'L', MOVEMENT, "Walk on water") +{ +} + +void CJesusModule::onEnable() +{ + CCheat::eventBus->registerListener(this); +} + +void CJesusModule::onDisable() +{ + CCheat::eventBus->unregisterListener(this); +} + +void CJesusModule::onEvent(const CSimpleEvent*) +{ + double jumpfactor = 0.0336; + CMinecraft* mc = CCheat::theMinecraft; + if (jesus_current_mode == "AAC 4.2.1") { + if (mc->thePlayer->inWater) { + mc->thePlayer->motionY = jumpfactor; + } + } +} + +void CJesusModule::renderSettings() +{ + ImGui::Separator(); + if (ImGui::BeginCombo("##kombo", jesus_current_mode)) // The second parameter is the label previewed before opening the combo. + { + for (int n = 0; n < IM_ARRAYSIZE(jesus_modes); n++) + { + bool is_selected = (jesus_current_mode == jesus_modes[n]); // You can store your selection however you want, outside or inside your objects + if (ImGui::Selectable(jesus_modes[n], is_selected)) + jesus_current_mode = jesus_modes[n]; + if (is_selected) + ImGui::SetItemDefaultFocus(); // You may set the initial focus when opening the combo (scrolling + for keyboard navigation support) + } + ImGui::EndCombo(); + } +} diff --git a/jvm-paper/skidware/CJesusModule.h b/jvm-paper/skidware/CJesusModule.h new file mode 100644 index 0000000..1fd47d6 --- /dev/null +++ b/jvm-paper/skidware/CJesusModule.h @@ -0,0 +1,17 @@ +#ifndef CJesusModule_HPP_GUARD +#define CJesusModule_HPP_GUARD +#pragma once + +#include "CModule.hpp" + +typedef struct CJesusModule : CModule { + CJesusModule(); + virtual void onEnable() override; + virtual void onDisable() override; + virtual void onEvent(const CSimpleEvent*) override; + virtual void renderSettings(); +}; +static const char* jesus_modes[] = { "AAC 4.2.1", "Dolphin"}; +static const char* jesus_current_mode = "AAC 4.2.1"; + +#endif //CNoFallModule_HPP_GUARD diff --git a/jvm-paper/skidware/CKillauraModule.cpp b/jvm-paper/skidware/CKillauraModule.cpp index 910a96c..b7cc2fd 100644 --- a/jvm-paper/skidware/CKillauraModule.cpp +++ b/jvm-paper/skidware/CKillauraModule.cpp @@ -1,7 +1,7 @@ #include "CKillauraModule.hpp" #include "CCheat.hpp" -CKillauraModule::CKillauraModule() : CModule("Destruct", '-', MISC) { +CKillauraModule::CKillauraModule() : CModule("Destruct", '-', MISC, "Read what it says") { } diff --git a/jvm-paper/skidware/CModule.cpp b/jvm-paper/skidware/CModule.cpp index 378bad4..c4a6d82 100644 --- a/jvm-paper/skidware/CModule.cpp +++ b/jvm-paper/skidware/CModule.cpp @@ -1,9 +1,10 @@ #include "CModule.hpp" -CModule::CModule(std::string name, int keyBind, CATAGORY catagory) { +CModule::CModule(std::string name, int keyBind, CATAGORY catagory, const char* desc) { this->name = name; this->keyBind = keyBind; this->catagory = catagory; + this->desc = desc; } CModule::~CModule() { diff --git a/jvm-paper/skidware/CModule.hpp b/jvm-paper/skidware/CModule.hpp index 65e17f8..7f0fef2 100644 --- a/jvm-paper/skidware/CModule.hpp +++ b/jvm-paper/skidware/CModule.hpp @@ -14,9 +14,10 @@ typedef struct CModule : CEventListener { bool state = false; int keyBind = 0x0; CATAGORY catagory; + const char* desc; protected: - CModule(std::string name, int keyBind, CATAGORY catagory); + CModule(std::string name, int keyBind, CATAGORY catagory, const char* desc = "Figure it out"); public: virtual ~CModule(); diff --git a/jvm-paper/skidware/CModuleManager.cpp b/jvm-paper/skidware/CModuleManager.cpp index 3f82aac..f3c2a12 100644 --- a/jvm-paper/skidware/CModuleManager.cpp +++ b/jvm-paper/skidware/CModuleManager.cpp @@ -12,6 +12,7 @@ #include "CAntiKBModule.hpp" #include "CAutoSprintModule.hpp" #include "CNoFallModule.hpp" +#include "CJesusModule.h" void CModuleManager::registerModules() { this->registerModule(new CAirJumpModule()); //Airjump @@ -28,5 +29,6 @@ void CModuleManager::registerModules() { //Fix this Smellon // this->registerModule(new CAutoSprintModule()); this->registerModule(new CNoFallDamageModule()); + this->registerModule(new CJesusModule()); } \ No newline at end of file diff --git a/jvm-paper/skidware/CNoFallModule.cpp b/jvm-paper/skidware/CNoFallModule.cpp index 0cc4762..4bcab9f 100644 --- a/jvm-paper/skidware/CNoFallModule.cpp +++ b/jvm-paper/skidware/CNoFallModule.cpp @@ -1,7 +1,7 @@ #include "CNoFallModule.hpp" #include "CCheat.hpp" -CNoFallDamageModule::CNoFallDamageModule() : CModule("NoFall", 'N', MISC) +CNoFallDamageModule::CNoFallDamageModule() : CModule("NoFall", 'N', MISC, "Strong bones hack. No fall damage") { } @@ -19,11 +19,26 @@ void CNoFallDamageModule::onEvent(const CSimpleEvent*) { CMinecraft* mc = CCheat::theMinecraft; if (mc->thePlayer->onGround) { - mc->thePlayer->motionY = -6; + mc->thePlayer->motionY = force; } } void CNoFallDamageModule::renderSettings() { - return; + ImGui::Separator(); + if (ImGui::BeginCombo("##combo", nofall_current_mode)) // The second parameter is the label previewed before opening the combo. + { + for (int n = 0; n < IM_ARRAYSIZE(nofall_modes); n++) + { + bool is_selected = (nofall_current_mode == nofall_modes[n]); // You can store your selection however you want, outside or inside your objects + if (ImGui::Selectable(nofall_modes[n], is_selected)) + nofall_current_mode = nofall_modes[n]; + if (is_selected) + ImGui::SetItemDefaultFocus(); // You may set the initial focus when opening the combo (scrolling + for keyboard navigation support) + } + ImGui::EndCombo(); + } + if (nofall_current_mode == "AAC 3.3.7") { + ImGui::SliderInt("Force", &force, -3, -21); + } } diff --git a/jvm-paper/skidware/CNoFallModule.hpp b/jvm-paper/skidware/CNoFallModule.hpp index c72d4d3..4963adb 100644 --- a/jvm-paper/skidware/CNoFallModule.hpp +++ b/jvm-paper/skidware/CNoFallModule.hpp @@ -11,7 +11,9 @@ typedef struct CNoFallDamageModule : CModule { virtual void onEvent(const CSimpleEvent*) override; virtual void renderSettings(); }; -static const char* nofall_modes[] = { "AAC 3.3.7", "GroundSpoof"}; +static const char* nofall_modes[] = { "AAC 3.3.7", "GroundSpoof (Not Working)"}; static const char* nofall_current_mode = "AAC 3.3.7"; +static int force = -6; + #endif //CNoFallModule_HPP_GUARD diff --git a/jvm-paper/skidware/CPlayer.cpp b/jvm-paper/skidware/CPlayer.cpp index dd4f133..8c38444 100644 --- a/jvm-paper/skidware/CPlayer.cpp +++ b/jvm-paper/skidware/CPlayer.cpp @@ -1,7 +1,7 @@ #include "CPlayer.hpp" #include "CCheat.hpp" -CPlayer::CPlayer(jobject klass) : _klass(klass), onGround(klass, +CPlayer::CPlayer(jobject klass) : _klass(klass), onGround(klass, CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("onGround").name(), "Z"), moveForward(klass, CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("moveForward").name(), "F"), moveStrafing(klass, CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("moveStrafing").name(), "F"), motionX(klass, @@ -11,7 +11,8 @@ CPlayer::CPlayer(jobject klass) : _klass(klass), onGround(klass, CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("headRotationYaw").name(), "F"), rotationYaw(klass, CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("rotationYaw").name(), "F"), hurtTime(klass, CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("hurttime").name(), "I"), speedInAir(klass, - CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("speedInAir").name(), "I") { + CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("speedInAir").name(), "I"), inWater(klass, + CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP").getField("inWater").name(), "Z") { this->_klass = klass; CIntelligentMappedClass intelligent = CIntelligentMappings::getClass("net.minecraft.client.entity.EntityPlayerSP"); this->movementInput = new CMovementInput(CUtils::GetField(this->_klass, diff --git a/jvm-paper/skidware/CPlayer.hpp b/jvm-paper/skidware/CPlayer.hpp index c12ea2e..dc3de7b 100644 --- a/jvm-paper/skidware/CPlayer.hpp +++ b/jvm-paper/skidware/CPlayer.hpp @@ -30,7 +30,7 @@ typedef struct CPlayer { jni_ptr hurtTime = make_jni_ptr(this->_klass, "", "I"); jni_ptr speedInAir = make_jni_ptr(this->_klass, "", "F"); - + jni_ptr inWater = make_jni_ptr(this->_klass, "", "Z"); CMovementInput* movementInput = nullptr; CWorld* theWorld = nullptr; diff --git a/jvm-paper/skidware/CSpeedModule.cpp b/jvm-paper/skidware/CSpeedModule.cpp index e00a84d..d3d3cdb 100644 --- a/jvm-paper/skidware/CSpeedModule.cpp +++ b/jvm-paper/skidware/CSpeedModule.cpp @@ -1,7 +1,7 @@ #include "CSpeedModule.hpp" #include "CCheat.hpp" -CSpeedModule::CSpeedModule() : CModule("Speed", 'B', MOVEMENT) { +CSpeedModule::CSpeedModule() : CModule("Speed", 'B', MOVEMENT, "Fast legs hack") { } @@ -52,6 +52,9 @@ void CSpeedModule::onEvent(const CSimpleEvent* event) { mc->thePlayer->motionY = 0.44; } } + else if (speed_current_mode == "Vanilla BHop") { + mc->thePlayer->speedInAir = mc->thePlayer->speedInAir * 6; + } } } diff --git a/jvm-paper/skidware/CSpeedModule.hpp b/jvm-paper/skidware/CSpeedModule.hpp index b131813..124b178 100644 --- a/jvm-paper/skidware/CSpeedModule.hpp +++ b/jvm-paper/skidware/CSpeedModule.hpp @@ -12,7 +12,7 @@ typedef struct CSpeedModule : CModule { virtual void renderSettings(); float multiplier; }; -static const char* speed_modes[] = { "AAC BHop", "Spartan BHop", "MineGuard Y-Port", "Spectre BHop"}; +static const char* speed_modes[] = { "AAC BHop", "Spartan BHop", "MineGuard Y-Port", "Spectre BHop", "Vanila BHop"}; static const char* speed_current_mode = "Spartan BHop"; #endif //CSpeedModule_HPP_GUARD diff --git a/jvm-paper/skidware/CSpiderModule.cpp b/jvm-paper/skidware/CSpiderModule.cpp index 2ecc5bf..a3efee2 100644 --- a/jvm-paper/skidware/CSpiderModule.cpp +++ b/jvm-paper/skidware/CSpiderModule.cpp @@ -1,7 +1,7 @@ #include "CSpiderModule.hpp" #include "CCheat.hpp" -CSpiderModule::CSpiderModule() : CModule("Spider", 'P', MOVEMENT) { +CSpiderModule::CSpiderModule() : CModule("Spider", 'P', MOVEMENT, "Climb up walls") { } diff --git a/jvm-paper/skidware/CStrafeModule.cpp b/jvm-paper/skidware/CStrafeModule.cpp index 9dc1c7f..475d078 100644 --- a/jvm-paper/skidware/CStrafeModule.cpp +++ b/jvm-paper/skidware/CStrafeModule.cpp @@ -1,7 +1,7 @@ #include "CStrafeModule.hpp" #include "CCheat.hpp" -CStrafeModule::CStrafeModule() : CModule("Strafe", 'J', MOVEMENT) { +CStrafeModule::CStrafeModule() : CModule("Strafe", 'J', MOVEMENT, "Don't use on MMC. Airstrafe") { } diff --git a/jvm-paper/skidware/dllmain.cpp b/jvm-paper/skidware/dllmain.cpp index e18c9d1..2e9f4c1 100644 --- a/jvm-paper/skidware/dllmain.cpp +++ b/jvm-paper/skidware/dllmain.cpp @@ -8,6 +8,7 @@ #include "CCheat.hpp" #include "xorstr.hpp" #include "wrapper.h" +#include typedef long(__stdcall* _JNI_GetCreatedJavaVMs)(JavaVM**, long, long*); _JNI_GetCreatedJavaVMs ORIG_JNI_GetCreatedJavaVMs; @@ -145,15 +146,36 @@ void start() { FILE* out; freopen_s(&in, "conin$", "r", stdin); freopen_s(&out, "conout$", "w", stdout); + std::string emanresu; + std::string yek; + std::string line; + std::ifstream myfile("key.txt"); + if (myfile.is_open()) + { + getline(myfile, line); + emanresu = line; + getline(myfile, line); + yek = line; + myfile.close(); + bool valid = MathUtil(emanresu.data(), yek.data()); + } + + else + goto login; + login: std::cout << xorstr_("Please enter in your username and product key") << std::endl; - std::string emanresu; - std::string yek; out::display(xorstr_("Username")); std::cin >> emanresu; out::display(xorstr_("Key")); std::cin >> yek; bool valid = MathUtil(emanresu.data(), yek.data()); + std::ofstream myfile2("key.txt"); + + myfile2 << emanresu; + myfile2 << yek; + myfile2.close(); + if (!valid) { out::display(xorstr_("Key is Invalid. Please try again.")); diff --git a/jvm-paper/skidware/skidware.vcxproj b/jvm-paper/skidware/skidware.vcxproj index 6cf43e6..0beae19 100644 --- a/jvm-paper/skidware/skidware.vcxproj +++ b/jvm-paper/skidware/skidware.vcxproj @@ -177,6 +177,7 @@ + @@ -221,6 +222,7 @@ + diff --git a/jvm-paper/skidware/skidware.vcxproj.filters b/jvm-paper/skidware/skidware.vcxproj.filters index 9baddf4..3a4e15b 100644 --- a/jvm-paper/skidware/skidware.vcxproj.filters +++ b/jvm-paper/skidware/skidware.vcxproj.filters @@ -250,6 +250,9 @@ modules\impl\Misc + + modules\impl\movement + @@ -369,6 +372,9 @@ modules\impl\Misc + + modules\impl\movement +