Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_StatsPanel_PacketLoss.c
Go to the documentation of this file.
1
class
SCR_StatsPanel_PacketLoss
:
SCR_StatsPanelBase
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
}
Math
Definition
Math.c:13
Replication
Main replication API.
Definition
Replication.c:14
RplConnectionStats
Definition
RplConnectionStats.c:13
SCR_StatsPanel_PacketLoss
Definition
SCR_StatsPanel_PacketLoss.c:2
SCR_StatsPanel_PacketLoss::GetValue
float GetValue()
Definition
SCR_StatsPanel_PacketLoss.c:4
SCR_StatsPanelBase
Definition
SCR_StatsPanelBase.c:19
SCR_StatsPanelBase::m_RplIdentity
RplIdentity m_RplIdentity
Definition
SCR_StatsPanelBase.c:56
scripts
Game
UI
HUD
StatsPanel
SCR_StatsPanel_PacketLoss.c
Generated by
1.17.0