Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Feb 27, 2024
1 parent bfd1e69 commit ab8fd5e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/Client/ClientSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ class ClientUtils
level->modules.push_back(new Module("Level Edit", "level-edit", "Allows you to edit any level"));

level->modules.push_back(new Module("No Reverse Portal", "no-reverse", "Disables reverse portals, only use if your a pussy <cl>jk</c>"));

level->modules.push_back(new Module("Instant Restart", "instant-restart", "Restarts the level instantly upon death"));

//level->modules.push_back(new Module("No Hitboxes", "no-hitboxes", "Disables Object Hitboxes"));

//level->modules.push_back(new Module("Force Show Player", "show-player", "Force the player to be visible all the time"));
//level->modules.push_back(new Module("Force Hide Player", "hide-player", "Force the player to be hidden all the time"));


//level->modules.push_back(new Module("Startpos Switcher", "startpos-switcher", "Switch between start-positions in the level"));
//level->modules.push_back(new Module("Show Hitboxes", "hitbox"));
Expand Down
11 changes: 6 additions & 5 deletions src/Client/Replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ float dta;
}
};*/

/*class $modify (CheckpointObjectExt, CheckpointObject)
class $modify (CheckpointObjectExt, CheckpointObject)
{
float dt;
int frame;
Expand All @@ -45,7 +45,7 @@ float dta;

return true;
}
};*/
};

class $modify (PlayLayer)
{
Expand All @@ -62,7 +62,8 @@ class $modify (PlayLayer)
{
//log::info("cur: {}, inp: {}", GJReplayManager::dt, GJReplayManager::replay.inputs[GJReplayManager::frame].dt);

if (GJReplayManager::replay.inputs[GJReplayManager::frame].dt <= GJReplayManager::dt)
while (GJReplayManager::replay.inputs[GJReplayManager::frame].dt <= GJReplayManager::dt) // SHOULD fix this replay issues :3
//if (GJReplayManager::replay.inputs[GJReplayManager::frame].dt <= GJReplayManager::dt)
{
PlayerObject* plr = m_player1;

Expand Down Expand Up @@ -92,7 +93,7 @@ class $modify (PlayLayer)
{
PlayLayer::loadFromCheckpoint(p0);

/*


GJReplayManager::dt = as<CheckpointObjectExt*>(p0)->m_fields->dt;
GJReplayManager::frame = as<CheckpointObjectExt*>(p0)->m_fields->frame;
Expand All @@ -110,7 +111,7 @@ class $modify (PlayLayer)
}

GJReplayManager::replay.inputs = myvec;
}*/
}
}
};

Expand Down
16 changes: 16 additions & 0 deletions src/Hacks/NoHitboxes.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*#include <Geode/Geode.hpp>
#include <Geode/modify/GameObject.hpp>
#include "../Client/Client.h"
using namespace geode::prelude;
class $modify (GameObject)
{
virtual cocos2d::CCRect const& getObjectRect()
{
if (Client::GetModuleEnabled("no-hitboxes"))
this->m_isNoTouch = true;
return GameObject::getObjectRect();
}
};*/

0 comments on commit ab8fd5e

Please sign in to comment.