2245 {
2246 if (!item)
2247 return;
2248
2250 if (!pAttachment)
2251 {
2254 if (itemInventory)
2255 {
2259 {
2260 if (ent != this)
2261 {
2263 }
2264 }
2265 }
2266 }
2267 else
2268 {
2269 float timerCoef = 1.0;
2274
2275 switch (item.Type())
2276 {
2280 break;
2281 }
2282
2283 if (item.IsCookware())
2284 {
2286 }
2287
2290 {
2293 }
2294 }
2295 }
static const float PARAM_BURN_DAMAGE_COEF
const int TIMER_HEATING_UPDATE_INTERVAL
timer constants
const int TIMER_COOLING_UPDATE_INTERVAL
update interval duration of heating process (seconds)
bool IsFuel(ItemBase item)
Returns if item attached to fireplace is fuel.
ref Timer m_HeatingTimer
value for calculating of wetness that fireplace gain when raining
bool IsKindling(ItemBase item)
Returns if item attached to fireplace is kindling.
proto native bool EnumerateInventory(InventoryTraversalType tt, out array< EntityAI > items)
enumerate inventory using traversal type and filling items array
script counterpart to engine's class Inventory
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
const float FIRE_ATTACHMENT_DAMAGE_PER_SECOND
various damage per second constants
const int STATE_BADLY_DAMAGED