DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
CanIgniteEntityAsFireplace()
static
bool
FireplaceBase::CanIgniteEntityAsFireplace
(
notnull
EntityAI
entity
)
inline
static
protected
См. определение в файле
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
}
IsEntityOnInteriorSurface
static bool IsEntityOnInteriorSurface(notnull EntityAI entity_ai)
Определения
FireplaceBase.c:2452
FireplaceBase
void FireplaceBase()
Определения
FireplaceBase.c:235
Перекрестные ссылки
IsEntityOnInteriorSurface()
.
FireplaceBase
Создано системой
1.13.2