diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-24 20:32:34 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-24 20:32:34 -0400 |
| commit | 233e478e40d72a091f70f18dc6846066a4f52016 (patch) | |
| tree | cf34be714088889731736c81bd44e198c792625a /gamemode/core/inventory/common | |
| parent | 61bc16dae5a1b61bcd237d9f0be36125829d95b1 (diff) | |
| download | artery-233e478e40d72a091f70f18dc6846066a4f52016.tar.gz artery-233e478e40d72a091f70f18dc6846066a4f52016.tar.bz2 artery-233e478e40d72a091f70f18dc6846066a4f52016.zip | |
Fix all linter warnings
Diffstat (limited to 'gamemode/core/inventory/common')
| -rw-r--r-- | gamemode/core/inventory/common/items.lua | 20 | ||||
| -rw-r--r-- | gamemode/core/inventory/common/weapons.lua | 4 |
2 files changed, 10 insertions, 14 deletions
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 |
