66 {
68 rag.SetCleanness(0);
69 Torch torch = Torch.Cast(results[0]);
70
71 int quantity = rag.GetQuantity();
72
73 if (torch)
74 {
75 torch.SetTorchDecraftResult(ingredients[1].
GetType());
76
78 {
79 player.ServerTakeEntityToTargetAttachment(torch, rag);
80 }
81 else if (!
GetGame().IsMultiplayer())
82 {
83 int slotID = InventorySlots.GetSlotIdFromString("Rags");
84 player.PredictiveTakeEntityToTargetAttachmentEx(torch, rag, slotID);
85
86 }
87
88 torch.StandUp();
89 torch.CraftingInit(quantity);
90 }
91 }
eBleedingSourceType GetType()
class GP5GasMask extends MaskBase ItemBase
proto native CGame GetGame()