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

◆ CanIgniteEntityAsFireplace()

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

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

729 {
730 //check surface
731 if (FireplaceBase.IsEntityOnWaterSurface(entity))
732 {
733 return false;
734 }
735
736 entity.CheckForRoofLimited(); //TODO: limit more severely? Should update at least once during UATimeSpent.FIREPLACE_IGNITE
737 if (!entity.IsRoofAbove())
738 return !FireplaceBase.IsRainingAboveEntity(entity);
739
740 //check ceiling (enough space for smoke)
741 if (IsEntityOnInteriorSurface(entity) && MiscGameplayFunctions.IsUnderRoof(entity, FireplaceBase.MIN_CEILING_HEIGHT))
742 {
743 return false;
744 }
745
746 return true;
747 }
static bool IsEntityOnInteriorSurface(notnull EntityAI entity_ai)
Определения FireplaceBase.c:2477
void FireplaceBase()
Определения FireplaceBase.c:237

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