Skip to content

Commit

Permalink
fd
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Feb 5, 2024
1 parent 24c0211 commit 85daeb1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Client/ClientSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ class ClientUtils

cosmetic->modules.push_back(new Module("Transparent BG", "trans-bg", "Disables the colouring on the gradient backgrounds"));
cosmetic->modules.push_back(new Module("Transparent Lists", "trans-lists", "Disables the colouring on all cells"));

cosmetic->modules.push_back(new Module("Thicker Hitboxes", "thick-hitbox", "Makes the hitboxes in gd thicker ;)"));
//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
19 changes: 19 additions & 0 deletions src/Hacks/Thicker Hitboxes.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <Geode/Geode.hpp>
#include "../Client/Client.h"

using namespace geode::prelude;

bool myDrawPoly(CCDrawNode* ins, CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor) {
return ins->drawPolygon(verts, count, fillColor, borderWidth * (((ins->getTag() == -9999) && Client::GetModuleEnabled("thick-hitbox")) ? 2.2f /*2.2?! HOLY SHIT IS THAT A MOTHERFUCKING GEOMETRY DASH REFERENCE*/ : 1), borderColor);
}

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

0 comments on commit 85daeb1

Please sign in to comment.