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

◆ GatherSurfaces()

void GatherSurfaces ( notnull TStringVectorMap gatheredGurfaces)
protected

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

247 {
248 gatheredGurfaces.Clear();
249
250 vector playerPos = m_Player.GetPosition();
251 TVectorArray positions = new TVectorArray();
252
253 positions.Insert(playerPos);
254 positions.Insert(playerPos + ("0 0 1" * SURFACE_CHECK_POINT_DISTANCE));
255 positions.Insert(playerPos + ("0 0 -1" * SURFACE_CHECK_POINT_DISTANCE));
256 positions.Insert(playerPos + ("1 0 0" * SURFACE_CHECK_POINT_DISTANCE));
257 positions.Insert(playerPos + ("-1 0 0" * SURFACE_CHECK_POINT_DISTANCE));
258
259 foreach (vector pos : positions)
260 {
261 string surfaceType;
262 GetGame().SurfaceGetType3D(pos[0],pos[1], pos[2], surfaceType);
263
264 if (!gatheredGurfaces.Contains(surfaceType))
265 gatheredGurfaces.Insert(surfaceType, pos);
266 }
267
268 #ifdef DIAG_DEVELOPER
269 if (DiagMenu.GetBool(DiagMenuIDs.TRIGGER_DEBUG))
270 {
271 foreach (vector p:positions)
272 Debug.DrawLine(p, p + "0 10 0", COLOR_BLUE,ShapeFlags.NOZBUFFER);
273 }
274 #endif
275
276 }
DiagMenuIDs
Определения EDiagMenuIDs.c:2
DayZPlayer m_Player
Определения Hand_Events.c:42
const float SURFACE_CHECK_POINT_DISTANCE
Определения SpookyAreaMisc.c:205
proto float SurfaceGetType3D(float x, float y, float z, out string type)
Y input: Maximum Y to trace down from; Returns: Y position the surface was found.
static Shape DrawLine(vector from, vector to, int color=0xFFFFFFFF, int flags=0)
Определения Debug.c:382
Определения Debug.c:2
Определения EnDebug.c:233
Определения EnConvert.c:106
proto native CGame GetGame()
const int COLOR_BLUE
Определения constants.c:66
ShapeFlags
Определения EnDebug.c:126
static proto bool GetBool(int id, bool reverse=false)
Get value as bool from the given script id.
array< vector > TVectorArray
Определения EnScript.c:692

Перекрестные ссылки COLOR_BLUE, Debug::DrawLine(), DiagMenu::GetBool(), GetGame(), m_Player, SURFACE_CHECK_POINT_DISTANCE и CGame::SurfaceGetType3D().

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