Open Nianmou opened 2 months ago
I'm trying to use DynamicHook, however, I'm finding that no matter how I hook it, it doesn't trigger any messages
private MemoryFunctionVoid<nint, float , float, float> CCSBot_Blind; public override void Load(bool hotReload) { RegisterListener<Listeners.OnEntitySpawned>(OnEntitySpawnedHandler); CCSBot_Blind = new("55 48 8D 35 48 CA C9 00", Addresses.ServerPath); CCSBot_Blind.Hook(hk_CCSBot_Blind, HookMode.Pre); } private HookResult hk_CCSBot_Blind(DynamicHook arg) { Server.PrintToChatAll("CCSBot_Blind Go"); Console.WriteLine("CCSBot_Blind Go"); Console.WriteLine("CCSBot_Blind Go"); Console.WriteLine("CCSBot_Blind Go"); return HookResult.Continue; }
So, is it DynamicHook's problem or mine now?
I would probably confirm that this is actually a hot code path using the appropriate tooling (debugger etc.)
I'm trying to use DynamicHook, however, I'm finding that no matter how I hook it, it doesn't trigger any messages