10.07.2012, 23:34
hello. Is it possible to define a Packet Loss? If so, how?
Maybe.. But I do not have a precise definition. It suffices to define the event as a true / false. Maybe you know how to do it?
|
Network Active: 1 Network State: 8 Messages in Send buffer: 0 Messages sent: 46 Bytes sent: 1944 Acks sent: 12 Acks in send buffer: 0 Messages waiting for ack: 0 Messages resent: 0 Bytes resent: 0 Packetloss: 0.0 Messages received: 57 Bytes received: 1524 Acks received: 0 Duplicate acks received: 0 Inst. KBits per second: 28.8 KBits per second sent: 2.2 KBits per second received: 1.7
new str[350];
GetPlayerNetworkStats(0, str, 350);
new start = strfind(str, "Packetloss", false);
strmid(str, str, start + 12, strfind(str, "Messages", false, start) - 2);
new Float:packetloss = floatstr(str);