diff --git a/src/hooks.c b/src/hooks.c new file mode 100644 index 0000000..f95e2cc --- /dev/null +++ b/src/hooks.c @@ -0,0 +1,18 @@ + +#include "include/hooks.h" +#include "include/sdk.h" +#include "include/globals.h" + +DECL_HOOK(CL_CreateMove); + +bool hooks_init(void) { + HOOK(gp_client, CL_CreateMove); + + return true; +} + +void h_CL_CreateMove(float frametime, usercmd_t* cmd, int active) { + /* printf("Hello from CL_CreateMove!\n"); */ + + ORIGINAL(CL_CreateMove, frametime, cmd, active); +}