![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Go to the source code of this file.
Enumerations | |
| enum | CookingMethodType { NONE = 0 , BAKING = 1 , BOILING = 2 , DRYING = 3 , TIME = 4 , COUNT } |
Variables | |
| static const float | BURNING_WARNING_THRESHOLD = 0.75 |
| COOKING_EQUIPMENT_CAULDRON = Cauldron | |
| COOKING_EQUIPMENT_FRYINGPAN = FryingPan | |
| COOKING_EQUIPMENT_POT = Pot | |
| 0..1, validly cooked item will pre-emptively start emitting burning sounds when this close to being burned | |
| static const float | COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_LARD = 0 |
| how many units from quantity of item are removed at each FoodStage change when support material is NOT used | |
| static const float | COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE = 25 |
| how many units from quantity of lard are remove at each stage | |
| static const float | COOKING_FOOD_TIME_INC_VALUE = 2 |
| time modifier used when using support material | |
| COOKING_INGREDIENT_LARD = Lard | |
| static const float | COOKING_LARD_DECREASE_COEF = 25 |
| time increase when cooking a food | |
| static const float | DEFAULT_COOKING_TEMPERATURE = 150 |
| NOT USED. | |
| static const float | FOOD_MAX_COOKING_TEMPERATURE = 150 |
| static const float | LIQUID_BOILING_POINT = 150 |
| static const float | LIQUID_VAPOR_QUANTITY = 2 |
| float | m_UpdateTime = 1 |
| static const float | PARAM_BURN_DAMAGE_COEF = 0.05 |
| static const float | SOLID_OVERHEAT_QUANTITY = 2 |
| enum CookingMethodType | TIME_WITH_SUPPORT_MATERIAL_COEF = 1.0 |
| static const float | TIME_WITHOUT_SUPPORT_MATERIAL_COEF = 2.0 |
| time modifier used when not using support material | |
| enum CookingMethodType |
|
protected |
Definition at line 486 of file cooking.c.
References DEFAULT_COOKING_TEMPERATURE, g_Game, ItemBase::GetCookingTargetTemperature(), m_UpdateTime, and GameConstants::TEMP_COEF_COOKING_DEFAULT.
Referenced by ProcessItemToCook(), UpdateCookingState(), and UpdateCookingStateOnStick().
|
protected |
Definition at line 184 of file cooking.c.
References Edible_Base::CanBeCookedOnStick(), and UpdateCookingStateOnStick().
Definition at line 117 of file cooking.c.
References GetCookingMethodWithTimeOverride(), CargoBase::GetItem(), CargoBase::GetItemCount(), LIQUID_NONE, and ProcessItemToCook().
|
protected |
Definition at line 519 of file cooking.c.
References Math::Clamp(), and g_Game.
Referenced by UpdateCookingState(), and UpdateCookingStateOnStick().
|
protected |
DEPRECATED.
Definition at line 532 of file cooking.c.
References COOKING_EQUIPMENT_CAULDRON, COOKING_EQUIPMENT_FRYINGPAN, COOKING_EQUIPMENT_POT, COOKING_INGREDIENT_LARD, GetItemTypeFromCargo(), and LIQUID_GASOLINE.
|
protected |
when cooking in gasoline, jump to drying state(will be burnt then)
Definition at line 430 of file cooking.c.
References COOKING_INGREDIENT_LARD, GetItemTypeFromCargo(), LIQUID_GASOLINE, TIME_WITH_SUPPORT_MATERIAL_COEF, and TIME_WITHOUT_SUPPORT_MATERIAL_COEF.
Referenced by CookWithEquipment().
|
protected |
Cooking data.
Definition at line 410 of file cooking.c.
References CargoBase::GetItem(), and CargoBase::GetItemCount().
Referenced by GetCookingMethod(), GetCookingMethodWithTimeOverride(), and UpdateCookingState().
|
protected |
Definition at line 479 of file cooking.c.
References Edible_Base::GetNextFoodStageType().
|
protected |
Definition at line 473 of file cooking.c.
References Edible_Base::GetNextFoodStageType().
|
protected |
update food
check for done state from baking (exclude Lard from baked items)
check for burned state
Definition at line 44 of file cooking.c.
References AddTemperatureToItem(), Edible_Base::CanBeCooked(), Edible_Base::IsFoodBaked(), Edible_Base::IsFoodBoiled(), Edible_Base::IsFoodBurned(), Edible_Base::IsFoodDried(), LIQUID_NONE, LIQUID_VAPOR_QUANTITY, PARAM_BURN_DAMAGE_COEF, SOLID_OVERHEAT_QUANTITY, and UpdateCookingState().
Referenced by CookWithEquipment().
|
protected |
Definition at line 39 of file cooking.c.
References m_UpdateTime.
|
protected |
Definition at line 344 of file cooking.c.
References Edible_Base::ChangeFoodStage(), Edible_Base::GetCookingTime(), Edible_Base::GetFoodStageType(), Edible_Base::ResetCookingTime(), and Edible_Base::SetCookingTime().
|
protected |
Definition at line 381 of file cooking.c.
References CargoBase::GetItem(), CargoBase::GetItemCount(), and Edible_Base::MakeSoundsOnClient().
|
protected |
enable cooking SoundEvent
Change food stage to new, IF DIFFERENT
any foodstage without lard
any foodstage without lard
Definition at line 196 of file cooking.c.
References AddTemperatureToItem(), Edible_Base::CanChangeToNewStage(), Edible_Base::ChangeFoodStage(), Math::Clamp(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE, COOKING_FOOD_TIME_INC_VALUE, COOKING_INGREDIENT_LARD, COOKING_LARD_DECREASE_COEF, DecreaseCookedItemQuantity(), Edible_Base::GetCookingTime(), Edible_Base::GetFoodStageType(), GetItemTypeFromCargo(), Edible_Base::GetNextFoodStageType(), Edible_Base::MakeSoundsOnClient(), Edible_Base::ResetCookingTime(), Edible_Base::SetCookingTime(), and ItemBase::SetQuantity().
Referenced by ProcessItemToCook().
|
protected |
Change food stage to new, IF DIFFERENT
Definition at line 283 of file cooking.c.
References AddTemperatureToItem(), Edible_Base::CanChangeToNewStage(), Edible_Base::ChangeFoodStage(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE, DecreaseCookedItemQuantity(), Edible_Base::GetCookingTime(), Edible_Base::GetFoodStageType(), Edible_Base::GetNextFoodStageType(), Edible_Base::MakeSoundsOnClient(), Edible_Base::ResetCookingTime(), and Edible_Base::SetCookingTime().
Referenced by CookOnStick().
| COOKING_EQUIPMENT_CAULDRON = Cauldron |
Definition at line 34 of file cooking.c.
Referenced by GetCookingMethod().
| COOKING_EQUIPMENT_FRYINGPAN = FryingPan |
Definition at line 33 of file cooking.c.
Referenced by GetCookingMethod().
| COOKING_EQUIPMENT_POT = Pot |
0..1, validly cooked item will pre-emptively start emitting burning sounds when this close to being burned
Definition at line 32 of file cooking.c.
Referenced by GetCookingMethod().
|
static |
|
static |
how many units from quantity of lard are remove at each stage
Definition at line 19 of file cooking.c.
Referenced by UpdateCookingState(), and UpdateCookingStateOnStick().
|
static |
time modifier used when using support material
Definition at line 17 of file cooking.c.
Referenced by UpdateCookingState().
| COOKING_INGREDIENT_LARD = Lard |
Definition at line 35 of file cooking.c.
Referenced by GetCookingMethod(), GetCookingMethodWithTimeOverride(), and UpdateCookingState().
|
static |
time increase when cooking a food
Definition at line 18 of file cooking.c.
Referenced by UpdateCookingState().
|
static |
|
static |
Definition at line 27 of file cooking.c.
Referenced by ProcessItemToCook().
|
protected |
Definition at line 37 of file cooking.c.
Referenced by AddTemperatureToItem(), and SetCookingUpdateTime().
|
static |
Definition at line 24 of file cooking.c.
Referenced by AddDamageToItemByFireEx(), and ProcessItemToCook().
|
static |
Definition at line 28 of file cooking.c.
Referenced by ProcessItemToCook().
| enum CookingMethodType TIME_WITH_SUPPORT_MATERIAL_COEF = 1.0 |
Referenced by GetCookingMethodWithTimeOverride().
|
static |
time modifier used when not using support material
Definition at line 15 of file cooking.c.
Referenced by GetCookingMethodWithTimeOverride().