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

◆ CheckMemoryPointVerticalDistance()

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

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

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

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

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