From 233e478e40d72a091f70f18dc6846066a4f52016 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Thu, 24 Aug 2017 20:32:34 -0400 Subject: Fix all linter warnings --- gamemode/core/inventory/common/items.lua | 20 ++++++++------------ gamemode/core/inventory/common/weapons.lua | 4 ++-- 2 files changed, 10 insertions(+), 14 deletions(-) (limited to 'gamemode/core/inventory/common') diff --git a/gamemode/core/inventory/common/items.lua b/gamemode/core/inventory/common/items.lua index 95a507c..868d940 100644 --- a/gamemode/core/inventory/common/items.lua +++ b/gamemode/core/inventory/common/items.lua @@ -1,18 +1,14 @@ local items = {} -local function drop_provided(ent,invid,frompos) - assert(CLIENT,"requested to drop an item when we are not the client!") - net.Start("art_RequestInvDrop") - net.WriteEntity(ent) - net.WriteUInt(invid,32) - net.WriteTable(frompos) - net.SendToServer() -end - -local function drop_self(tbl) - -end +-- local function drop_provided(ent,invid,frompos) +-- assert(CLIENT,"requested to drop an item when we are not the client!") +-- net.Start("art_RequestInvDrop") +-- net.WriteEntity(ent) +-- net.WriteUInt(invid,32) +-- net.WriteTable(frompos) +-- net.SendToServer() +-- end --Client requests the item be droped from the ent, invid, and inv position function items.DropItem(ent_or_tbl,invid,frompos) diff --git a/gamemode/core/inventory/common/weapons.lua b/gamemode/core/inventory/common/weapons.lua index 9e6eead..0a86f00 100644 --- a/gamemode/core/inventory/common/weapons.lua +++ b/gamemode/core/inventory/common/weapons.lua @@ -89,14 +89,14 @@ function com.createattackstable(tbl_attackdata,attacker) end) end end - + --Empty functions for attacks not defined for k,v in pairs({"left","right","forward","backward"}) do if movementtbl[k] == nil then movementtbl[k] = function() end end end - + return movementtbl end -- cgit v1.2.3-70-g09d2