summaryrefslogtreecommitdiff
path: root/gamemode/structuresystem/structures/stonefurnace.lua
blob: 84c0311554b86520104a60706558751a3b954653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local STRUCT = {}

STRUCT.Name = "Stone Furnace"
STRUCT.Model = "models/props/de_inferno/ClayOven.mdl"

STRUCT.Structure = {
  {"models/props/de_inferno/ClayOven.mdl",Vector(0,0,0),Angle(0,0,0)}
}

STRUCT.onInitialize = function(self)
  print("Initalize called!")
end

STRUCT.uniquedata = false

STRUCT.onUse = function(self, ply)
  print("I am the old use function!")
end

STRUCT.Recipes = {}

STRUCT.timemult = 0.5
STRUCT.skillease = 0.25

genericMakeFurnace(STRUCT)
recipieForSmelt(STRUCT.Recipes,"Copper", "Smelt copper ore into copper", "Copper Ore", "Copper", {1,1}, {1,5,10})

print("stone furnace's recipies:")
PrintTable(STRUCT.Recipes)

registerStructure(STRUCT)