Call esp() from HUD_Redraw hook

Draw localplayer pos bellow watermark
This commit is contained in:
8dcc 2023-07-22 16:06:18 +02:00
parent 19a21567e6
commit 0f473bba4e
1 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include "include/globals.h" #include "include/globals.h"
#include "features/include/movement.h" #include "features/include/movement.h"
#include "features/include/esp.h"
DECL_HOOK(CL_CreateMove); DECL_HOOK(CL_CreateMove);
DECL_HOOK(HUD_Redraw); DECL_HOOK(HUD_Redraw);
@ -31,5 +32,14 @@ int h_HUD_Redraw(float time, int intermission) {
i_engine->pfnDrawSetTextColor(1, 1, 1); i_engine->pfnDrawSetTextColor(1, 1, 1);
i_engine->pfnDrawConsoleString(5, 5, "8dcc/hl-cheat"); i_engine->pfnDrawConsoleString(5, 5, "8dcc/hl-cheat");
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);
esp();
return ret; return ret;
} }