Home
Q3A source
game directory
bg_lib
bg_local
bg_pmove
bg_public
g_active
g_client
g_cmds
g_local
g_main
g_pseudocam
g_svcmds
g_syscalls
q_math
q_shared

bg_pmove.c

bg_pmove.c handles the player movement from both the server and client. The client uses the function from cg_predict.c, in that it predicts where the client will be based on velocity and direction faced.

The entry function is Pmove, which calls PmoveSingle a number of times, depending on the speed of the client. PmoveSingle then calls a function to actually move the client depending on the type of client.