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

g_syscalls.c/asm

The asm file is used when compiling in Linux, the c file is used when compiling in Windows. This contains traps into the engine. There is no actual endpoint of the trap, an exit from the engine to another part of the code simply appears. The easiest way to follow the traps is to find an entry point into the engine (from existing calls), and find similar exit points in the code. We used "grep" to do this. Most of the traps pass in text, eg "spectate", so find where the line of text "spectate" is used elsewhere, and bingo! You have mapped the wormhole, or engine trap.