Client Interface | |
Constants | |
Constants | |
Client States | |
Image Formats | |
Texture Loading Flags | |
Server Browser Sorting | |
Structures | |
SERVER_INFO_PLAYER | |
SERVER_INFO | |
Functions | |
Time | |
client_tick | Returns the tick of the current snapshot. |
client_prevtick | Returns the tick of the previous snapshot. |
client_intratick | Returns the current intratick. |
client_predtick | Returns the current predicted tick. |
client_predintratick | Returns the current preticted intra tick. |
client_ticktime | TODO |
client_tickspeed | Returns how many ticks per second the client is doing. |
client_frametime | Returns how long time the last frame took to process. |
client_localtime | Returns the clients local time. |
Server Browser | |
client_serverbrowse_refresh | Issues a refresh of the server browser. |
client_serverbrowse_sorted_get | Returns server info from the sorted list. |
client_serverbrowse_sorted_num | Returns how many servers there are in the sorted list. |
client_serverbrowse_get | TODO |
client_serverbrowse_num | TODO |
client_serverbrowse_num_requests | TODO |
client_serverbrowse_update | TODO |
client_serverbrowse_lan | TODO |
client_serverbrowse_addfavorite | Adds a server to the favorite list |
client_serverbrowse_removefavorite | Removes a server to the favorite list |
Actions | |
client_connect | Connects to a server at the specified address. |
client_disconnect | Disconnects from the current server. |
client_quit | Tells to client to shutdown. |
client_rcon | Sends a command to the server to execute on it’s console. |
client_rcon_auth | TODO |
client_rcon_authed | TODO |
Other | |
client_latestversion | Returns 0 if there’s no version difference |
client_get_input | TODO |
client_direct_input | TODO |
client_error_string | TODO |
client_connection_problems | Returns 1 if the client is connection problems. |
client_state | Returns the state of the client. |
client_mapdownload_amount | TODO |
client_mapdownload_totalsize | TODO |
client_save_line | TODO |
Time | |
client_tick | Returns the tick of the current snapshot. |
client_prevtick | Returns the tick of the previous snapshot. |
client_intratick | Returns the current intratick. |
client_predtick | Returns the current predicted tick. |
client_predintratick | Returns the current preticted intra tick. |
client_ticktime | TODO |
client_tickspeed | Returns how many ticks per second the client is doing. |
client_frametime | Returns how long time the last frame took to process. |
client_localtime | Returns the clients local time. |
Server Browser | |
client_serverbrowse_refresh | Issues a refresh of the server browser. |
client_serverbrowse_sorted_get | Returns server info from the sorted list. |
client_serverbrowse_sorted_num | Returns how many servers there are in the sorted list. |
client_serverbrowse_get | TODO |
client_serverbrowse_num | TODO |
client_serverbrowse_num_requests | TODO |
client_serverbrowse_update | TODO |
client_serverbrowse_lan | TODO |
client_serverbrowse_addfavorite | Adds a server to the favorite list |
client_serverbrowse_removefavorite | Removes a server to the favorite list |
Actions | |
client_connect | Connects to a server at the specified address. |
client_disconnect | Disconnects from the current server. |
client_quit | Tells to client to shutdown. |
client_rcon | Sends a command to the server to execute on it’s console. |
client_rcon_auth | TODO |
client_rcon_authed | TODO |
Other | |
client_latestversion | Returns 0 if there’s no version difference |
client_get_input | TODO |
client_direct_input | TODO |
client_error_string | TODO |
client_connection_problems | Returns 1 if the client is connection problems. |
client_state | Returns the state of the client. |
client_mapdownload_amount | TODO |
client_mapdownload_totalsize | TODO |
client_save_line | TODO |
float client_intratick()
Returns the current intratick.
The intratick is how far gone the time is from the previous snapshot to the current. 0.0 means that it on the previous snapshot. 0.5 means that it’s halfway to the current, and 1.0 means that it is on the current snapshot. It can go beyond 1.0 which means that the client has started to extrapolate due to lack of data from the server.
float client_predintratick()
Returns the current preticted intra tick.
This is the same as client_intratick but for the current predicted tick and previous predicted tick.
void client_serverbrowse_refresh( int type )
Issues a refresh of the server browser.
type | What type of servers to browse, internet, lan or favorites. |
This will cause a broadcast on the local network if the lan argument is set. Otherwise it call ask all the master servers for their servers lists.
Returns the tick of the current snapshot.
int client_tick()
Returns the tick of the previous snapshot.
int client_prevtick()
Returns the current intratick.
float client_intratick()
Returns the current predicted tick.
int client_predtick()
Returns the current preticted intra tick.
float client_predintratick()
TODO
float client_ticktime()
Returns how many ticks per second the client is doing.
int client_tickspeed()
Returns how long time the last frame took to process.
float client_frametime()
Returns the clients local time.
float client_localtime()
Issues a refresh of the server browser.
void client_serverbrowse_refresh( int type )
Returns server info from the sorted list.
SERVER_INFO *client_serverbrowse_sorted_get( int index )
Returns how many servers there are in the sorted list.
int client_serverbrowse_sorted_num()
TODO
SERVER_INFO *client_serverbrowse_get( int index )
TODO
int client_serverbrowse_num()
TODO
int client_serverbrowse_num_requests()
TODO
void client_serverbrowse_update()
TODO
int client_serverbrowse_lan()
Adds a server to the favorite list
void client_serverbrowse_addfavorite( NETADDR addr )
Removes a server to the favorite list
void client_serverbrowse_removefavorite( NETADDR addr )
Connects to a server at the specified address.
void client_connect( const char * address )
Disconnects from the current server.
void client_disconnect()
Tells to client to shutdown.
void client_quit()
Sends a command to the server to execute on it’s console.
void client_rcon( const char * cmd )
TODO
void client_rcon_auth( const char * name, const char * password )
TODO
int client_rcon_authed()
Returns 0 if there’s no version difference
const char *client_latestversion()
TODO
int *client_get_input( int tick )
TODO
void client_direct_input( int * input, int size )
TODO
const char *client_error_string()
Returns 1 if the client is connection problems.
int client_connection_problems()
Returns the state of the client.
int client_state()
TODO
int client_mapdownload_amount()
TODO
int client_mapdownload_totalsize()
TODO
void client_save_line( const char * line )