From e1516804ffa48fa0c8abf69c191e404a8df5d0b5 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 1 May 2016 21:04:16 -0400 Subject: Started working on commenting --- gamemode/itemsystem/common_dropable.lua | 2 ++ gamemode/server/player_functions.lua | 7 +++++++ 2 files changed, 9 insertions(+) (limited to 'gamemode') diff --git a/gamemode/itemsystem/common_dropable.lua b/gamemode/itemsystem/common_dropable.lua index 94513d3..14d3da5 100644 --- a/gamemode/itemsystem/common_dropable.lua +++ b/gamemode/itemsystem/common_dropable.lua @@ -1,3 +1,5 @@ +--Adds a function to to allow the player to drop this item, in quantities of 1, half, all, or X, which brings up a menu asking the player how many they would like to drop + function genericMakeDroppable(tbl) if(SERVER) then return end local drop1 = function(player) diff --git a/gamemode/server/player_functions.lua b/gamemode/server/player_functions.lua index 09de491..4ef39fd 100644 --- a/gamemode/server/player_functions.lua +++ b/gamemode/server/player_functions.lua @@ -664,6 +664,13 @@ end function PlayerMeta:CancelProcess() if ( !self.InProcess ) then return end + --If we just clear it out, it should all be good. + for i = 1, 10 do + if(timer.Exists("GMS_ProcessTimer_" .. i)) then + timer.Destroy("GMS_ProcessTimer_" .. i) + end + end + GAMEMODE.ProcessThinkHookTable = {} timer.Destroy("process") self:Freeze(false) self.InProcess = false -- cgit v1.2.3-70-g09d2