Call esp() from HUD_Redraw hook
Draw localplayer pos bellow watermark
This commit is contained in:
parent
19a21567e6
commit
0f473bba4e
10
src/hooks.c
10
src/hooks.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue