Skip to content

Commit

Permalink
solid wave trail
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Feb 3, 2024
1 parent d6a1716 commit bb6fcc3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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** <cr>disabled</c> 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)
Expand Down
3 changes: 3 additions & 0 deletions src/Client/ClientSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ class ClientUtils
#endif
cosmetic->modules.push_back(new Module("No Shaders", "no-shaders", "Disables shaders, <cl>maybe read</c> 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);
Expand Down
40 changes: 24 additions & 16 deletions src/Hacks/SolidWaveTrail.cpp
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
/*#include <Geode/Geode.hpp>
//#include <Geode/modify/HardStreak.hpp>
#include <Geode/modify/CCDrawNode.hpp>
#include <Geode/Geode.hpp>
#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");
}//
};*/
return ins->drawPolygon(verts, count, fillColor, borderWidth, fillColor);
}

$execute {
Mod::get()->hook(
reinterpret_cast<void*>(
geode::addresser::getNonVirtual(&HardStreak::drawPolygon)
),
&myDrawCircle,
"cocos2d::CCDrawNode::drawPolygon",
tulip::hook::TulipConvention::Thiscall
);
}

0 comments on commit bb6fcc3

Please sign in to comment.