62 override bool CanDo(
ItemBase ingredients[], PlayerBase player)
64 PluginRepairing module_repairing;
65 Class.CastTo(module_repairing,
GetPlugin(PluginRepairing));
67 Class.CastTo(ingredient1, ingredients[0]);
69 Class.CastTo(ingredient2, ingredients[1]);
70 return module_repairing.CanRepair(ingredient1,ingredient2);
73 override void Do(
ItemBase ingredients[], PlayerBase player,array<ItemBase> results,
float specialty_weight)
75 PluginRepairing module_repairing;
76 Class.CastTo(module_repairing,
GetPlugin(PluginRepairing));
78 Class.CastTo(playerPB, player);
80 Class.CastTo(ingredient1, ingredients[0]);
82 Class.CastTo(ingredient2, ingredients[1]);
83 module_repairing.Repair(playerPB, ingredient1,ingredient2,
m_Specialty);
class GP5GasMask extends MaskBase ItemBase
PluginBase GetPlugin(typename plugin_type)
int m_ResultReplacesIngredient[MAXIMUM_RESULTS]
int m_ResultToInventory[MAXIMUM_RESULTS]
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultInheritsHealth[MAXIMUM_RESULTS]
int m_ResultInheritsColor[MAXIMUM_RESULTS]
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_ResultSetQuantity[MAXIMUM_RESULTS]
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
void InsertIngredient(int index, string ingredient, DayZPlayerConstants uid=BASE_CRAFT_ANIMATION_ID, bool showItem=false)
float m_ResultSetHealth[MAXIMUM_RESULTS]
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 m_ResultUseSoftSkills[MAXIMUM_RESULTS]
bool CanDo(PlayerBase player, TStringVectorMap surfaceTypes)
void Do(PlayerBase player)