-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added shitty detected modules
- Loading branch information
Showing
11 changed files
with
183 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "Modules.h" | ||
|
||
void Ripterms::Modules::Glide::renderGUI() | ||
{ | ||
static bool display_options = false; | ||
ImGui::PushStyleVar(ImGuiStyleVar_ItemInnerSpacing, ImVec2(20.0f, 0.0f)); | ||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(250.0f, ImGui::GetStyle().FramePadding.y)); | ||
ImGui::Checkbox("Glide", &enabled); | ||
ImGui::PopStyleVar(); | ||
ImGui::PopStyleVar(); | ||
} | ||
|
||
void Ripterms::Modules::Glide::onUpdateWalkingPlayer(JNIEnv* env, EntityPlayerSP& this_player, bool* cancel) | ||
{ | ||
if (!enabled || this_player.getMotion().y > -0.1) return; | ||
Ripterms::Maths::Vector3d motion = this_player.getMotion(); | ||
motion.y = (this_player.getTicksExisted() % 2 == 0 ? -0.1 : -0.16); | ||
this_player.setMotion(motion); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "Modules.h" | ||
|
||
void Ripterms::Modules::Speed::renderGUI() | ||
{ | ||
static bool display_options = false; | ||
ImGui::PushStyleVar(ImGuiStyleVar_ItemInnerSpacing, ImVec2(20.0f, 0.0f)); | ||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(250.0f, ImGui::GetStyle().FramePadding.y)); | ||
ImGui::Checkbox("Speed", &enabled); | ||
ImGui::PopStyleVar(); | ||
ImGui::PopStyleVar(); | ||
if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) | ||
display_options = !display_options; | ||
ImGui::SameLine(); | ||
ImGui::SetCursorPosX(ImGui::GetWindowWidth() - 30.0f); | ||
if (ImGui::ArrowButton("SpeedOpt", ImGuiDir_Down)) | ||
display_options = !display_options; | ||
if (display_options) | ||
{ | ||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 10.0f); | ||
ImGui::BeginGroup(); | ||
ImGui::SliderFloat("Speed abpt", &speed, 0.01f, 2.0f, "%.2f"); | ||
ImGui::EndGroup(); | ||
} | ||
} | ||
|
||
void Ripterms::Modules::Speed::onUpdateWalkingPlayer(JNIEnv* env, EntityPlayerSP& this_player, bool* cancel) | ||
{ | ||
if (!enabled || !(GetKeyState(0x5A) & 0x8000) || !this_player.isOnGround()) return; | ||
Ripterms::Maths::Vector3d motion = this_player.getMotion(); | ||
Ripterms::Maths::Vector3d additional = Ripterms::Maths::getCameraVector(this_player.getRotation(), speed); | ||
motion.x += additional.x; | ||
motion.z += additional.z; | ||
this_player.setMotion(motion); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include "Modules.h" | ||
|
||
void Ripterms::Modules::VelocityFly::renderGUI() | ||
{ | ||
static bool display_options = false; | ||
ImGui::PushStyleVar(ImGuiStyleVar_ItemInnerSpacing, ImVec2(20.0f, 0.0f)); | ||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(250.0f, ImGui::GetStyle().FramePadding.y)); | ||
ImGui::Checkbox("VelocityFly", &enabled); | ||
ImGui::PopStyleVar(); | ||
ImGui::PopStyleVar(); | ||
if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) | ||
display_options = !display_options; | ||
ImGui::SameLine(); | ||
ImGui::SetCursorPosX(ImGui::GetWindowWidth() - 30.0f); | ||
if (ImGui::ArrowButton("VelocityFlyOpt", ImGuiDir_Down)) | ||
display_options = !display_options; | ||
if (display_options) | ||
{ | ||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 10.0f); | ||
ImGui::BeginGroup(); | ||
ImGui::SliderFloat("Speed", &speed, 0.01f, 2.0f, "%.2f"); | ||
ImGui::EndGroup(); | ||
} | ||
} | ||
|
||
void Ripterms::Modules::VelocityFly::onUpdateWalkingPlayer(JNIEnv* env, EntityPlayerSP& this_player, bool* cancel) | ||
{ | ||
if (!enabled) return; | ||
Ripterms::Maths::Vector3d motion = this_player.getMotion(); | ||
|
||
if (GetKeyState(0x5A) & 0x8000) | ||
{ | ||
Ripterms::Maths::Vector3d additional = Ripterms::Maths::getCameraVector(this_player.getRotation(), speed); | ||
motion.x += additional.x; | ||
motion.z += additional.z; | ||
} | ||
if (GetKeyState(VK_SPACE) & 0x8000) | ||
motion.y = speed; | ||
else if (GetKeyState(VK_LSHIFT) & 0x8000) | ||
motion.y = -speed; | ||
else motion.y = 0.0; | ||
|
||
if (!this_player.isOnGround()) | ||
this_player.setMotion(motion); | ||
} |