GetClientAvgLoss Function

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

float GetClientAvgLoss(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.