Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
remoteplayerstatdebug.c
Go to the documentation of this file.
8
9
11{
14 string m_Name;
17 {
18 m_Player = player;
19 Init();
20
21 }
22
23 void Init()
24 {
27 m_Pos = m_Player.GetWorldPosition();
28 m_Name = m_Player.GetIdentity().GetName();
29 }
30
32 {
33 return m_Player;
34 }
35
37 {
38 m_Player.GetPlayerStats().GetDebugInfo(m_Stats, 0);
39 }
40
42 {
43 m_Stats.Insert( new StatDebugObject("Health", m_Player.GetHealth("",""), eRemoteStatType.DAMAGE_SYSTEM) );
44 m_Stats.Insert( new StatDebugObject("Blood", m_Player.GetHealth("","Blood"), eRemoteStatType.DAMAGE_SYSTEM) );
45 m_Stats.Insert( new StatDebugObject("Shock", m_Player.GetHealth("","Shock"), eRemoteStatType.DAMAGE_SYSTEM) );
46 }
47
49 {
50 for(int i = 0; i < m_Stats.Count(); i++)
51 {
52 if( type == eRemoteDebugType.ALL )
53 {
54 names.Insert(m_Stats.Get(i).GetName());
55 }
56 else if( type == eRemoteDebugType.DAMAGE_ONLY )
57 {
58 StatDebugObject obj = m_Stats.Get(i);
59 eRemoteStatType debug_type = obj.GetType();
60 if(debug_type == eRemoteStatType.DAMAGE_SYSTEM)
61 {
62 names.Insert(m_Stats.Get(i).GetName());
63 }
64 }
65 }
66 }
67
69 {
70 for(int i = 0; i < m_Stats.Count(); i++)
71 {
72 if( type == eRemoteDebugType.ALL )
73 {
74 values.Insert(m_Stats.Get(i).GetValue());
75 }
76 else if( type == eRemoteDebugType.DAMAGE_ONLY )
77 {
78 StatDebugObject obj = m_Stats.Get(i);
79 eRemoteStatType debug_type = obj.GetType();
80 if(debug_type == eRemoteStatType.DAMAGE_SYSTEM)
81 {
82 values.Insert(m_Stats.Get(i).GetValue());
83 }
84 }
85 }
86 }
87
88 void Debug()
89 {
90 for(int i = 0; i < m_Stats.Count(); i++)
91 {
92 m_Stats.Get(i).Debug();
93 }
94 }
95
96}
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
override Widget Init()
Definition dayzgame.c:127
DayZPlayer m_Player
Definition hand_events.c:42
PlayerBase GetPlayer()
void SerializeValues(array< string > values, eRemoteDebugType type)
vector m_Pos
void InjectDamageSystemValues()
ref array< ref StatDebugObject > m_Stats
@ DAMAGE_SYSTEM
@ PLAYER_STATS
void UpdatePlayerStatsValues()
void RemotePlayerStatDebug(PlayerBase player)
void SerializeNames(array< string > names, eRemoteDebugType type)
class SyncedValue m_Name