aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/inventory/common
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/core/inventory/common')
-rw-r--r--gamemode/core/inventory/common/items.lua20
-rw-r--r--gamemode/core/inventory/common/weapons.lua4
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