57 {
58 int i = 0;
60 {
63
64 if (player)
65 {
66 vector pos = player.GetPosition();
69 m_RootWidget[i].SetPos(screen_pos_stats[0], screen_pos_stats[1]);
71
72 if (screen_pos_stats[2] > 0 && screen_pos_stats[0] > 0 && screen_pos_stats[1] > 0)
73 {
79 }
80 else
81 {
84 }
85
86 }
87 }
89 {
92 }
93 }
void UpdateDistanceWidget(int index, PlayerBase other_player)
void UpdateStatsWidget(int index, RemotePlayerStatDebug rpd)
void UpdateDamageWidget(int index, PlayerBase player)
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]
ref array< ref RemotePlayerStatDebug > m_PlayerDebugStats
enum eRemoteDebugType MAX_SIMULTANIOUS_PLAYERS
ref Widget m_RootWidgetDamage[MAX_SIMULTANIOUS_PLAYERS]
void RemotePlayerStatDebug(PlayerBase player)
proto native vector GetScreenPos(vector world_pos)
Transforms position in world to position in screen in pixels as x, y component of vector,...
proto native CGame GetGame()