88 ItemBase ingredient = ingredients[0];
90 for (
int i=0; i < results.Count(); i++)
95 MiscGameplayFunctions.TransferItemProperties(ingredient, item_result);
97 float quantityMultiplier = ingredient.GetHealth01(
"",
"");
98 item_result.SetQuantityNormalized(quantityMultiplier);
101 if (!ingredient.CanHaveTemperature())
104 if (!ingredient.CanFreeze())
105 item_result.SetFrozen(
false);
Super root of all classes in Enforce script.
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultToInventory[MAXIMUM_RESULTS]
override bool CanDo(ItemBase ingredients[], PlayerBase player)
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
float m_ResultSetHealth[MAXIMUM_RESULTS]
float m_ResultSetQuantity[MAXIMUM_RESULTS]
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
override void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
void AddResult(string item)
bool m_ResultUseSoftSkills[MAXIMUM_RESULTS]
int m_ResultReplacesIngredient[MAXIMUM_RESULTS]
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultInheritsHealth[MAXIMUM_RESULTS]
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultInheritsColor[MAXIMUM_RESULTS]
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
bool m_AnywhereInInventory
void InsertIngredient(int index, string ingredient, DayZPlayerConstants uid=DayZPlayerConstants.CMD_ACTIONFB_CRAFTING)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static const float ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE