aboutsummaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/weapons/rustyaxe.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/itemsystem/weapons/rustyaxe.lua')
-rw-r--r--gamemode/itemsystem/weapons/rustyaxe.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/gamemode/itemsystem/weapons/rustyaxe.lua b/gamemode/itemsystem/weapons/rustyaxe.lua
index 359580f..930a736 100644
--- a/gamemode/itemsystem/weapons/rustyaxe.lua
+++ b/gamemode/itemsystem/weapons/rustyaxe.lua
@@ -1,6 +1,7 @@
--[[
An axe that you can swing around!
]]
+do return end
local pac,swi
if SERVER then
pac = nrequire("core/pac/sv_pac.lua")
@@ -78,7 +79,7 @@ item.pacname = "rustyaxe"
if SERVER then
--Before makeSwingable is called, an item needs a .Name field and a .attacks field and a .pacname field
- swi.makeSwingable(item)
+ --swi.makeSwingable(item)
end
--[[
local swingdata = {
@@ -239,7 +240,7 @@ item.onClick = function(self,owner)
end
]]
---[[
+
--Optional, if we should do something special on equip(like draw the PAC for this weapon)
item.onEquip = function(self,who)
print("onEquip",who)
@@ -261,7 +262,7 @@ item.onUnEquip = function(self,who)
who:GetActiveWeapon():SetHoldType("normal")
if SERVER then pac.RemovePac(who,"rustyaxe") end
end
-]]
+
item.onDropped = function(self, ent)
if SERVER then pac.ApplyPac(ent,"rustyaxe") end
end