125 {
126 if (super.SetupAction(player, target, item, action_data, extra_data ))
127 {
128 WorldCraftActionData action_data_wc = WorldCraftActionData.Cast(action_data);
129
130 if (!
GetGame().IsDedicatedServer())
131 action_data_wc.m_RecipeID = player.GetCraftingManager().GetRecipeID(
m_VariantID);
132
133 PluginRecipesManager moduleRecipesManager;
134 Class.CastTo(moduleRecipesManager,
GetPlugin(PluginRecipesManager));
135 moduleRecipesManager.IsRecipePossibleToPerform(action_data_wc.m_RecipeID, action_data_wc.m_MainItem,
ItemBase.Cast(action_data_wc.m_Target.GetObject()), player);
136
137 m_CommandUID = moduleRecipesManager.GetAnimationCommandUID(action_data_wc.m_RecipeID);
138
139 return true;
140 }
141 return false;
142 }
class GP5GasMask extends MaskBase ItemBase
PluginBase GetPlugin(typename plugin_type)
proto native CGame GetGame()