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

◆ CanReceiveAttachment() [2/2]

override bool FireplaceBase::CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

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

80 {
81 if ( !super.CanReceiveAttachment(attachment, slotId) )
82 return false;
83
84 ItemBase item = ItemBase.Cast( attachment );
85
86 //cookware
87 if ( ( item.Type() == ATTACHMENT_CAULDRON ) || ( item.Type() == ATTACHMENT_COOKING_POT ) )
88 {
89 if ( FindAttachmentBySlotName( "CookingTripod" ) || IsOven() )
90 return true;
91 return false;
92 }
93 if ( item.Type() == ATTACHMENT_FRYING_PAN )
94 {
95 if ( IsOven() )
96 return true;
97 return false;
98 }
99
100 // food on direct cooking slots
101 if ( item.IsKindOf( "Edible_Base" ) )
102 {
103 if ( IsOven() )
104 return true;
105 return false;
106 }
107 //tripod
108
109 if ( item.IsInherited(TripodBase) )
110 {
111 if (!IsOven() && !GetHierarchyParent())
112 return true;
113 return false;
114 }
115
116 //stones
117 if ( item.Type() == ATTACHMENT_STONES )
118 {
119 if ( !GetHierarchyParent() && !IsBurning() )
120 return true;
121 return false;
122 }
123
124 return true;
125 }
ATTACHMENT_FRYING_PAN
Определения FireplaceBase.c:201
ATTACHMENT_CAULDRON
Определения FireplaceBase.c:202
ATTACHMENT_STONES
Определения FireplaceBase.c:199
ATTACHMENT_COOKING_POT
Определения FireplaceBase.c:200
bool IsBurning()
Определения FireplaceBase.c:1621
bool IsOven()
Определения FireplaceBase.c:1651
class GP5GasMask extends MaskBase ItemBase

Перекрестные ссылки ATTACHMENT_CAULDRON, ATTACHMENT_COOKING_POT, ATTACHMENT_FRYING_PAN, ATTACHMENT_STONES, IsBurning() и IsOven().