summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-22 15:33:18 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-22 15:33:18 -0400
commit675a4327c1653512655963288e9a0c9acb40bf77 (patch)
treeac1260ef1e7d410e17f375c8333d3f11cd944040 /gamemode/init.lua
parente84d85263c6ef55af98cb213c5462107a0170506 (diff)
downloadgmstranded-675a4327c1653512655963288e9a0c9acb40bf77.tar.gz
gmstranded-675a4327c1653512655963288e9a0c9acb40bf77.tar.bz2
gmstranded-675a4327c1653512655963288e9a0c9acb40bf77.zip
Since the new item system, drinking water no longer works the way it used to
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua
index 48acecd..7ba8b25 100644
--- a/gamemode/init.lua
+++ b/gamemode/init.lua
@@ -418,12 +418,6 @@ for k,v in pairs(GM.Plantables) do
end)
end
-function GM.DrinkFromBottle( ply, cmd, args )
- if ( ply:GetResource( "Water_Bottles" ) < 1 ) then ply:SendMessage( "You need a water bottle.", 3, Color( 200, 0, 0, 255 ) ) return end
- ply:DoProcess( "DrinkBottle", 1.5 )
-end
-concommand.Add( "gms_drinkbottle", GM.DrinkFromBottle )
-
function GM.EatBerry( ply, cmd, args )
if ( ply:GetResource( "Berries" ) < 1 ) then ply:SendMessage( "You need some berries.", 3, Color( 200, 0, 0, 255 ) ) return end
ply:DoProcess( "EatBerry", 1.5 )