#pragma once #include "../../util/aabb.h" #include "../world/bsp.h" #include "../player.h" #include "../vars.h" extern CVAR* mv_gravity; extern CVAR* mv_friction; extern CVAR* mv_accelerate; extern CVAR* mv_airaccelerate; extern CVAR* mv_wallboost; extern CVAR* mv_maxspeed; struct GAME_MOVEMENT { PLAYER* pl; PLAYER_INPUT* input; GAME_DATA* game; VEC3 velocity; VEC3 pos; VEC3 angle; F32 maxspeed; F32 walkspeed; AABB aabb; BSP* bsp; F32 out_step; }; extern void gmove_init( GAME_DATA* game ); extern void gmove_set_player( PLAYER* player ); extern void gmove_tick(); extern void gmove_process_move(); extern GAME_MOVEMENT* gmove;