From b878ff38dd1292171fc141634672d6131418c24b Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sun, 8 Sep 2024 13:37:00 +0100 Subject: [PATCH] Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH --- primedev/scripts/client/clientchathooks.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/primedev/scripts/client/clientchathooks.cpp b/primedev/scripts/client/clientchathooks.cpp index 964625705..c0a06dd2c 100644 --- a/primedev/scripts/client/clientchathooks.cpp +++ b/primedev/scripts/client/clientchathooks.cpp @@ -6,8 +6,6 @@ #include -AUTOHOOK_INIT() - static void(__fastcall* o_pCHudChat__AddGameLine)(void* self, const char* message, int inboxId, bool isTeam, bool isDead) = nullptr; static void __fastcall h_CHudChat__AddGameLine(void* self, const char* message, int inboxId, bool isTeam, bool isDead) { @@ -66,8 +64,6 @@ ADD_SQFUNC("void", NSChatWriteLine, "int context, string text", "", ScriptContex ON_DLL_LOAD_CLIENT("client.dll", ClientChatHooks, (CModule module)) { - AUTOHOOK_DISPATCH() - o_pCHudChat__AddGameLine = module.Offset(0x22E580).RCast(); HookAttach(&(PVOID&)o_pCHudChat__AddGameLine, (PVOID)h_CHudChat__AddGameLine); }