Skip to content

Commit

Permalink
No Shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jan 25, 2024
1 parent dd0b85c commit eea697a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Client/ClientSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class ClientUtils
cosmetic->modules.push_back(new Module("No Transition", "no-trans", "Disables the fade scene transitions"));
cosmetic->modules.push_back(new Module("No Player Rotation", "no-rot", "Disables rotation on players"));
cosmetic->modules.push_back(new Module("No Particles", "no-particles", "Disables particles, seems pretty obvious what this does imo"));
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 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
22 changes: 22 additions & 0 deletions src/Hacks/NoParticles.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
#include <Geode/Geode.hpp>
#include <Geode/modify/CCParticleSystem.hpp>
#include <Geode/modify/CCParticleSystemQuad.hpp>
#include "../Client/Client.h"

using namespace geode::prelude;

class $modify (CCParticleSystem)
{
virtual bool initWithTotalParticles(unsigned int numberOfParticles, bool idk)
{
return CCParticleSystem::initWithTotalParticles(Client::GetModuleEnabled("no-particles") ? 0 : numberOfParticles, idk);
}

virtual void update(float dt)
{
if (!Client::GetModuleEnabled("no-particles"))
CCParticleSystem::update(dt);
else
this->setScale(0);
}

virtual void setTotalParticles(unsigned int tp)
{
CCParticleSystem::setTotalParticles(Client::GetModuleEnabled("no-particles") ? 0 : tp);
}
};

class $modify (CCParticleSystemQuad)
{
virtual bool initWithTotalParticles(unsigned int numberOfParticles, bool idk)
Expand Down
14 changes: 14 additions & 0 deletions src/Hacks/NoShaders.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include <Geode/Geode.hpp>
#include <Geode/modify/ShaderLayer.hpp>
#include "../Client/Client.h"

using namespace geode::prelude;

class $modify (ShaderLayer)
{
TodoReturn performCalculations()
{
if (!Client::GetModuleEnabled("no-shaders"))
ShaderLayer::performCalculations();
}
};
2 changes: 0 additions & 2 deletions src/Hacks/Noclip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class $modify (PlayLayer)

void destroyPlayer(PlayerObject * p0, GameObject * p1)
{
log::info("the heavy is dead");

if (!Client::GetModuleEnabled("noclip"))
PlayLayer::destroyPlayer(p0, p1);
}
Expand Down

0 comments on commit eea697a

Please sign in to comment.