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

◆ CanIgniteEntityAsFireplace()

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

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

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

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