-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added Player Check for No Cooldown
- Loading branch information
1 parent
38e6170
commit 9f45cd9
Showing
11 changed files
with
242 additions
and
35 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
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,50 @@ | ||
#include "Debug.h" | ||
#include "HookManager.h" | ||
#include "Utils.h" | ||
#include "game-utils.hpp" | ||
#include "events.h" | ||
|
||
namespace Cheat::Features | ||
{ | ||
Debug::Debug() | ||
{ | ||
events::GameUpdateEvent += MY_METHOD_HANDLER(Debug::OnGameUpdate); | ||
|
||
//HookManager::install(app::Char3DIdentity_NAMCAOAHPKA, Char3DIdentity_NAMCAOAHPKA_Hook); | ||
HookManager::install(app::Char3DIdentity_OEEGAAAOHIO, Char3DIdentity_OEEGAAAOHIO_Hook); | ||
//HookManager::install(app::Char3DIdentity_OPILBOAEJJO, Char3DIdentity_OPILBOAEJJO_Hook); | ||
} | ||
|
||
void Debug::OnGameUpdate() | ||
{ | ||
} | ||
|
||
void Debug::Char3DIdentity_NAMCAOAHPKA_Hook(app::Char3DIdentity* __this, MethodInfo* method) | ||
{ | ||
if (__this->fields._._._._.m_CachedPtr != nullptr) | ||
{ | ||
if (__this->fields.EJBODHBGPMG != nullptr) | ||
LOG("Char3DIdentity_NAMCAOAHPKA_Hook\n"); | ||
} | ||
CALL_ORIGIN(Char3DIdentity_NAMCAOAHPKA_Hook, __this, method); | ||
} | ||
void Debug::Char3DIdentity_OEEGAAAOHIO_Hook(app::Char3DIdentity* __this, MethodInfo* method) | ||
{ | ||
if (__this->fields._._._._.m_CachedPtr != nullptr) | ||
{ | ||
if (__this->fields.EJBODHBGPMG != nullptr) | ||
LOG("Char3DIdentity_OPILBOAEJJO_Hook"); | ||
} | ||
CALL_ORIGIN(Char3DIdentity_OEEGAAAOHIO_Hook, __this, method); | ||
} | ||
bool Debug::Char3DIdentity_OPILBOAEJJO_Hook(app::Char3DIdentity* __this, app::AHPHDBJOAGF__Enum FMDEPBPIEMC, MethodInfo* method) | ||
{ | ||
if (__this->fields._._._._.m_CachedPtr != nullptr) | ||
{ | ||
if (__this->fields.EJBODHBGPMG != nullptr) | ||
LOG("Char3DIdentity_OPILBOAEJJO_Hook"); | ||
} | ||
|
||
return CALL_ORIGIN(Char3DIdentity_OPILBOAEJJO_Hook, __this, FMDEPBPIEMC, method); | ||
} | ||
} |
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,19 @@ | ||
#pragma once | ||
#include "Singleton.h" | ||
#include "global.h" | ||
|
||
namespace Cheat::Features | ||
{ | ||
class Debug : public Singleton<Debug> | ||
{ | ||
public: | ||
Debug(); | ||
|
||
void OnGameUpdate(); | ||
|
||
private: | ||
static void Char3DIdentity_NAMCAOAHPKA_Hook(app::Char3DIdentity* __this, MethodInfo* method); | ||
static void Char3DIdentity_OEEGAAAOHIO_Hook(app::Char3DIdentity* __this, MethodInfo* method); | ||
static bool Char3DIdentity_OPILBOAEJJO_Hook(app::Char3DIdentity* __this, app::AHPHDBJOAGF__Enum FMDEPBPIEMC, MethodInfo* method); | ||
}; | ||
} |
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