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

◆ CanReceiveAttachment() [2/2]

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

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

91 {
92 if ( !super.CanReceiveAttachment(attachment, slotId) )
93 return false;
94
95 ItemBase item = ItemBase.Cast( attachment );
96
97 //cookware
98 if ( ( item.Type() == ATTACHMENT_CAULDRON ) || ( item.Type() == ATTACHMENT_COOKING_POT ) )
99 {
100 if ( FindAttachmentBySlotName( "CookingTripod" ) || IsOven() )
101 return true;
102 return false;
103 }
104 if ( item.Type() == ATTACHMENT_FRYING_PAN )
105 {
106 if ( IsOven() )
107 return true;
108 return false;
109 }
110
111 // food on direct cooking slots
112 if ( item.IsKindOf( "Edible_Base" ) )
113 {
114 if ( IsOven() )
115 return true;
116 return false;
117 }
118 //tripod
119
120 if ( item.IsInherited(TripodBase) )
121 {
122 if (!IsOven() && !GetHierarchyParent())
123 return true;
124 return false;
125 }
126
127 //stones
128 if ( item.Type() == ATTACHMENT_STONES )
129 {
130 if ( !GetHierarchyParent() && !IsBurning() )
131 return true;
132 return false;
133 }
134
135 return true;
136 }
ATTACHMENT_FRYING_PAN
Определения FireplaceBase.c:203
ATTACHMENT_CAULDRON
Определения FireplaceBase.c:204
ATTACHMENT_STONES
Определения FireplaceBase.c:201
ATTACHMENT_COOKING_POT
Определения FireplaceBase.c:202
bool IsBurning()
Определения FireplaceBase.c:1639
bool IsOven()
Определения FireplaceBase.c:1669
class GP5GasMask extends MaskBase ItemBase

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