GetClientAvgChoke Function

Returns the client's average packet choke, values go from 0 to 1 (for percentages).

float GetClientAvgChoke(int client, NetFlow flow)


int client

Player's index.

NetFlow flow

Traffic flowing direction.

Return Value

Average packet loss, or -1 if network info is not available.


Invalid client index, client not connected, or fake client.