From 367a811667d96794df0f2fbd48b84b1c040e4f13 Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Sun, 23 Jul 2023 15:54:56 +0200 Subject: [PATCH] Add DEBUG check to player pos --- src/hooks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks.c b/src/hooks.c index 19ac27c..84df719 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -36,12 +36,14 @@ int h_HUD_Redraw(float time, int intermission) { i_engine->pfnDrawSetTextColor(1, 1, 1); i_engine->pfnDrawConsoleString(5, 5, "8dcc/hl-cheat"); +#ifdef DEBUG char pos[100]; sprintf(pos, "x: %f, y: %f, z: %f", localplayer->origin[0], localplayer->origin[1], localplayer->origin[2]); i_engine->pfnDrawSetTextColor(1, 1, 1); i_engine->pfnDrawConsoleString(5, 20, pos); +#endif esp();