Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AnalyticsDataCollectionPlayerGroupsModule.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 override void SessionMeasures()
6 {
7 if (!m_bIsEnabled)
8 return;
9
10 SCR_GroupsManagerComponent groupsManager = SCR_GroupsManagerComponent.GetInstance();
11 if (!groupsManager)
12 return;
13
14 int playersInMultiMemberGroups;
15 array<SCR_AIGroup> groups = {};
16 groupsManager.GetAllPlayableGroups(groups);
17 int groupPlayerCount;
18
19 foreach (SCR_AIGroup group : groups)
20 {
21 // We count only players who are in group with other players
22 groupPlayerCount = group.GetPlayerCount();
23 if (groupPlayerCount > 1)
24 playersInMultiMemberGroups += groupPlayerCount;
25 }
26
27 SCR_SessionDataEvent sessionDataEvent = GetSessionDataEvent();
28 if (!sessionDataEvent)
29 return;
30
31 sessionDataEvent.num_players_in_squad = playersInMultiMemberGroups;
32 }
33
34 #ifdef ENABLE_DIAG
35 //------------------------------------------------------------------------------------------------
36 override void DrawContent()
37 {
38 if (!m_bIsEnabled)
39 {
40 DbgUI.Text("Module disabled!");
41 return;
42 }
43
44 DbgUI.Text("This module does not save any data.");
45 }
46 #endif
47
48 //------------------------------------------------------------------------------------------------
53}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_GroupsManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition DbgUI.c:66