Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Feb 12, 2024
1 parent 2c8d397 commit e7bd435
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/Hacks/NoDeathEffect.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
#include <Geode/Geode.hpp>
#include <Geode/modify/PlayerObject.hpp>
#include <Geode/modify/PlayLayer.hpp>
#include "../Client/Client.h"

using namespace geode::prelude;

class $modify (PlayLayer)
{
TodoReturn delayedResetLevel()
{
if (!Client::GetModuleEnabled("instant-restart"))
PlayLayer::delayedResetLevel();
}
};

class $modify (PlayerObject)
{
void playerDestroyed(bool p0)
Expand Down
8 changes: 6 additions & 2 deletions src/Hacks/SolidWaveTrail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ bool myDrawCircle(CCDrawNode* ins, CCPoint *verts, unsigned int count, const ccC

if (Client::GetModuleEnabled("solid-wave"))
{
if (fillColor.r >= 1.0f && fillColor.g >= 1.0f && fillColor.b >= 1.0f)
if (fillColor.r >= 1.0f && fillColor.g >= 1.0f && fillColor.b >= 1.0f && ins->getColor() != ccc3(255, 255, 255))
return true;

ins->setBlendFunc(CCSprite::create()->getBlendFunc());
if (ins->getTag() != 1)
{
ins->setTag(1);
ins->setBlendFunc(CCSprite::create()->getBlendFunc());
}

ins->setZOrder(-1);
}
Expand Down

0 comments on commit e7bd435

Please sign in to comment.