-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a97dcbb
commit 5208f47
Showing
11 changed files
with
333 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifdef GEODE_IS_WINDOWS | ||
|
||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/PlayerObject.hpp> | ||
#include <Geode/modify/GJBaseGameLayer.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify (GJBaseGameLayer) | ||
{ | ||
Module* mod = nullptr; | ||
|
||
TodoReturn collisionCheckObjects(PlayerObject* p0, gd::vector<GameObject*>* p1, int p2, float p3) | ||
{ | ||
if (!mod) | ||
mod = Client::GetModule("all-plat"); | ||
|
||
if (mod->enabled) | ||
{ | ||
//#ifdef GEODE_IS_WINDOWS | ||
auto* value = reinterpret_cast<uintptr_t*>(((uintptr_t)this) + 0x29C6); | ||
//#endif | ||
|
||
//#ifdef GEODE_IS_ANDROID32 | ||
//auto* value = reinterpret_cast<uintptr_t*>(((uintptr_t)this) + 0x29de); | ||
//#endif | ||
|
||
//#ifdef GEODE_IS_ANDROID64 | ||
//auto* value = reinterpret_cast<uintptr_t*>(((uintptr_t)this) + 0x29C6); | ||
//#endif | ||
|
||
uintptr_t og = *value; | ||
*value = 0; | ||
GJBaseGameLayer::collisionCheckObjects(p0, p1, p2, p3); | ||
*value = og; | ||
} | ||
else | ||
{ | ||
GJBaseGameLayer::collisionCheckObjects(p0, p1, p2, p3); | ||
} | ||
} | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +0,0 @@ | ||
/*#include <Geode/Geode.hpp> | ||
#include <Geode/modify/CCKeyboardDispatcher.hpp> | ||
#include "../Client/Client.h" | ||
using namespace geode::prelude; | ||
class $modify (CCKeyboardDispatcher) | ||
{ | ||
bool dispatchKeyboardMSG(enumKeyCodes key, bool p1, bool p2) | ||
{ | ||
//log::info("k"); | ||
if (key == enumKeyCodes::KEY_L) | ||
{ | ||
log::info("RobTop"); | ||
GJAccountManager::get()->m_username = "RobTop"; | ||
//GJAccountManager::get()->m_accountID = 16; | ||
} | ||
else if (key == enumKeyCodes::KEY_K) | ||
{ | ||
log::info("TheSillyDoggo"); | ||
GJAccountManager::get()->m_username = "TheSillyDoggo"; | ||
//GJAccountManager::get()->m_accountID = 16778880; | ||
} | ||
return CCKeyboardDispatcher::dispatchKeyboardMSG(key, p1, p2); | ||
} | ||
};*/ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/GameObject.hpp> | ||
#include <Geode/modify/CCScheduler.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
Ref<CCLabelBMFont> lbl1 = nullptr; | ||
Ref<CCLabelBMFont> lbl2 = nullptr; | ||
|
||
void mySetID(CCNode* ins, const std::string &id) { | ||
ins->setID(id); | ||
|
||
if (id == "dankmeme.globed2/remote-player-16778880") | ||
{ | ||
log::info("i am real"); | ||
|
||
lbl1 = (getChildOfType<CCLabelBMFont>(as<CCNode*>(ins->getChildren()->objectAtIndex(0)), 0)); | ||
lbl2 = (getChildOfType<CCLabelBMFont>(as<CCNode*>(ins->getChildren()->objectAtIndex(1)), 0)); | ||
} | ||
} | ||
|
||
class $modify (CCScheduler) | ||
{ | ||
void update(float dt) | ||
{ | ||
CCScheduler::update(dt); | ||
|
||
if (lbl1 && lbl1->getParent()) | ||
lbl1->setColor(ColourUtility::getPastelColour()); | ||
|
||
if (lbl2 && lbl2->getParent()) | ||
lbl2->setColor(ColourUtility::getPastelColour()); | ||
} | ||
}; | ||
|
||
$execute { | ||
Mod::get()->hook( | ||
reinterpret_cast<void*>( | ||
geode::addresser::getNonVirtual(&CCNode::setID) | ||
), | ||
&mySetID, | ||
"cocos2d::CCNode::setID (Geode)", | ||
tulip::hook::TulipConvention::Thiscall | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,4 +55,4 @@ class $modify (CCScheduler) | |
|
||
CCScheduler::update(dt); | ||
} | ||
}; | ||
}; // LINE 115 DOESN'T FUCKING EXIST???? HOW CRASH |
Oops, something went wrong.