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

◆ ShowCoefsDbg()

void ShowCoefsDbg ( bool pEnabled)
protected

HumanMovementState content

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

126 {
128
129 if (pEnabled && m_pPlayer)
130 {
132 m_pPlayer.GetMovementState(hms);
133
134 string visualAlertLevel;
135 string noiseAlertLevel;
136
137 DbgUI.Begin("Presence Notifier", windowPosX + 10, windowPosY);
138 DbgUI.Panel("MinimumSize", mainPanelSizeX, mainPanelSizeY);
139
140 DbgUI.Text("Visual: ");
141 DbgUI.Text("Visibility: " + m_pPlayer.GetVisibilityCoef());
143 DbgUI.Text("Stance: " + GetMovementStanceVisualCoef());
144 DbgUI.Spacer(10);
145
146 DbgUI.Panel("-- Noises", mainPanelSizeX, 2);
147 DbgUI.Text("Noises: ");
150 DbgUI.Text("Surface: " + NoiseAIEvaluate.GetNoiseMultiplierBySurface(m_pPlayer) + " [ cfg: " + m_pPlayer.GetSurfaceNoise() + "]");
151 DbgUI.Spacer(10);
152
153 DbgUI.Panel("-- Noise reductions", mainPanelSizeX, 2);
154 DbgUI.Text("Noise reductions: ");
156 DbgUI.Spacer(10);
157
158 DbgUI.Panel("-- Result", mainPanelSizeX, 2);
159 DbgUI.Text("Result: ");
160 visualAlertLevel = "";
161 for (int iv = 0; iv < GetVisualPresence(); iv++)
162 {
163 visualAlertLevel += "!";
164 }
165 DbgUI.Text("Visual level: " + GetVisualPresence() + " [" + visualAlertLevel + "]");
166
167
168 noiseAlertLevel = "";
169 for (int ia = 0; ia < GetNoisePresence(); ia++)
170 {
171 noiseAlertLevel += "!";
172 }
173
174 DbgUI.Text("Noise level: " + GetNoisePresence() + " [" + noiseAlertLevel + "]");
175
176 DbgUI.End();
177
179 DbgUI.Begin("HumanMovementState", windowPosX + 250, windowPosY);
180 DbgUI.Panel("MinimumSize", mainPanelSizeX, mainPanelSizeY);
181 DbgUI.Text("Command ID: " + hms.m_CommandTypeId);
182 DbgUI.Text("Stance: " + hms.m_iStanceIdx);
183 DbgUI.Text("Movement: " + hms.m_iMovement);
184 DbgUI.End();
185 }
186
188 }
class PresenceNotifierNoiseEvents windowPosX
dbgUI settings
float GetMovementSpeedVisualCoef()
Visibility.
Определения PluginPresenceNotifier.c:234
const int mainPanelSizeX
Определения PluginPresenceNotifier.c:79
float GetMovementStanceVisualCoef()
Определения PluginPresenceNotifier.c:256
int GetVisualPresence()
returns actual visibility presence of player
Определения PluginPresenceNotifier.c:197
const int mainPanelSizeY
Определения PluginPresenceNotifier.c:80
Weather m_Weather
Определения PluginPresenceNotifier.c:103
int GetNoisePresence()
returns actual noise presence of player
Определения PluginPresenceNotifier.c:191
const int windowPosY
Определения PluginPresenceNotifier.c:77
Определения DbgUI.c:60
int m_iMovement
current stance (DayZPlayerConstants.STANCEIDX_ERECT, ...), only if the command has a stance
Определения human.c:1142
int m_iStanceIdx
current command's id
Определения human.c:1141
int m_CommandTypeId
Определения human.c:1140
Определения human.c:1139
static float GetNoiseMultiplierByPlayerSpeed(DayZPlayerImplement playerImplement)
Определения SensesAIEvaluate.c:27
static float GetNoiseMultiplierBySurface(DayZPlayerImplement playerImplement)
Определения SensesAIEvaluate.c:82
static float GetNoiseMultiplierByShoes(DayZPlayerImplement playerImplement)
Определения SensesAIEvaluate.c:63
static float GetNoiseReduction(Weather weather)
Определения SensesAIEvaluate.c:18
DayZPlayer m_pPlayer
data
Определения dayzplayer.c:135
static proto native void Panel(string label, int width, int height, int color=0xaa555555)
static proto native void End()
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto native void Text(string label)
static proto void BeginCleanupScope()
static proto native void Spacer(int height)
static proto native void EndCleanupScope()

Перекрестные ссылки DbgUI::Begin(), DbgUI::BeginCleanupScope(), DbgUI::End(), DbgUI::EndCleanupScope(), GetMovementSpeedVisualCoef(), GetMovementStanceVisualCoef(), NoiseAIEvaluate::GetNoiseMultiplierByPlayerSpeed(), NoiseAIEvaluate::GetNoiseMultiplierByShoes(), NoiseAIEvaluate::GetNoiseMultiplierBySurface(), GetNoisePresence(), NoiseAIEvaluate::GetNoiseReduction(), GetVisualPresence(), HumanMovementState::m_CommandTypeId, HumanMovementState::m_iMovement, HumanMovementState::m_iStanceIdx, m_pPlayer, m_Weather, mainPanelSizeX, mainPanelSizeY, DbgUI::Panel(), DbgUI::Spacer(), DbgUI::Text(), windowPosX и windowPosY.

Используется в EnableDebug().