summaryrefslogtreecommitdiff
path: root/gamemode/processes.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-22 15:53:31 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-22 15:53:31 -0400
commit699df0d5df4e7d00a0d2b838b8c851c9b5027cea (patch)
treed3442f025b8a0ffd0afcf3d73189982dfc2d4c0c /gamemode/processes.lua
parent675a4327c1653512655963288e9a0c9acb40bf77 (diff)
downloadgmstranded-699df0d5df4e7d00a0d2b838b8c851c9b5027cea.tar.gz
gmstranded-699df0d5df4e7d00a0d2b838b8c851c9b5027cea.tar.bz2
gmstranded-699df0d5df4e7d00a0d2b838b8c851c9b5027cea.zip
Made mediceine work like it used to, and added sound
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 = {}