diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-22 15:33:18 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-22 15:33:18 -0400 |
| commit | 675a4327c1653512655963288e9a0c9acb40bf77 (patch) | |
| tree | ac1260ef1e7d410e17f375c8333d3f11cd944040 /gamemode/processes.lua | |
| parent | e84d85263c6ef55af98cb213c5462107a0170506 (diff) | |
| download | gmstranded-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.lua | 36 |
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 = {} |
