Add localplayer entity
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user