Server Hooks | |
Functions | |
mods_console_init | TODO |
mods_init | Called when the server is started. |
mods_shutdown | Called when the server quits. |
mods_client_enter | Called when a client has joined the game. |
mods_client_drop | Called when a client drops from the server. |
mods_client_direct_input | Called when the server recives new input from a client. |
mods_client_predicted_input | Called when the server applys the predicted input on the client. |
mods_tick | Called with a regular interval to progress the gameplay. |
mods_presnap | Called before the server starts to construct snapshots for the clients. |
mods_snap | Called to create the snapshot for a client. |
mods_postsnap | Called after the server is done sending the snapshots. |
mods_connected | TODO |
mods_net_version | TODO |
mods_version | TODO |
mods_message | TODO |
void mods_snap( int cid )
Called to create the snapshot for a client.
cid | Client ID. Is 0 - MAX_CLIENTS. |
The game should make a series of calls to snap_new_item to construct the snapshot for the client.
TODO
void mods_console_init()
Called when the server is started.
void mods_init()
Called when the server quits.
void mods_shutdown()
Called when a client has joined the game.
void mods_client_enter( int cid )
Called when a client drops from the server.
void mods_client_drop( int cid )
Called when the server recives new input from a client.
void mods_client_direct_input( int cid, void * input )
Called when the server applys the predicted input on the client.
void mods_client_predicted_input( int cid, void * input )
Called with a regular interval to progress the gameplay.
void mods_tick()
Called before the server starts to construct snapshots for the clients.
void mods_presnap()
Called to create the snapshot for a client.
void mods_snap( int cid )
Called after the server is done sending the snapshots.
void mods_postsnap()
TODO
void mods_connected( int client_id )
TODO
const char *mods_net_version()
TODO
const char *mods_version()
TODO
void mods_message( int msg, int client_id )
Creates a new item that should be sent.
void *snap_new_item( int type, int id, int size )