summaryrefslogtreecommitdiff
path: root/gamemode/processes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/processes.lua')
-rw-r--r--gamemode/processes.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/gamemode/processes.lua b/gamemode/processes.lua
index 854a3d8..d475127 100644
--- a/gamemode/processes.lua
+++ b/gamemode/processes.lua
@@ -828,29 +828,6 @@ end
GMS.RegisterProcess( "BottleWater", PROCESS )
/*---------------------------------------------------------
- Take Medicine
----------------------------------------------------------*/
-local PROCESS = {}
-
-function PROCESS:OnStart()
- if ( self.Owner:Health() >= 200 or ( self.Owner:Health() >= 150 and self.Owner:HasUnlock( "Master_Survivalist" ) != true ) or ( self.Owner:Health() >= 100 and self.Owner:HasUnlock( "Adept_Survivalist" ) != true ) ) then
- self.Owner:SendMessage( "You're feeling good, why would you heal yourself.", 3, Color( 200, 0, 0, 255 ) )
- else
- self.Owner:MakeProcessBar( "Taking Medicine", self.Time, self.Cancel )
- self.Owner:EmitSound( Sound( "items/smallmedkit1.wav" ) )
- end
-end
-
-function PROCESS:OnStop()
- if ( self.Owner:Health() >= 200 or ( self.Owner:Health() >= 150 and self.Owner:HasUnlock( "Master_Survivalist" ) != true ) or ( self.Owner:Health() >= 100 and self.Owner:HasUnlock( "Adept_Survivalist" ) != true ) ) then return end
- self.Owner:DecResource( "Medicine", 1 )
- self.Owner:SendMessage( "You're feeling a bit better now.", 3, Color( 10, 200, 10, 255 ) )
- self.Owner:Heal( 10 )
-end
-
-GMS.RegisterProcess( "TakeMedicine", PROCESS )
-
-/*---------------------------------------------------------
Cooking
---------------------------------------------------------*/
local PROCESS = {}