From 699df0d5df4e7d00a0d2b838b8c851c9b5027cea Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 22 May 2016 15:53:31 -0400 Subject: Made mediceine work like it used to, and added sound --- gamemode/processes.lua | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'gamemode/processes.lua') diff --git a/gamemode/processes.lua b/gamemode/processes.lua index 854a3d8..d475127 100644 --- a/gamemode/processes.lua +++ b/gamemode/processes.lua @@ -827,29 +827,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 ---------------------------------------------------------*/ -- cgit v1.2.3-70-g09d2