summaryrefslogtreecommitdiff
path: root/gamemode/processes.lua
diff options
context:
space:
mode:
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 = {}