Engine Hooks
Revision as of 06:19, 24 March 2022 by Teamred (talk | contribs) (Created page with "Engine hooks are the functions that the quake engine calls in quake-c. With the exception of level initialization, virtually all quake-c code is executed starting from in of these functions {| class="wikitable" |+ !function name !brief description |- |.think() |called for each entity in the world as soon as time becomes larger than the specific .nextthink |- |.touch() |called for entities that collide with each other subject to physics |- | colspan="2"...")
Engine hooks are the functions that the quake engine calls in quake-c. With the exception of level initialization, virtually all quake-c code is executed starting from in of these functions
function name | brief description |
---|---|
.think() | called for each entity in the world as soon as time becomes larger than the specific .nextthink |
.touch() | called for entities that collide with each other subject to physics |
main() | "only for testing" |
StartFrame() | |
PlayerPreThink() | "Called every frame before physics are run" |
PlayerPostThink() | "Called every frame after physics are run" |
ClientKill() | "Player entered the suicide command" |
ClientConnect() | "called when a player connects to a server" |
ClientDisconnect() | "called when a player disconnects from a server" |
SetChangeParms() | "call to set parms for self so they can be saved for a level transition" |
SetNewParms() | "called when a client first connects to a server. sets parms so they can be saved off for restarts" |