blob: 5b7ba3cb3c34428537516e8ac3421357fc36e3de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
ITEM = {}
ITEM.Name = "Grain Seeds"
ITEM.Description = "Something you can plant, or mash up into flour"
ITEM.Icon = "test.png"
ITEM.UniqueData = false
--Things needed to make something plantable
ITEM.GrowTime = 1
ITEM.OnGrow = function(self, aor, owner)
GAMEMODE.MakeGenericPlant( owner, self:GetPos() + Vector( math.random( -10, 10 ), math.random( -10, 10 ), 0 ), "models/props_foliage/cattails.mdl" )
end
genericMakePlantable(ITEM)
genericMakeDroppable(ITEM)
GMS.RegisterResource(ITEM)
|