feat(Hooks): Removed report cheating handler unused
This commit is contained in:
parent
e038356b19
commit
93c1a449fa
@ -41,5 +41,4 @@ namespace big::functions
|
|||||||
|
|
||||||
// Net Event Handlers
|
// Net Event Handlers
|
||||||
using report_cash_spawn = bool(__int64 creport_cash_spawn_event, CNetGamePlayer* source_player);
|
using report_cash_spawn = bool(__int64 creport_cash_spawn_event, CNetGamePlayer* source_player);
|
||||||
using report_cheating = void(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4);
|
|
||||||
}
|
}
|
||||||
|
@ -58,8 +58,6 @@ namespace big
|
|||||||
|
|
||||||
// Report Cash Spawn Event
|
// Report Cash Spawn Event
|
||||||
m_report_cash_spawn_event_hook("RCSE", g_pointers->m_report_cash_spawn, &hooks::report_cash_spawn_handler),
|
m_report_cash_spawn_event_hook("RCSE", g_pointers->m_report_cash_spawn, &hooks::report_cash_spawn_handler),
|
||||||
// Report Cheating Hook
|
|
||||||
m_report_cheating_hook("RC", g_pointers->m_report_cheating, &hooks::report_cheating_handler),
|
|
||||||
|
|
||||||
// Scripted Game Event Hook
|
// Scripted Game Event Hook
|
||||||
m_scripted_game_event_hook("SGEH", g_pointers->m_scripted_game_event, &hooks::scripted_game_event)
|
m_scripted_game_event_hook("SGEH", g_pointers->m_scripted_game_event, &hooks::scripted_game_event)
|
||||||
@ -97,7 +95,6 @@ namespace big
|
|||||||
m_received_event_hook.enable();
|
m_received_event_hook.enable();
|
||||||
|
|
||||||
m_report_cash_spawn_event_hook.enable();
|
m_report_cash_spawn_event_hook.enable();
|
||||||
m_report_cheating_hook.enable();
|
|
||||||
|
|
||||||
m_scripted_game_event_hook.enable();
|
m_scripted_game_event_hook.enable();
|
||||||
|
|
||||||
@ -110,7 +107,6 @@ namespace big
|
|||||||
|
|
||||||
m_scripted_game_event_hook.disable();
|
m_scripted_game_event_hook.disable();
|
||||||
|
|
||||||
m_report_cheating_hook.disable();
|
|
||||||
m_report_cash_spawn_event_hook.disable();
|
m_report_cash_spawn_event_hook.disable();
|
||||||
|
|
||||||
m_received_event_hook.disable();
|
m_received_event_hook.disable();
|
||||||
|
@ -42,7 +42,6 @@ namespace big
|
|||||||
);
|
);
|
||||||
|
|
||||||
static bool report_cash_spawn_handler(__int64 creport_cash_spawn_event, CNetGamePlayer* source_player);
|
static bool report_cash_spawn_handler(__int64 creport_cash_spawn_event, CNetGamePlayer* source_player);
|
||||||
static void report_cheating_handler(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4);
|
|
||||||
|
|
||||||
static bool scripted_game_event(CScriptedGameEvent* scripted_game_event, CNetGamePlayer* player);
|
static bool scripted_game_event(CScriptedGameEvent* scripted_game_event, CNetGamePlayer* player);
|
||||||
};
|
};
|
||||||
@ -84,7 +83,6 @@ namespace big
|
|||||||
detour_hook m_received_event_hook;
|
detour_hook m_received_event_hook;
|
||||||
|
|
||||||
detour_hook m_report_cash_spawn_event_hook;
|
detour_hook m_report_cash_spawn_event_hook;
|
||||||
detour_hook m_report_cheating_hook;
|
|
||||||
|
|
||||||
detour_hook m_scripted_game_event_hook;
|
detour_hook m_scripted_game_event_hook;
|
||||||
};
|
};
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
#include "hooking.hpp"
|
|
||||||
#include "util/notify.hpp"
|
|
||||||
|
|
||||||
namespace big
|
|
||||||
{
|
|
||||||
void hooks::report_cheating_handler(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4)
|
|
||||||
{
|
|
||||||
LOG(INFO) << "Caught game trying to report self.";
|
|
||||||
notify::above_map("Game tried to snitch.");
|
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
//return g_hooking->m_report_cheating_hook.get_original<decltype(&hooks::report_cheating_handler)>()(a1, a2, a3, a4);
|
|
||||||
}
|
|
||||||
}
|
|
@ -174,12 +174,6 @@ namespace big
|
|||||||
m_report_cash_spawn = ptr.as<decltype(m_report_cash_spawn)>();
|
m_report_cash_spawn = ptr.as<decltype(m_report_cash_spawn)>();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Report Myself Handler
|
|
||||||
main_batch.add("RMH", "E8 ? ? ? ? 41 8B 47 0C 39 43 20", [this](memory::handle ptr)
|
|
||||||
{
|
|
||||||
m_report_cheating = ptr.as<decltype(m_report_cheating)>();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Scripted Game Event Handler
|
// Scripted Game Event Handler
|
||||||
main_batch.add("SGEH", "40 53 48 81 EC ? ? ? ? 44 8B 81 ? ? ? ? 4C 8B CA 41 8D 40 FF 3D ? ? ? ? 77 42", [this](memory::handle ptr)
|
main_batch.add("SGEH", "40 53 48 81 EC ? ? ? ? 44 8B 81 ? ? ? ? 4C 8B CA 41 8D 40 FF 3D ? ? ? ? 77 42", [this](memory::handle ptr)
|
||||||
{
|
{
|
||||||
|
@ -59,7 +59,6 @@ namespace big
|
|||||||
|
|
||||||
// Net Event Handlers
|
// Net Event Handlers
|
||||||
functions::report_cash_spawn* m_report_cash_spawn{};
|
functions::report_cash_spawn* m_report_cash_spawn{};
|
||||||
functions::report_cheating* m_report_cheating{};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inline pointers *g_pointers{};
|
inline pointers *g_pointers{};
|
||||||
|
Reference in New Issue
Block a user