Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamicHook Questions #567

Open
Nianmou opened this issue Aug 30, 2024 · 2 comments
Open

DynamicHook Questions #567

Nianmou opened this issue Aug 30, 2024 · 2 comments
Labels
untriaged New issue has not been triaged

Comments

@Nianmou
Copy link

Nianmou commented Aug 30, 2024

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;
    }
@github-actions github-actions bot added the untriaged New issue has not been triaged label Aug 30, 2024
@Nianmou
Copy link
Author

Nianmou commented Aug 30, 2024

So, is it DynamicHook's problem or mine now?

@roflmuffin
Copy link
Owner

I would probably confirm that this is actually a hot code path using the appropriate tooling (debugger etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants