Home
Q3A source
cgame directory
cg_consolecmds
cg_local
cg_predict
cg_public
cg_servercmds
cg_syscalls
cg_view

cg_predict.c

This function is called from the client and predicts where the client will be located based on velocity and origin. It calls the Pmove function found in "game/g_cmds.c". The prediction movement had to be turned off in order to control the location of the clients connected to the server. It was turned off by using a variable stored in "cg_t" to not call Pmove, when a client was connected to the pseudocamera.