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

◆ CanIgniteEntityAsFireplace()

static bool FireplaceBase::CanIgniteEntityAsFireplace ( notnull EntityAI entity)
inlinestaticprotected

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

710 {
711 //check surface
712 if (FireplaceBase.IsEntityOnWaterSurface(entity))
713 {
714 return false;
715 }
716
717 entity.CheckForRoofLimited(); //TODO: limit more severely? Should update at least once during UATimeSpent.FIREPLACE_IGNITE
718 if (!entity.IsRoofAbove())
719 return !FireplaceBase.IsRainingAboveEntity(entity);
720
721 //check ceiling (enough space for smoke)
722 if (IsEntityOnInteriorSurface(entity) && MiscGameplayFunctions.IsUnderRoof(entity, FireplaceBase.MIN_CEILING_HEIGHT))
723 {
724 return false;
725 }
726
727 return true;
728 }
static bool IsEntityOnInteriorSurface(notnull EntityAI entity_ai)
Определения FireplaceBase.c:2452
void FireplaceBase()
Определения FireplaceBase.c:235

Перекрестные ссылки IsEntityOnInteriorSurface().