65 if(filter.GetQuantity() >= filter.GetQuantityMax())
72 filter.GetInventory().GetCurrentInventoryLocation(il);
77 if (inv.GetType() ==
"GP5GasMask" || inv.GetType() ==
"AirborneMask")
90 float charcoalCurrent = charcoal.GetQuantity();
95 float filterMax = filter.GetQuantityMax();
96 float filterCurrent = filter.GetQuantity();
99 float fillAmount = filterCurrent + (charcoalCurrent * 10);
102 if(fillAmount >= filterMax)
104 ingredients[1].SetQuantity(filterMax);
107 fillAmount = fillAmount - filterMax;
108 ingredients[0].SetQuantity(
Math.Round(fillAmount / 10));
112 ingredients[1].SetQuantity( fillAmount);
113 ingredients[0].AddQuantity( - charcoalCurrent);
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
void InsertIngredient(int index, string ingredient, DayZPlayerConstants uid=BASE_CRAFT_ANIMATION_ID, bool showItem=false)
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
bool CanDo(PlayerBase player, TStringVectorMap surfaceTypes)
void Do(PlayerBase player)