DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Update()

override void ScriptConsoleGeneralTab::Update ( float timeslice)
inlineprotected

См. определение в файле ScriptConsoleGeneralTab.c строка 933

934 {
935 super.Update(timeslice);
936
937 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
938
939 m_DebugMapWidget.ClearUserMarks();
940
941 vector playerPos = vector.Zero;
942 if (player)
943 {
944 playerPos = player.GetWorldPosition();
945 }
946
948 {
949 PluginRemotePlayerDebugServer plugin_remote_server = PluginRemotePlayerDebugServer.Cast(GetPluginSafe(PluginRemotePlayerDebugServer));
950 if (plugin_remote_server)
951 {
952 plugin_remote_server.GatherPlayerInfo();
953
954 if (m_FreeDebugCamera && m_FreeDebugCamera.IsActive())
955 {
956 playerPos = m_FreeDebugCamera.GetWorldPosition();
957 }
958 }
959
961 {
962 if (player && rpd.m_Player != player)
963 {
964 vector dir = rpd.m_Pos - playerPos;
965 dir[1] = 0;
966 string dist = ((int)dir.Length()).ToString();
967 string text = rpd.m_Name + " " +dist + "m";
968 m_DebugMapWidget.AddUserMark(rpd.m_Pos, text, COLOR_BLUE, "\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
969 }
970 }
971 }
972
973 if (player)
974 {
975 m_DebugMapWidget.AddUserMark(playerPos, "You", COLOR_RED, "\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
976 if (playerPos != GetMapPos())
977 m_DebugMapWidget.AddUserMark(GetMapPos(), "Pos", COLOR_BLUE, "\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
978 }
979
980 if (m_FreeDebugCamera && m_FreeDebugCamera.IsActive())
981 {
982 vector cameraPos = m_FreeDebugCamera.GetWorldPosition();
983 m_DebugMapWidget.AddUserMark(cameraPos, "Camera", COLOR_GREEN, "\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
984 }
985
989
990 foreach (MapMarker marker: ScriptConsole.m_MarkedEntities)
991 {
992 m_DebugMapWidget.AddUserMark(marker.GetMarkerPos(), marker.GetMarkerText(), marker.GetMarkerColor(), MapMarkerTypes.GetMarkerTypeFromID(marker.GetMarkerIcon()));
993 }
994 }
Param3 int
DayZGame g_Game
Определения DayZGame.c:3942
PluginBase GetPluginSafe(typename plugin_type)
Определения PluginManager.c:349
void RemotePlayerStatDebug(PlayerBase player)
Определения RemotePlayerStatDebug.c:16
MapWidget m_DebugMapWidget
Определения ScriptConsoleGeneralTab.c:56
bool m_UpdatePlayerPositions
Определения ScriptConsoleGeneralTab.c:22
FreeDebugCamera m_FreeDebugCamera
Определения ScriptConsoleGeneralTab.c:70
bool m_PlayerPosRefreshBlocked
Определения ScriptConsoleGeneralTab.c:12
ref array< ref RemotePlayerStatDebug > m_PlayerDebugStats
Определения ScriptConsoleGeneralTab.c:14
void RefreshPlayerPosEditBoxes()
Определения ScriptConsoleGeneralTab.c:443
proto native float Length()
Returns length of vector (magnitude)
proto string ToString(bool beautify=true)
Vector to string.
const int COLOR_BLUE
Определения 1_Core/DayZ/constants.c:66
const int COLOR_RED
Определения 1_Core/DayZ/constants.c:64
const int COLOR_GREEN
Определения 1_Core/DayZ/constants.c:65

Перекрестные ссылки COLOR_BLUE, COLOR_GREEN, COLOR_RED, g_Game, GetMapPos(), MapMarker::GetMarkerColor(), MapMarker::GetMarkerIcon(), MapMarker::GetMarkerPos(), MapMarker::GetMarkerText(), MapMarkerTypes::GetMarkerTypeFromID(), GetPluginSafe(), vector::Length(), m_DebugMapWidget, m_FreeDebugCamera, m_PlayerDebugStats, m_PlayerPosRefreshBlocked, m_UpdatePlayerPositions, RefreshPlayerPosEditBoxes(), RemotePlayerStatDebug(), vector::ToString(), UpdateMousePos() и vector::Zero.