Connects to a server at the specified address.
void client_connect( const char * address )
Returns 1 if the client is connection problems.
int client_connection_problems()
TODO
void client_direct_input( int * input, int size )
Disconnects from the current server.
void client_disconnect()
TODO
const char *client_error_string()
Returns how long time the last frame took to process.
float client_frametime()
TODO
int *client_get_input( int tick )
Returns the current intratick.
float client_intratick()
Returns 0 if there’s no version difference
const char *client_latestversion()
Returns the clients local time.
float client_localtime()
TODO
int client_mapdownload_amount()
TODO
int client_mapdownload_totalsize()
Returns the current preticted intra tick.
float client_predintratick()
Returns the current predicted tick.
int client_predtick()
Returns the tick of the previous snapshot.
int client_prevtick()
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()
TODO
void client_save_line( const char * line )
TODO
int client_send_msg()
Adds a server to the favorite list
void client_serverbrowse_addfavorite( NETADDR addr )
TODO
SERVER_INFO *client_serverbrowse_get( int index )
TODO
int client_serverbrowse_lan()
TODO
int client_serverbrowse_num()
TODO
int client_serverbrowse_num_requests()
Issues a refresh of the server browser.
void client_serverbrowse_refresh( int type )
Removes a server to the favorite list
void client_serverbrowse_removefavorite( NETADDR addr )
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
void client_serverbrowse_update()
Returns the state of the client.
int client_state()
Returns the tick of the current snapshot.
int client_tick()
Returns how many ticks per second the client is doing.
int client_tickspeed()
TODO
float client_ticktime()
Finds the closest character to a specific point.
class CHARACTER *closest_character( vec2 pos, float radius, ENTITY * notthis )
Destorys the entity.
virtual void destroy()
Destroys an entity in the world.
void destroy_entity( ENTITY * entity )
Finds entities close to a position and returns them in a list.
int find_entities( vec2 pos, float radius, ENTITY ** ents, int max, int type = -1 )