8 class PluginRemotePlayerDebugClient
extends PluginBase
39 m_RootWidget[i] =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/debug/day_z_debug_remoteinfo.layout");
66 vector pos = player.GetPosition();
67 vector screen_pos_stats =
GetGame().GetScreenPos(pos +
"0 0 0");
68 vector screen_pos_damage =
GetGame().GetScreenPos(pos +
"0 2 0");
69 m_RootWidget[i].SetPos(screen_pos_stats[0], screen_pos_stats[1]);
72 if (screen_pos_stats[2] > 0 && screen_pos_stats[0] > 0 && screen_pos_stats[1] > 0)
102 value.GetReversed(damage_list);
105 if (damage_list.Count() > 0)
108 for (
int i = 0; i < damage_list.Count(); ++i)
111 float value_global = data.GetValueGlobal();
112 float value_blood = data.GetValueBlood();
113 float value_shock = data.GetValueShock();
129 float distance =
vector.Distance(
GetGame().GetCurrentCameraPosition(), other_player.GetPosition());
141 for (
int i = 0; i < names.Count(); ++i)
150 #ifdef DIAG_DEVELOPER
164 rpc.Send( player,
ERPCs.DEV_PLAYER_DEBUG_REQUEST,
true, player.GetIdentity() );
172 PlayerBase playerDelta = valueDelta.GetPlayer();
184 valueDelta.GetReversed(damageList);
188 valueLocal.InsertDamageObject( data );
206 PrintString(
"-------------------------------------");
211 PrintString(
"-------------------------------------");
213 PrintString(
"-------------------------------------");
218 PrintString(
"------------Debug Damage Start--------------");
222 PrintString(
"-------------Debug Damage End-------------");
232 ctx.Read(player_damage);
234 for (
int x = 0;
x < player_damage.Count();
x++)
239 player = value.GetPlayer();
240 PrintString(
"debug damage: "+
x.ToString() +
"," + player.ToString());
247 if (player_damage.Count() > 0 )
MergeDamage(player_damage);