diff options
Diffstat (limited to 'gamemode/itemsystem/items')
| -rw-r--r-- | gamemode/itemsystem/items/bananaseeds.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/items/berry.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/items/grainseeds.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/items/melonseeds.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/items/orangeseeds.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/items/sprout.lua | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/gamemode/itemsystem/items/bananaseeds.lua b/gamemode/itemsystem/items/bananaseeds.lua index 5b692cf..80b8379 100644 --- a/gamemode/itemsystem/items/bananaseeds.lua +++ b/gamemode/itemsystem/items/bananaseeds.lua @@ -9,7 +9,7 @@ ITEM.UniqueData = false --Things needed to make something plantable -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, -3 ), "models/props/de_dust/du_palm_tree01_skybx.mdl" ) plant.Children = 0 diff --git a/gamemode/itemsystem/items/berry.lua b/gamemode/itemsystem/items/berry.lua index 2349145..9e8cdb2 100644 --- a/gamemode/itemsystem/items/berry.lua +++ b/gamemode/itemsystem/items/berry.lua @@ -36,7 +36,7 @@ net.Receive( "gms_eatberry", eat) ITEM.Actions = {} genericMakeDroppable(ITEM) ITEM.Actions["Eat Berry"] = eat_client -ITEM.GrowTime = 1 +ITEM.GrowTime = math.random( 60, 180 ) ITEM.OnGrow = function(self, aor, owner) GAMEMODE.MakeGenericPlant( owner, self:GetPos() + Vector( math.random( -10, 10 ), math.random( -10, 10 ), 16 ), "models/props/pi_shrub.mdl" ) end diff --git a/gamemode/itemsystem/items/grainseeds.lua b/gamemode/itemsystem/items/grainseeds.lua index 1bb6001..0068f49 100644 --- a/gamemode/itemsystem/items/grainseeds.lua +++ b/gamemode/itemsystem/items/grainseeds.lua @@ -9,7 +9,7 @@ ITEM.UniqueData = false --Things needed to make something plantable -ITEM.GrowTime = 1 +ITEM.GrowTime = math.random( 60, 180 ) 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 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 diff --git a/gamemode/itemsystem/items/orangeseeds.lua b/gamemode/itemsystem/items/orangeseeds.lua index 65501d9..417b3c6 100644 --- a/gamemode/itemsystem/items/orangeseeds.lua +++ b/gamemode/itemsystem/items/orangeseeds.lua @@ -8,7 +8,7 @@ ITEM.Icon = "items/seed_orange.png" ITEM.UniqueData = false --Things needed to make something plantable -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, -12 ), "models/props/cs_office/plant01_p1.mdl" ) plant.Children = 0 diff --git a/gamemode/itemsystem/items/sprout.lua b/gamemode/itemsystem/items/sprout.lua index 3afb731..3aab4c5 100644 --- a/gamemode/itemsystem/items/sprout.lua +++ b/gamemode/itemsystem/items/sprout.lua @@ -6,7 +6,7 @@ ITEM.Description = "Something you can craft with!" ITEM.Icon = "test.png" ITEM.UniqueData = false -ITEM.GrowTime = 1 +ITEM.GrowTime = math.random( 60, 180 ) ITEM.OnGrow = function(self, aor, owner) local ent = ents.Create( "gms_tree" ) ent:SetPos( self:GetPos() ) |
