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

cg_consolecmds.c

This file handles all of the console commands entered into the client console. If a command is not handled, it is sent to the server, and handled in "game/g_cmds.c". There are two main sections to the file, the mapping of console commands to function pointers, which occurs within a struct and is easy to follow.

The second portion deals with tab completion of console commands. So, if you want a server command to tab complete on the client console, then add it in!