From 2250824341359ee19d9b3b4084ce9760cc478795 Mon Sep 17 00:00:00 2001 From: TheSillyDoggo Date: Thu, 19 Sep 2024 21:42:55 +1000 Subject: [PATCH] mrrow --- changelog.md | 1 + src/Client/ClientSetup.h | 1 + src/Hacks/NoTrailBlending.cpp | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 src/Hacks/NoTrailBlending.cpp diff --git a/changelog.md b/changelog.md index a5d41b3..0435b0c 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ - Added **Toolbox Button Bypass** - Added **Scale Text Input** - Added **Free Scroll** +- Added **No Trail Blending** # 1.6.6 diff --git a/src/Client/ClientSetup.h b/src/Client/ClientSetup.h index cce5533..363f2c7 100644 --- a/src/Client/ClientSetup.h +++ b/src/Client/ClientSetup.h @@ -341,6 +341,7 @@ class ClientUtils cosmetic->modules.push_back(new Module("No Ship Fire", "no-ship-fire", "Hides the fire behind the ship while it's flying")); cosmetic->modules.push_back(new Module("Ball Rotation Bug", "ball-rotation-bug", "EMULATES the old rotation bug when switching gamemodes from the ball")); + cosmetic->modules.push_back(new Module("No Trail Blending", "no-trail-blending", "Disables blending on the normal player trail")); //cosmetic->modules.push_back(new Module("No Camera Movement", "no-camera", "Disables camera movements that are made with triggers")); diff --git a/src/Hacks/NoTrailBlending.cpp b/src/Hacks/NoTrailBlending.cpp new file mode 100644 index 0000000..148c3e4 --- /dev/null +++ b/src/Hacks/NoTrailBlending.cpp @@ -0,0 +1,18 @@ +#include +#include +#include "../Client/Client.h" + +using namespace geode::prelude; + +class $modify (PlayerObject) +{ + virtual void update(float dt) + { + if (m_regularTrail) + m_regularTrail->setBlendFunc(this->getBlendFunc()); + + PlayerObject::update(dt); + } + + QOLMOD_MOD_ALL_HOOKS("no-trail-blending") +}; \ No newline at end of file