60 override bool CanDo(
ItemBase ingredients[], PlayerBase player )
65 if(filter.GetQuantity() >= filter.GetQuantityMax())
71 InventoryLocation il =
new InventoryLocation;
72 filter.GetInventory().GetCurrentInventoryLocation(il);
77 if (inv.GetType() ==
"GP5GasMask" || inv.GetType() ==
"AirborneMask")
86 override void Do(
ItemBase ingredients[], PlayerBase player,array<ItemBase> results,
float specialty_weight)
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);
class GP5GasMask extends MaskBase ItemBase
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)