Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ServerFPSNetworkedStat.c
Go to the documentation of this file.
3{
4 // Last checked local FPS.
5 protected int m_iLocalFPS;
6 // Last checked authority FPS.
7 protected int m_iAuthorityFPS;
8
9 //------------------------------------------------------------------------------------------------
11 {
12 return m_iLocalFPS;
13 }
14
15 //------------------------------------------------------------------------------------------------
17 {
18 return m_iAuthorityFPS;
19 }
20
21 //------------------------------------------------------------------------------------------------
22 override void UpdateStat()
23 {
24 int localFPS = System.GetFPS();
25 if (localFPS == m_iLocalFPS)
26 return;
27
28 m_iLocalFPS = localFPS;
31 }
32
33 //------------------------------------------------------------------------------------------------
35 {
36 RplComponent rplComponent = m_Owner.GetRplComponent();
37 if (!rplComponent || rplComponent.Role() != RplRole.Authority)
38 return;
39
41 m_Owner.SetAuthorityStatValue(m_eStatType, m_iAuthorityFPS);
42 }
43
44 //------------------------------------------------------------------------------------------------
45 override void OnAuthorityStatValueSet(int value)
46 {
47 m_iAuthorityFPS = value;
49 }
50}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_NetworkedStatsComponent m_Owner
SCR_ENetworkedStatType m_eStatType
override void OnAuthorityStatValueSet(int value)
RplRole
Role of replicated node (and all items in it) within the replication system.
Definition RplRole.c:14