From e7bd43594f1dd780db162a0ef8b502b92dd8f547 Mon Sep 17 00:00:00 2001 From: Explodingbill Date: Mon, 12 Feb 2024 20:01:40 +1100 Subject: [PATCH] c --- src/Hacks/NoDeathEffect.cpp | 10 ++++++++++ src/Hacks/SolidWaveTrail.cpp | 8 ++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Hacks/NoDeathEffect.cpp b/src/Hacks/NoDeathEffect.cpp index f9aec94..43b6a88 100644 --- a/src/Hacks/NoDeathEffect.cpp +++ b/src/Hacks/NoDeathEffect.cpp @@ -1,9 +1,19 @@ #include #include +#include #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) diff --git a/src/Hacks/SolidWaveTrail.cpp b/src/Hacks/SolidWaveTrail.cpp index 69836ef..925a718 100644 --- a/src/Hacks/SolidWaveTrail.cpp +++ b/src/Hacks/SolidWaveTrail.cpp @@ -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); }