Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_StatsPanel_PacketLoss.c
Go to the documentation of this file.
2 {
3  //------------------------------------------------------------------------------------------------
4  override protected float GetValue()
5  {
6  RplConnectionStats stats = Replication.GetConnectionStats(m_RplIdentity);
7 
8  float value = stats.GetPacketLoss();
9 
10  #ifdef DEBUG_STATS_PANELS
11  if (value == 0)
12  value = Math.RandomFloat(0.01,1) - 0.85;
13  value = Math.Clamp(value, 0, 1);
14  #endif
15 
16  //PrintFormat("PacketLoss: %1", value);
17 
18  value = Math.Ceil(value * 100);
19 
20  return value;
21  }
22 }
SCR_StatsPanelBase
Definition: SCR_StatsPanelBase.c:18
SCR_StatsPanel_PacketLoss
Definition: SCR_StatsPanel_PacketLoss.c:1