-
Notifications
You must be signed in to change notification settings - Fork 23
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
TheSillyDoggo
committed
Sep 16, 2024
1 parent
7415842
commit 7657f2d
Showing
6 changed files
with
52 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/GJBaseGameLayer.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify (GJBaseGameLayer) | ||
{ | ||
virtual void update(float dt) | ||
{ | ||
if (m_player1 && m_player1->m_isDead) | ||
return; | ||
|
||
if (m_player2 && m_player2->m_isDead) | ||
return; | ||
|
||
GJBaseGameLayer::update(dt); | ||
} | ||
|
||
static void onModify(auto& self) | ||
{ | ||
auto hook = self.getHook("GJBaseGameLayer::update"); | ||
self.setHookPriority("GJBaseGameLayer::update", 9999999999); | ||
|
||
Loader::get()->queueInMainThread([hook] | ||
{ | ||
auto modu = Client::GetModule("stop-triggers-on-death"); | ||
modu->addHookRaw(hook); | ||
}); | ||
} | ||
}; |
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