diff --git a/changelog.md b/changelog.md index 3652661..a9f29f4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # 1.1.0 - Added Icon Effects (RGB Icons) +- Added no Wave Trail - Removed the text limit bypasses due to crashes, sorry :/ - **Temporarily** disabled 32 bit android support due to crashes, when I get my hands on a copy of 32 bit gd i can fix this - Created an official [Discord Server](https://discord.gg/DfQSTEnQKK) diff --git a/src/Client/ClientSetup.h b/src/Client/ClientSetup.h index 9f6ff27..e0a5b98 100644 --- a/src/Client/ClientSetup.h +++ b/src/Client/ClientSetup.h @@ -109,6 +109,9 @@ class ClientUtils #endif cosmetic->modules.push_back(new Module("No Shaders", "no-shaders", "Disables shaders, maybe read the name")); cosmetic->modules.push_back(new Module("No Death Effect", "no-death", "Disables the death effect on the player")); + + cosmetic->modules.push_back(new Module("No Wave Trail", "no-wave", "Disables the wave trail")); + cosmetic->modules.push_back(new Module("Solid Wave Trail", "solid-wave", "Makes the wave trail a solid colour")); //cosmetic->modules.push_back(new Module("No Player Rotation", "no-plr-rot", "Disables Player Rotation :3\nIt looks ugly imo but you do you")); Client::instance->windows.push_back(cosmetic); diff --git a/src/Hacks/SolidWaveTrail.cpp b/src/Hacks/SolidWaveTrail.cpp index 49a9a79..ba58f60 100644 --- a/src/Hacks/SolidWaveTrail.cpp +++ b/src/Hacks/SolidWaveTrail.cpp @@ -1,24 +1,32 @@ -/*#include -//#include -#include +#include #include "../Client/Client.h" using namespace geode::prelude; -class $modify (CCDrawNode) -{ - void drawPolygon(CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor) +bool myDrawCircle(CCDrawNode* ins, CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor) { + if (Client::GetModuleEnabled("no-wave")) + return true; + + if (Client::GetModuleEnabled("solid-wave")) { - log::info("a"); + if (fillColor.r >= 1.0f && fillColor.g >= 1.0f && fillColor.b >= 1.0f) + return true; + + ins->setBlendFunc(CCSprite::create()->getBlendFunc()); - CCDrawNode::drawPolygon(verts, count, fillColor, borderWidth, borderColor); + ins->setZOrder(-1); } -}; -*/ -/*void updateStroke(float p0) -{ - HardStreak::updateStroke(p0); - log::info("s"); -}// -};*/ \ No newline at end of file + return ins->drawPolygon(verts, count, fillColor, borderWidth, fillColor); +} + +$execute { + Mod::get()->hook( + reinterpret_cast( + geode::addresser::getNonVirtual(&HardStreak::drawPolygon) + ), + &myDrawCircle, + "cocos2d::CCDrawNode::drawPolygon", + tulip::hook::TulipConvention::Thiscall + ); +} \ No newline at end of file