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

◆ CheckMemoryPointVerticalDistance()

override bool BaseBuildingBase::CheckMemoryPointVerticalDistance ( float max_dist,
string selection,
PlayerBase player )
inlineprivate

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

363 {
364 if ( player )
365 {
366 //check vertical distance
367 vector player_pos = player.GetPosition();
368 vector pos;
369
370 if ( MemoryPointExists( selection ) )
371 {
372 pos = ModelToWorld( GetMemoryPointPos( selection ) );
373 }
374
375 if ( Math.AbsFloat( player_pos[1] - pos[1] ) <= max_dist )
376 {
377 return true;
378 }
379 else
380 {
381 return false;
382 }
383 }
384
385 return true;
386 }

Перекрестные ссылки Math::AbsFloat().

Используется в CanDisplayAttachmentCategory(), CanDisplayAttachmentSlot(), CheckLevelVerticalDistance() и CheckSlotVerticalDistance().