Add localplayer entity

This commit is contained in:
8dcc
2023-07-20 23:30:44 +02:00
parent e3af8bd39a
commit 8216613d11
3 changed files with 13 additions and 0 deletions

View File

@@ -16,5 +16,13 @@ bool hooks_init(void) {
void h_CL_CreateMove(float frametime, usercmd_t* cmd, int active) {
ORIGINAL(CL_CreateMove, frametime, cmd, active);
/* Declared in globals.c */
localplayer = i_engine->GetLocalPlayer();
#ifdef DEBUG
printf("x: %f, y: %f, z: %f\n", localplayer->origin[0],
localplayer->origin[1], localplayer->origin[2]);
#endif
bhop(cmd);
}