From 127ae80dd100b348b95f6850e3854f6ab0de8323 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 20 May 2016 18:59:36 -0400 Subject: 1-3 minute growtime for seeds, seeds removed from inventory on spawn, limit to distance seeds can be planted --- gamemode/itemsystem/items/melonseeds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/itemsystem/items/melonseeds.lua') diff --git a/gamemode/itemsystem/items/melonseeds.lua b/gamemode/itemsystem/items/melonseeds.lua index e66b087..9a69205 100644 --- a/gamemode/itemsystem/items/melonseeds.lua +++ b/gamemode/itemsystem/items/melonseeds.lua @@ -7,7 +7,7 @@ ITEM.Description = "Something you can plant!" ITEM.Icon = "items/seed_melon.png" ITEM.UniqueData = false -ITEM.GrowTime = 1 +ITEM.GrowTime = math.random( 60, 180 ) ITEM.OnGrow = function(self, aor, owner) local plant = GAMEMODE.MakeGenericPlant( owner, self:GetPos() + Vector( 0, 0, 13 ), "models/props/CS_militia/fern01.mdl" ) plant.Children = 0 -- cgit v1.2.3-70-g09d2