summaryrefslogtreecommitdiff
path: root/gamemode/processes.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/processes.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/processes.lua')
-rw-r--r--gamemode/processes.lua36
1 files changed, 0 insertions, 36 deletions
diff --git a/gamemode/processes.lua b/gamemode/processes.lua
index c647dd1..854a3d8 100644
--- a/gamemode/processes.lua
+++ b/gamemode/processes.lua
@@ -828,42 +828,6 @@ end
GMS.RegisterProcess( "BottleWater", PROCESS )
/*---------------------------------------------------------
- Drink bottle
----------------------------------------------------------*/
-local PROCESS = {}
-
-function PROCESS:OnStart()
- self.Owner:MakeProcessBar( "Drinking Bottle", self.Time, self.Cancel )
- self.StartTime = CurTime()
-
- self:PlaySound()
-end
-
-function PROCESS:PlaySound()
- if ( CurTime() - self.StartTime > self.Time ) then return end
- if ( !self.Owner.InProcess || self.StartTime != self.Owner.ProcessTable.StartTime ) then return end
-
- if ( self.Owner:Alive() ) then
- self.Owner:EmitSound( Sound( "npc/barnacle/barnacle_gulp" .. math.random( 1, 2 ) .. ".wav" ) )
- timer.Simple( 0.75, function() self:PlaySound() end )
- end
-end
-
-function PROCESS:OnStop()
- self.Owner:DecResource( "Water_Bottles", 1 )
- self.Owner:SendMessage( "You're a little less thirsty now.", 3, Color( 10, 200, 10, 255 ) )
- if ( self.Owner.Thirst <= 750 ) then
- self.Owner:SetThirst( self.Owner.Thirst + 250 )
- elseif ( self.Owner.Thirst >= 750 ) then
- self.Owner:SetThirst( 1000 )
- end
-end
-
-PROCESS.Cancel = false
-
-GMS.RegisterProcess( "DrinkBottle", PROCESS )
-
-/*---------------------------------------------------------
Take Medicine
---------------------------------------------------------*/
local PROCESS = {}